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

Commit 495c608

Browse files
authored
Add support for Python 3.11 (#20)
* Add support for Python 3.11 * Set warnings to errors in tests
1 parent 2832f24 commit 495c608

File tree

6 files changed

+56
-52
lines changed

6 files changed

+56
-52
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.7", "3.8", "3.9", "3.10"]
10+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python ${{ matrix.python-version }}

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+
2.3.0 - Unreleased
58+
^^^^^^^^^^^^^^^^^^
59+
60+
- Drop Python 3.7 support and support Python 3.11
61+
5762
2.2.0 - 2022-03-29
5863
^^^^^^^^^^^^^^^^^^
5964

dev-requirements.txt

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,93 +4,87 @@
44
#
55
# pip-compile '.\dev-requirements.in'
66
#
7-
atomicwrites==1.4.0
8-
# via pytest
9-
attrs==21.4.0
10-
# via pytest
11-
black==22.3.0
7+
black==23.3.0
128
# via -r .\dev-requirements.in
13-
click==8.1.0
9+
cachetools==5.3.0
10+
# via tox
11+
chardet==5.1.0
12+
# via tox
13+
click==8.1.3
1414
# via black
15-
colorama==0.4.4
15+
colorama==0.4.6
1616
# via
1717
# click
1818
# pytest
1919
# tox
20-
coverage[toml]==6.3.2
20+
coverage[toml]==7.2.5
2121
# via pytest-cov
22-
distlib==0.3.4
22+
distlib==0.3.6
2323
# via virtualenv
24-
filelock==3.6.0
24+
exceptiongroup==1.1.1
25+
# via pytest
26+
filelock==3.12.0
2527
# via
2628
# tox
2729
# virtualenv
28-
flake8==4.0.1
30+
flake8==6.0.0
2931
# via
3032
# -r .\dev-requirements.in
31-
# flake8-polyfill
3233
# pep8-naming
33-
flake8-polyfill==1.0.2
34-
# via pep8-naming
35-
iniconfig==1.1.1
34+
iniconfig==2.0.0
3635
# via pytest
37-
isort==5.10.1
36+
isort==5.12.0
3837
# via -r .\dev-requirements.in
39-
mccabe==0.6.1
38+
mccabe==0.7.0
4039
# via flake8
41-
mypy==0.942
40+
mypy==1.2.0
4241
# via -r .\dev-requirements.in
43-
mypy-extensions==0.4.3
42+
mypy-extensions==1.0.0
4443
# via
4544
# black
4645
# mypy
47-
packaging==21.3
46+
packaging==23.1
4847
# via
48+
# black
49+
# pyproject-api
4950
# pytest
5051
# tox
51-
pathspec==0.9.0
52+
pathspec==0.11.1
5253
# via black
53-
pep8-naming==0.12.1
54+
pep8-naming==0.13.3
5455
# via -r .\dev-requirements.in
55-
platformdirs==2.5.1
56+
platformdirs==3.5.0
5657
# via
5758
# black
59+
# tox
5860
# virtualenv
5961
pluggy==1.0.0
6062
# via
6163
# pytest
6264
# tox
63-
py==1.11.0
64-
# via
65-
# pytest
66-
# tox
67-
pycodestyle==2.8.0
65+
pycodestyle==2.10.0
6866
# via flake8
69-
pyflakes==2.4.0
67+
pyflakes==3.0.1
7068
# via flake8
71-
pyparsing==3.0.7
72-
# via packaging
73-
pytest==7.1.1
69+
pyproject-api==1.5.1
70+
# via tox
71+
pytest==7.3.1
7472
# via
7573
# -r .\dev-requirements.in
7674
# pytest-cov
77-
pytest-cov==3.0.0
75+
pytest-cov==4.0.0
7876
# via -r .\dev-requirements.in
79-
six==1.16.0
80-
# via
81-
# tox
82-
# virtualenv
83-
toml==0.10.2
84-
# via tox
8577
tomli==2.0.1
8678
# via
8779
# black
8880
# coverage
8981
# mypy
82+
# pyproject-api
9083
# pytest
91-
tox==3.24.5
84+
# tox
85+
tox==4.5.1
9286
# via -r .\dev-requirements.in
93-
typing-extensions==4.1.1
87+
typing-extensions==4.5.0
9488
# via mypy
95-
virtualenv==20.14.0
89+
virtualenv==20.23.0
9690
# via tox

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=46.0", "wheel"]
2+
requires = ["setuptools>=62.0.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.mypy]
@@ -8,14 +8,19 @@ strict = true
88

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

1313
[tool.isort]
1414
profile = "black"
1515
line_length = 99
1616
force_sort_within_sections = true
1717
skip_gitignore = true
1818

19+
[tool.pytest.ini_options]
20+
filterwarnings = [
21+
"error",
22+
]
23+
1924
[tool.coverage.run]
2025
branch = true
2126
omit = [".tox/*", "setup.py"]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
url="https://github.com/johnthagen/cppcheck-junit",
1212
py_modules=["cppcheck_junit"],
1313
install_requires=open("requirements.txt").readlines(),
14-
python_requires=">=3.7",
14+
python_requires=">=3.8",
1515
zip_safe=False,
1616
license="MIT",
1717
classifiers=[
@@ -24,10 +24,10 @@
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3",
2626
"Programming Language :: Python :: 3 :: Only",
27-
"Programming Language :: Python :: 3.7",
2827
"Programming Language :: Python :: 3.8",
2928
"Programming Language :: Python :: 3.9",
3029
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
3131
"Topic :: Software Development :: Quality Assurance",
3232
],
3333
scripts=["cppcheck_junit.py"],

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ extend-exclude =
66

77
[gh-actions]
88
python =
9-
3.7: py37
109
3.8: py38
1110
3.9: py39, fmt-check, lint
1211
3.10: py310
12+
3.11: py311
1313

1414
[tox]
1515
envlist =
1616
fmt-check
1717
lint
18-
;type-check
19-
py{37,38,39,310}
18+
type-check
19+
py{38,39,310,311}
2020
skip_missing_interpreters = true
2121
isolated_build = true
2222

@@ -26,7 +26,7 @@ deps =
2626
-r{toxinidir}/dev-requirements.txt
2727

2828
commands =
29-
python -bb -m pytest --cov=./ --cov-report=html --cov-report=term --cov-fail-under=100 test.py
29+
python -m pytest --cov=./ --cov-report=html --cov-report=term --cov-fail-under=100 test.py
3030

3131
# TODO: Get mypy checking to pass.
3232
[testenv:type-check]
@@ -57,7 +57,7 @@ skip_install = true
5757
deps =
5858
-r{toxinidir}/dev-requirements.txt
5959
commands =
60-
isort --check-only .
60+
isort --check .
6161
black --check .
6262

6363
[testenv:build]

0 commit comments

Comments
 (0)