Skip to content

Commit

Permalink
Declare support for Python 3.12 (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 1, 2023
1 parent c722166 commit a224d62
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

os: [ubuntu-latest]

Expand All @@ -20,6 +20,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Update pip and setuptools
run: |
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You can also use [tox](https://tox.wiki/en/latest/index.html) to test with multi
```console
/path/to/venv/bin/tox
```
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`
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`

```console
/path/to/venv/bin/tox -e py38
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ Unreleased

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

23.6.5
~~~~~~
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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 :: Quality Assurance",
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# The test environment and commands
[tox]
# default environments to run without `-e`
envlist = py38, py39, py310, py311
envlist = py38, py39, py310, py311, py312

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv:{py38, py39, py310, py311}]
[testenv]
description = Run coverage
deps =
coverage
Expand All @@ -19,3 +20,8 @@ deps =
commands =
coverage run tests/test_bugbear.py {posargs}
coverage report -m

[testenv:py312]
deps =
# the other dependencies aren't yet installable on py312+
coverage

0 comments on commit a224d62

Please sign in to comment.