Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Python 3.12 and PyPy 3.10 #145

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ workflows:
- test:
matrix:
parameters:
python_version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python_version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
- test_pypy:
matrix:
parameters:
python_version: ["2.7", "3.7", "3.8", "3.9"]
python_version: ["2.7", "3.7", "3.8", "3.9", "3.10"]
- lint-rst
- clang-format

Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
. venv/bin/activate
rst-lint --encoding=utf-8 README.rst
docker:
- image: cimg/python:3.11
- image: cimg/python:3.12

clang-format:
working_directory: ~/code
Expand All @@ -91,4 +91,4 @@ jobs:
fi
done
docker:
- image: cimg/python:3.11
- image: cimg/python:3.12
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.11'
python-version: '3.12'

- run: |
pip install packaging
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.11'
python-version: '3.12'

- name: Build sdist
run: python setup.py sdist
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ciso8601
``ciso8601`` converts `ISO 8601`_ or `RFC 3339`_ date time strings into Python datetime objects.

Since it's written as a C module, it is much faster than other Python libraries.
Tested with cPython 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11.
Tested with cPython 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12.

.. _ISO 8601: https://en.wikipedia.org/wiki/ISO_8601
.. _RFC 3339: https://tools.ietf.org/html/rfc3339
Expand Down
7 changes: 4 additions & 3 deletions benchmarking/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ RUN apt install -y python2 python2-dev && \
apt install -y python3.8 python3.8-dev python3.8-venv && \
apt install -y python3.9 python3.9-dev python3.9-venv && \
apt install -y python3.10 python3.10-dev python3.10-venv && \
apt install -y python3.11 python3.11-dev python3.11-venv
apt install -y python3.11 python3.11-dev python3.11-venv && \
apt install -y python3.12 python3.12-dev python3.12-venv

# Make Python 3.11 the default `python`
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 10
# Make Python 3.12 the default `python`
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 10

# Get pip
RUN python -m ensurepip --upgrade
Expand Down
2 changes: 1 addition & 1 deletion benchmarking/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
importlib_metadata; python_version < '3.8'
pytablewriter
tox
tox > 4
4 changes: 2 additions & 2 deletions benchmarking/run_benchmarks.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
tox '2014-01-09T21:48:00'
tox '2014-01-09T21:48:00-05:30'
tox -- '2014-01-09T21:48:00'
tox -- '2014-01-09T21:48:00-05:30'
python format_results.py benchmark_results/2014-01-09T214800 benchmark_results/benchmark_with_no_time_zone.rst
python format_results.py benchmark_results/2014-01-09T214800-0530 benchmark_results/benchmark_with_time_zone.rst
python rst_include_replace.py ../README.rst 'benchmark_with_no_time_zone.rst' benchmark_results/benchmark_with_no_time_zone.rst
Expand Down
5 changes: 4 additions & 1 deletion benchmarking/tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tox]
envlist = py311,py310,py39,py38,py37,py36,py35,py34,py27
requires =
tox>=4
envlist = py312,py311,py310,py39,py38,py37,py36,py35,py34,py27
setupdir=..

[testenv]
package = sdist
setenv =
CISO8601_CACHING_ENABLED = 1
deps=
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[tox]
envlist = {py27,py34,py35,py36,py37,py38,py39,py310,py311}-caching_{enabled,disabled}
requires =
tox>=4
envlist = {py27,py34,py35,py36,py37,py38,py39,py310,py311,py312}-caching_{enabled,disabled}

[testenv]
package = sdist
setenv =
STRICT_WARNINGS = 1
caching_enabled: CISO8601_CACHING_ENABLED = 1
Expand Down