Skip to content

Commit 39015ae

Browse files
dahliaampcode-com
andcommitted
Add support for Python 3.12-3.14 and update pytest to 8.x
- Add Python 3.12, 3.13, 3.14 classifiers and test environments - Update pytest from 7.2.1 to 8.x for Python 3.14 compatibility - Update tox and GitHub Actions configurations accordingly Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-1d644084-7d6f-4c0f-af4a-e1a816def150
1 parent 2a4abaa commit 39015ae

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
strategy:
77
matrix:
88
python-version:
9+
- "3.14"
10+
- "3.13"
11+
- "3.12"
912
- "3.11"
1013
- "3.10"
1114
- "3.9"

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Version 0.9.0
66

77
To be released.
88

9+
- Extended Python version support to 3.8--3.14.
910
- Added ``user_agent`` parameter to :class:`~wikidata.client.Client` constructor.
1011
Now API requests include a ``User-Agent`` header to comply with Wikidata API
1112
authentication requirements. [:issue:`64`]

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ classifiers = [
2323
"Programming Language :: Python :: 3.9",
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2629
"Programming Language :: Python :: 3 :: Only",
2730
"Programming Language :: Python :: Implementation :: CPython",
2831
"Programming Language :: Python :: Implementation :: PyPy",
@@ -42,7 +45,7 @@ Documentation = "https://wikidata.readthedocs.io/"
4245
tests = [
4346
"flake8 >= 6.0.0",
4447
"flake8-import-order-spoqa",
45-
"pytest ~= 7.2.1",
48+
"pytest ~= 8.0",
4649
"mypy >= 0.991"
4750
]
4851
docs = [

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
[tox]
22
envlist =
33
# CHECK If you're going to change the list of supported Python versions
4-
# update .travis.yml, .devcontainer/devcontainer.json, and setup.cfg's
5-
# classifiers as well.
6-
py38, py39, py310, py311, pypy3, mypy, flake8
4+
# update .devcontainer/devcontainer.json and pyproject.toml's classifiers
5+
# as well.
6+
py38, py39, py310, py311, py312, py313, py314, pypy3, mypy, flake8
77

88
[gh-actions]
99
python =
1010
3.8: py38
1111
3.9: py39
1212
3.10: py310
13-
3.11: py311, mypy, flake8, docs
13+
3.11: py311
14+
3.12: py312
15+
3.13: py313
16+
3.14: py314, mypy, flake8, docs
1417
pypy3.8: pypy3
1518
pypy3.9: pypy3
1619

0 commit comments

Comments
 (0)