Skip to content

Commit

Permalink
MAINT: Add Python 3.12 support (#2037)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Jul 29, 2023
1 parent 94f23f9 commit 8abd34a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/github-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-beta.4"]
use-crypto-lib: ["pycryptodome"]
include:
- python-version: "3.9"
Expand All @@ -41,14 +41,14 @@ jobs:
key: cache-downloaded-files
- name: Setup Python
uses: actions/setup-python@v4
if: matrix.python-version != '3.11'
if: matrix.python-version == '3.6' || matrix.python-version == '3.7' || matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/requirements/ci.txt'
- name: Setup Python (3.11)
- name: Setup Python (3.11+)
uses: actions/setup-python@v4
if: matrix.python-version == '3.11'
if: matrix.python-version == '3.11' || matrix.python-version == '3.12.0-beta.4'
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand All @@ -59,11 +59,11 @@ jobs:
- name: Install requirements (Python 3)
run: |
pip install -r requirements/ci.txt
if: matrix.python-version != '3.11'
- name: Install requirements (Python 3.11)
if: matrix.python-version == '3.6' || matrix.python-version == '3.7' || matrix.python-version == '3.8' || matrix.python-version == '3.9' || matrix.python-version == '3.10'
- name: Install requirements (Python 3.11+)
run: |
pip install -r requirements/ci-3.11.txt
if: matrix.python-version == '3.11'
if: matrix.python-version == '3.11' || matrix.python-version == '3.12.0-beta.4'
- name: Remove pycryptodome
run: |
pip uninstall pycryptodome -y
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
Expand Down
32 changes: 16 additions & 16 deletions requirements/ci-3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
#
# pip-compile --output-file=requirements/ci-3.11.txt requirements/ci.in
#
attrs==22.2.0
# via
# flake8-bugbear
# pytest
coverage==7.2.2
attrs==23.1.0
# via flake8-bugbear
coverage==7.2.7
# via -r requirements/ci.in
flake8==6.0.0
# via
# -r requirements/ci.in
# flake8-bugbear
# flake8-print
flake8-bugbear==23.3.23
flake8-bugbear==23.7.10
# via -r requirements/ci.in
flake8-implicit-str-concat==0.4.0
# via -r requirements/ci.in
Expand All @@ -27,29 +25,29 @@ iniconfig==2.0.0
# via pytest
mccabe==0.7.0
# via flake8
mypy==1.1.1
mypy==1.4.1
# via -r requirements/ci.in
mypy-extensions==1.0.0
# via mypy
packaging==23.0
packaging==23.1
# via pytest
pillow==9.5.0
pillow==10.0.0
# via
# -r requirements/ci.in
# fpdf2
pluggy==1.0.0
pluggy==1.2.0
# via pytest
py-cpuinfo==9.0.0
# via pytest-benchmark
pycodestyle==2.10.0
# via
# flake8
# flake8-print
pycryptodome==3.17
pycryptodome==3.18.0
# via -r requirements/ci.in
pyflakes==3.0.1
# via flake8
pytest==7.2.2
pytest==7.4.0
# via
# -r requirements/ci.in
# pytest-benchmark
Expand All @@ -63,11 +61,13 @@ pytest-timeout==2.1.0
# via -r requirements/ci.in
ruff==0.0.280
# via -r requirements/ci.in
typeguard==3.0.2
typeguard==4.0.1
# via -r requirements/ci.in
types-dataclasses==0.6.6
# via -r requirements/ci.in
types-pillow==9.5.0.4
types-pillow==10.0.0.2
# via -r requirements/ci.in
typing-extensions==4.5.0
# via mypy
typing-extensions==4.7.1
# via
# mypy
# typeguard
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Typing :: Typed
Expand Down

0 comments on commit 8abd34a

Please sign in to comment.