From edacfec21ea73f9bcacc12a4f7721a3529ee281e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Fri, 15 Mar 2024 11:28:58 +0100 Subject: [PATCH] Add support for python 3.12 --- .github/workflows/pr-check.yml | 4 ++-- .github/workflows/tests.yml | 20 ++++++++++---------- newsfragments/609.feature.rst | 1 + pyproject.toml | 1 + 4 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 newsfragments/609.feature.rst diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index cd799c55..15c44546 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v4 - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.4.2 with: - python-version: "3.11" + python-version: "3.12" command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x" towncrier: runs-on: ubuntu-latest @@ -20,6 +20,6 @@ jobs: steps: - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.4.2 with: - python-version: "3.11" + python-version: "3.12" command: towncrier check --compare-with origin/main fetch-depth: 0 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e775b6b9..1866a761 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: [3.8, 3.9, "3.10", "3.11", pypy-3.9] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12", pypy-3.9] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: [3.8, 3.9, "3.10", "3.11", pypy-3.9] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12", pypy-3.9] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -46,7 +46,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: [3.9, "3.10", "3.11"] + python-version: [3.9, "3.10", "3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -63,7 +63,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -80,7 +80,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -97,7 +97,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.11"] + python-version: ["3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -114,7 +114,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -131,7 +131,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -147,7 +147,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} @@ -163,7 +163,7 @@ jobs: strategy: fail-fast: true matrix: - python-version: ["3.11"] + python-version: ["3.12"] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} diff --git a/newsfragments/609.feature.rst b/newsfragments/609.feature.rst new file mode 100644 index 00000000..21df92a4 --- /dev/null +++ b/newsfragments/609.feature.rst @@ -0,0 +1 @@ +Support python 3.12 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c43f94ca..9ca9d6d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,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 :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing",