From 575157ab63cbe025ffde7a2ca764555dd98e9baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Tue, 17 Oct 2023 10:12:27 +0200 Subject: [PATCH] Support Python 3.12 --- .github/workflows/benchmarks.yml | 2 +- .github/workflows/pr-check.yml | 4 ++-- .github/workflows/sphinx-docs.yml | 2 +- .github/workflows/tests.yml | 2 +- newsfragments/505.feature.rst | 1 + pyproject.toml | 1 + 6 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 newsfragments/505.feature.rst diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index b9d1f1ec..37305512 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9, "3.10", "3.11", pypy-3.8] + python-version: [3.8, 3.9, "3.10", "3.11", "3.12", pypy-3.8] env: OS: ubuntu-latest PYTHON: ${{ matrix.python-version }} diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 71f1ae66..b9093434 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.0 with: - python-version: "3.11" + python-version: "3.12" pipenv-install-options: "--skip-lock" command: tbump --dry-run --only-patch $(pipenv run tbump current-version)"-x" towncrier: @@ -21,7 +21,7 @@ jobs: steps: - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.4.0 with: - python-version: "3.11" + python-version: "3.12" pipenv-install-options: "--skip-lock" command: towncrier check --compare-with origin/main fetch-depth: 0 \ No newline at end of file diff --git a/.github/workflows/sphinx-docs.yml b/.github/workflows/sphinx-docs.yml index b904a485..794a6a17 100644 --- a/.github/workflows/sphinx-docs.yml +++ b/.github/workflows/sphinx-docs.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - uses: fizyk/actions-reuse/.github/actions/pipenv@v2.4.0 with: - python-version: "3.11" + python-version: "3.12" pipenv-install-options: "--skip-lock" command: "sphinx-build -b html docs/source build/html" - name: Deploy diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 28baa514..9622231d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v2.4.0 with: pipenv-install-options: "--skip-lock" - python-versions: '["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]' + python-versions: '["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8"]' secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} benchmark: diff --git a/newsfragments/505.feature.rst b/newsfragments/505.feature.rst new file mode 100644 index 00000000..ef0b001f --- /dev/null +++ b/newsfragments/505.feature.rst @@ -0,0 +1 @@ +Add Support for Python 3.12 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 9dec6a07..46b4f73c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,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", ]