Skip to content

Commit

Permalink
Add Python 3.11 to tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer committed Oct 26, 2022
1 parent 20420c2 commit a6bb816
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ workflows:
- test:
matrix:
parameters:
python_version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
python_version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
- test_pypy:
matrix:
parameters:
Expand Down Expand Up @@ -54,4 +54,4 @@ jobs:
. venv/bin/activate
rst-lint --encoding=utf-8 README.rst
docker:
- image: circleci/python:3.10
- image: circleci/python:3.11
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@v2
name: Install Python
with:
python-version: '3.10'
python-version: '3.11'

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

- 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.
Tested with cPython 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11.

**Note:** ciso8601 doesn't support the entirety of the ISO 8601 spec, `only a popular subset`_.

Expand Down
21 changes: 12 additions & 9 deletions benchmarking/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ RUN apt-get update && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update

# Install the other dependencies
RUN apt-get install -y git curl gcc build-essential

# Install tzdata non-iteractively
# https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive/44333806#44333806
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata

# Install the Python versions
RUN apt install -y python python-dev && \
apt install -y python3.5 python3.5-dev python3.5-venv && \
apt install -y python3.6 python3.6-dev python3.6-venv && \
RUN apt install -y python2 python2-dev && \
apt install -y python3.7 python3.7-dev python3.7-venv && \
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

# Install the other dependencies
RUN apt-get install -y git curl gcc build-essential
apt install -y python3.10 python3.10-dev python3.10-venv && \
apt install -y python3.11 python3.11-dev python3.11-venv

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

# Get pip
RUN python -m ensurepip --upgrade
Expand Down
2 changes: 1 addition & 1 deletion benchmarking/tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py310,py39,py38,py37,py36,py35,py34,py27
envlist = py311,py310,py39,py38,py37,py36,py35,py34,py27
setupdir=..

[testenv]
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py27,py34,py35,py36,py37,py38,py39}-caching_{enabled,disabled}
envlist = {py27,py34,py35,py36,py37,py38,py39,py310,py311}-caching_{enabled,disabled}

[testenv]
setenv =
Expand Down

0 comments on commit a6bb816

Please sign in to comment.