From 1bcd4079f640ab7566c0c2ff5bd8696403a2a50f Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 5 Apr 2024 10:16:32 +0100 Subject: [PATCH] Add support, testing for Python 3.12 This has been out with some time. Signed-off-by: Stephen Finucane --- .github/workflows/ci.yaml | 14 +++++++------- .../python-3.12-support-f2ed1dc438bd42ee.yaml | 4 ++++ tox.ini | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 releasenotes/notes/python-3.12-support-f2ed1dc438bd42ee.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e2084c9..3d5294a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,10 +10,10 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v3 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: python -m pip install tox - name: Run tox @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - name: Checkout source code uses: actions/checkout@v3 @@ -48,10 +48,10 @@ jobs: # We need history for release notes with: fetch-depth: 0 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: python -m pip install tox - name: Build docs (via tox) @@ -73,10 +73,10 @@ jobs: # We need history to build the package with: fetch-depth: 0 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: python -m pip install build - name: Build a binary wheel and a source tarball diff --git a/releasenotes/notes/python-3.12-support-f2ed1dc438bd42ee.yaml b/releasenotes/notes/python-3.12-support-f2ed1dc438bd42ee.yaml new file mode 100644 index 0000000..5fccde3 --- /dev/null +++ b/releasenotes/notes/python-3.12-support-f2ed1dc438bd42ee.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Python 3.12 is now officially supported. diff --git a/tox.ini b/tox.ini index 1d7ef26..f740c5e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.0 -envlist = py{38,39}-click{7,8,8-async},py{310,311}-click{8,8-async},style,docs +envlist = py{38,39}-click{7,8,8-async},py{310,311,312}-click{8,8-async},style,docs [testenv] setenv =