Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Commit 7418a69

Browse files
authored
Add support for Python 3.12 (#22)
* Add support for Python 3.12 * Upgrade dev dependencies * Pin Ubuntu version
1 parent 381d29a commit 7418a69

File tree

6 files changed

+43
-32
lines changed

6 files changed

+43
-32
lines changed

.github/workflows/python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on: [push, pull_request]
44

55
jobs:
66
tox:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
python-version: ["3.8", "3.9", "3.10", "3.11"]
10+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install dependencies

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ output so that CI tools like Bamboo will not fail on the JUnit task.
5454
Releases
5555
--------
5656

57+
Unreleased
58+
^^^^^^^^^^
59+
60+
- Support Python 3.12
61+
5762
2.3.0 - 2023-04-30
5863
^^^^^^^^^^^^^^^^^^
5964

dev-requirements.txt

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.10
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
44
#
55
# pip-compile '.\dev-requirements.in'
66
#
7-
black==23.3.0
7+
black==23.10.1
88
# via -r .\dev-requirements.in
9-
cachetools==5.3.0
9+
cachetools==5.3.2
1010
# via tox
11-
chardet==5.1.0
11+
chardet==5.2.0
1212
# via tox
13-
click==8.1.3
13+
click==8.1.7
1414
# via black
1515
colorama==0.4.6
1616
# via
1717
# click
1818
# pytest
1919
# tox
20-
coverage[toml]==7.2.5
21-
# via pytest-cov
22-
distlib==0.3.6
20+
coverage[toml]==7.3.2
21+
# via
22+
# coverage
23+
# pytest-cov
24+
distlib==0.3.7
2325
# via virtualenv
24-
exceptiongroup==1.1.1
26+
exceptiongroup==1.1.3
2527
# via pytest
26-
filelock==3.12.0
28+
filelock==3.13.0
2729
# via
2830
# tox
2931
# virtualenv
30-
flake8==6.0.0
32+
flake8==6.1.0
3133
# via
3234
# -r .\dev-requirements.in
3335
# pep8-naming
@@ -37,42 +39,42 @@ isort==5.12.0
3739
# via -r .\dev-requirements.in
3840
mccabe==0.7.0
3941
# via flake8
40-
mypy==1.2.0
42+
mypy==1.6.1
4143
# via -r .\dev-requirements.in
4244
mypy-extensions==1.0.0
4345
# via
4446
# black
4547
# mypy
46-
packaging==23.1
48+
packaging==23.2
4749
# via
4850
# black
4951
# pyproject-api
5052
# pytest
5153
# tox
52-
pathspec==0.11.1
54+
pathspec==0.11.2
5355
# via black
5456
pep8-naming==0.13.3
5557
# via -r .\dev-requirements.in
56-
platformdirs==3.5.0
58+
platformdirs==3.11.0
5759
# via
5860
# black
5961
# tox
6062
# virtualenv
61-
pluggy==1.0.0
63+
pluggy==1.3.0
6264
# via
6365
# pytest
6466
# tox
65-
pycodestyle==2.10.0
67+
pycodestyle==2.11.1
6668
# via flake8
67-
pyflakes==3.0.1
69+
pyflakes==3.1.0
6870
# via flake8
69-
pyproject-api==1.5.1
71+
pyproject-api==1.6.1
7072
# via tox
71-
pytest==7.3.1
73+
pytest==7.4.3
7274
# via
7375
# -r .\dev-requirements.in
7476
# pytest-cov
75-
pytest-cov==4.0.0
77+
pytest-cov==4.1.0
7678
# via -r .\dev-requirements.in
7779
tomli==2.0.1
7880
# via
@@ -82,9 +84,11 @@ tomli==2.0.1
8284
# pyproject-api
8385
# pytest
8486
# tox
85-
tox==4.5.1
87+
tox==4.11.3
8688
# via -r .\dev-requirements.in
87-
typing-extensions==4.5.0
88-
# via mypy
89-
virtualenv==20.23.0
89+
typing-extensions==4.8.0
90+
# via
91+
# black
92+
# mypy
93+
virtualenv==20.24.6
9094
# via tox

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ strict = true
88

99
[tool.black]
1010
line-length = 99
11-
target-version = ["py38", "py39", "py310"]
11+
target-version = ["py38", "py39", "py310", "py311"]
1212

1313
[tool.isort]
1414
profile = "black"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"Programming Language :: Python :: 3.9",
2929
"Programming Language :: Python :: 3.10",
3030
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
3132
"Topic :: Software Development :: Quality Assurance",
3233
],
3334
scripts=["cppcheck_junit.py"],

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ python =
1010
3.9: py39, fmt-check, lint
1111
3.10: py310
1212
3.11: py311
13+
3.12: py312
1314

1415
[tox]
1516
envlist =
1617
fmt-check
1718
lint
1819
type-check
19-
py{38,39,310,311}
20+
py{38,39,310,311,312}
2021
skip_missing_interpreters = true
2122
isolated_build = true
2223

0 commit comments

Comments
 (0)