Skip to content

Commit

Permalink
Add support, testing for Python 3.12
Browse files Browse the repository at this point in the history
This has been out with some time.

Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Apr 5, 2024
1 parent ff8be91 commit 1bcd407
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/python-3.12-support-f2ed1dc438bd42ee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Python 3.12 is now officially supported.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down

0 comments on commit 1bcd407

Please sign in to comment.