Skip to content

Commit b7ae5b3

Browse files
authored
Add support for Python 3.13. (#369)
1 parent 26ce978 commit b7ae5b3

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
os: [macos-latest, ubuntu-latest, windows-latest]
19-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2020

2121
steps:
2222
- name: Checkout code
@@ -26,6 +26,7 @@ jobs:
2626
uses: actions/setup-python@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
allow-prereleases: true
2930

3031
- name: Install dependencies
3132
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 2.13 (unreleased)
22

3+
* Add support for Python 3.13 (Jendrik Seipp, #369).
34
* Add PyPI and conda-forge badges to README file (Trevor James Smith, #356).
45
* Include `tests/**/*.toml` in sdist (Colin Watson).
56

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def find_version(*parts):
4646
"Programming Language :: Python :: 3.10",
4747
"Programming Language :: Python :: 3.11",
4848
"Programming Language :: Python :: 3.12",
49+
"Programming Language :: Python :: 3.13",
4950
"Programming Language :: Python :: Implementation :: CPython",
5051
"Programming Language :: Python :: Implementation :: PyPy",
5152
"Topic :: Software Development :: Quality Assurance",

tests/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
REPO = pathlib.Path(__file__).resolve().parents[1]
1010
WHITELISTS = [
11-
str(path) for path in (REPO / "vulture" / "whitelists").glob("*.py")
11+
str(path)
12+
for path in (REPO / "vulture" / "whitelists").glob("*.py")
13+
# Pint is incompatible with Python 3.13 (https://github.com/hgrecco/pint/issues/1969).
14+
if sys.version_info < (3, 13) or path.name != "pint_whitelist.py"
1215
]
1316

1417

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
[tox]
2-
envlist = cleanup, py{38,310,311,312}, style # Skip py39 since it chokes on distutils.
2+
envlist = cleanup, py{38,310,311,312,313}, style # Skip py39 since it chokes on distutils.
33
skip_missing_interpreters = true
44

55
# Erase old coverage results, then accumulate them during this tox run.
66
[testenv:cleanup]
77
deps =
8-
coverage==7.0.5
8+
coverage
99
commands =
1010
coverage erase
1111

1212
[testenv]
1313
deps =
14-
coverage==7.0.5
14+
coverage
1515
pint # Use latest version to catch API changes.
16-
pytest==7.4.2
17-
pytest-cov==4.0.0
16+
pytest
17+
pytest-cov
1818
commands =
1919
pytest {posargs}
2020
# Install package as wheel in all envs (https://hynek.me/articles/turbo-charge-tox/).

0 commit comments

Comments
 (0)