Skip to content

Commit a224d62

Browse files
authored
Declare support for Python 3.12 (#400)
1 parent c722166 commit a224d62

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
python-version: ["3.8", "3.9", "3.10", "3.11"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313

1414
os: [ubuntu-latest]
1515

@@ -20,6 +20,7 @@ jobs:
2020
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
allow-prereleases: true
2324

2425
- name: Update pip and setuptools
2526
run: |

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ You can also use [tox](https://tox.wiki/en/latest/index.html) to test with multi
5555
```console
5656
/path/to/venv/bin/tox
5757
```
58-
will by default run all tests on python versions 3.8 through 3.11. If you only want to test a specific version you can specify the environment with `-e`
58+
will by default run all tests on python versions 3.8 through 3.12. If you only want to test a specific version you can specify the environment with `-e`
5959

6060
```console
6161
/path/to/venv/bin/tox -e py38

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ Unreleased
334334

335335
* Fix a crash and several test failures on Python 3.12, all relating to the B907
336336
check.
337+
* Declare support for Python 3.12.
337338

338339
23.6.5
339340
~~~~~~

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ classifiers = [
3030
"Programming Language :: Python :: 3.9",
3131
"Programming Language :: Python :: 3.10",
3232
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: 3.12",
3334
"Programming Language :: Python :: 3 :: Only",
3435
"Topic :: Software Development :: Libraries :: Python Modules",
3536
"Topic :: Software Development :: Quality Assurance",

tox.ini

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# The test environment and commands
22
[tox]
33
# default environments to run without `-e`
4-
envlist = py38, py39, py310, py311
4+
envlist = py38, py39, py310, py311, py312
55

66
[gh-actions]
77
python =
88
3.8: py38
99
3.9: py39
1010
3.10: py310
1111
3.11: py311
12+
3.12: py312
1213

13-
[testenv:{py38, py39, py310, py311}]
14+
[testenv]
1415
description = Run coverage
1516
deps =
1617
coverage
@@ -19,3 +20,8 @@ deps =
1920
commands =
2021
coverage run tests/test_bugbear.py {posargs}
2122
coverage report -m
23+
24+
[testenv:py312]
25+
deps =
26+
# the other dependencies aren't yet installable on py312+
27+
coverage

0 commit comments

Comments
 (0)