Skip to content

Commit efca9cc

Browse files
authored
Support Python 3.12 (#511)
1 parent f4d3328 commit efca9cc

File tree

8 files changed

+64
-2
lines changed

8 files changed

+64
-2
lines changed

.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ jobs:
2323
- 3.9
2424
- '3.10'
2525
- '3.11'
26+
- '3.12'
2627

2728
steps:
2829
- uses: actions/checkout@v3
2930

3031
- uses: actions/setup-python@v4
3132
with:
3233
python-version: ${{ matrix.python-version }}
34+
allow-prereleases: true
3335
cache: pip
3436
cache-dependency-path: 'requirements/*.txt'
3537

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ repos:
2323
- id: setup-cfg-fmt
2424
args:
2525
- --include-version-classifiers
26+
- --max-py-version
27+
- '3.12'
2628
- repo: https://github.com/tox-dev/tox-ini-fmt
2729
rev: 1.3.0
2830
hooks:

CHANGELOG.rst

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Changelog
33
=========
44

5+
* Support Python 3.12.
6+
57
3.12.0 (2023-04-13)
68
-------------------
79

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A `flake8 <https://flake8.readthedocs.io/en/latest/index.html>`_ plugin that hel
2020
Requirements
2121
============
2222

23-
Python 3.7 to 3.11 supported.
23+
Python 3.7 to 3.12 supported.
2424

2525
Installation
2626
============

requirements/compile.py

+5
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@
4242
check=True,
4343
capture_output=True,
4444
)
45+
subprocess.run(
46+
["python3.12", *common_args, "-o", "py312.txt"],
47+
check=True,
48+
capture_output=True,
49+
)

requirements/py312.txt

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# requirements/compile.py
6+
#
7+
flake8==6.0.0 \
8+
--hash=sha256:3833794e27ff64ea4e9cf5d410082a8b97ff1a06c16aa3d2027339cd0f1195c7 \
9+
--hash=sha256:c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181
10+
# via pytest-flake8-path
11+
iniconfig==2.0.0 \
12+
--hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \
13+
--hash=sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374
14+
# via pytest
15+
mccabe==0.7.0 \
16+
--hash=sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325 \
17+
--hash=sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e
18+
# via flake8
19+
packaging==23.1 \
20+
--hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \
21+
--hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f
22+
# via pytest
23+
pluggy==1.0.0 \
24+
--hash=sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159 \
25+
--hash=sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3
26+
# via pytest
27+
pycodestyle==2.10.0 \
28+
--hash=sha256:347187bdb476329d98f695c213d7295a846d1152ff4fe9bacb8a9590b8ee7053 \
29+
--hash=sha256:8a4eaf0d0495c7395bdab3589ac2db602797d76207242c17d470186815706610
30+
# via flake8
31+
pyflakes==3.0.1 \
32+
--hash=sha256:ec55bf7fe21fff7f1ad2f7da62363d749e2a470500eab1b555334b67aa1ef8cf \
33+
--hash=sha256:ec8b276a6b60bd80defed25add7e439881c19e64850afd9b346283d4165fd0fd
34+
# via flake8
35+
pytest==7.3.2 \
36+
--hash=sha256:cdcbd012c9312258922f8cd3f1b62a6580fdced17db6014896053d47cddf9295 \
37+
--hash=sha256:ee990a3cc55ba808b80795a79944756f315c67c12b56abd3ac993a7b8c17030b
38+
# via
39+
# -r requirements.in
40+
# pytest-flake8-path
41+
# pytest-randomly
42+
pytest-flake8-path==1.3.0 \
43+
--hash=sha256:a1f6a7f045e73b3400a59ad1a874dad39636a8d6bedef6e962396f863e05a4ac \
44+
--hash=sha256:a3ddf053b56dbd1981f0e74ca02041e18f4e9f82435052358ffd2c147bf5a461
45+
# via -r requirements.in
46+
pytest-randomly==3.12.0 \
47+
--hash=sha256:d60c2db71ac319aee0fc6c4110a7597d611a8b94a5590918bfa8583f00caccb2 \
48+
--hash=sha256:f4f2e803daf5d1ba036cc22bf4fe9dbbf99389ec56b00e5cba732fb5c1d07fdd
49+
# via -r requirements.in

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers =
2222
Programming Language :: Python :: 3.9
2323
Programming Language :: Python :: 3.10
2424
Programming Language :: Python :: 3.11
25+
Programming Language :: Python :: 3.12
2526
Typing :: Typed
2627
keywords = flake8, comprehensions, list comprehension, set comprehension, dict comprehension
2728
project_urls =

tox.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
requires =
33
tox>=4.2
44
env_list =
5-
py{311, 310, 39, 38, 37}
5+
py{312, 311, 310, 39, 38, 37}
66

77
[testenv]
8+
package = wheel
89
deps =
910
-r requirements/{envname}.txt
1011
set_env =

0 commit comments

Comments
 (0)