From b392d3af7f9aa47a71b5c045e1f22a1f9df56521 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Mon, 23 Oct 2023 17:11:13 +0200 Subject: [PATCH] Adds support for Python 3.12 (#609) --- .github/workflows/tests.yml | 3 ++- .linting-config.yaml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + tox.ini | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 046f6475..bf5e4ceb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,6 +27,7 @@ jobs: - 3.9 # 2025-10 - "3.10" # 2026-10 - 3.11 # 2027-10 + - 3.12 # 2028-10 - pypy3.7 - pypy3.8 - pypy3.9 @@ -63,7 +64,7 @@ jobs: ref: ${{ inputs.ref || github.ref }} - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - run: python -m pip install tox - run: tox -e ${{ matrix.environment }} diff --git a/.linting-config.yaml b/.linting-config.yaml index b97fdd3a..eb4db16b 100644 --- a/.linting-config.yaml +++ b/.linting-config.yaml @@ -5,7 +5,7 @@ repos: hooks: - id: black args: [--check] - language_version: python3.11 + language_version: python3.12 types: - python exclude: ^docs/conf.py$ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f61845ef..528736fd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: hooks: - id: black args: [--quiet] - language_version: python3.11 + language_version: python3.12 types: - python exclude: ^docs/conf.py$ diff --git a/pyproject.toml b/pyproject.toml index 909c65bb..89f34017 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] diff --git a/tox.ini b/tox.ini index 902e16f8..6672417e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist=py37,py38,py39,py310,py311,pypy3,doclinks,doctest,linting +envlist=py37,py38,py39,py310,py311,py312,pypy3,doclinks,doctest,linting [testenv] deps=pytest