Skip to content

Commit fc87262

Browse files
authored
Test against Python 3.14 (#2864)
* Test against Python 3.14 * Handle new error message in newer python * Add back py313 to tox
1 parent 2a5e2e1 commit fc87262

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.github/workflows/build-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v5
1414
- uses: actions/setup-python@v6
1515
with:
16-
python-version: "3.13"
16+
python-version: "3.14"
1717
- run: pip install tox
1818
- run: tox -e docs
1919
tests:
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
include:
2626
- { name: "3.10", python: "3.10", tox: py310 }
27-
- { name: "3.13", python: "3.13", tox: py313 }
27+
- { name: "3.14", python: "3.14", tox: py314 }
2828
- { name: "mypy", python: "3.13", tox: mypy }
2929
steps:
3030
- uses: actions/checkout@v5
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v5
4242
- uses: actions/setup-python@v6
4343
with:
44-
python-version: "3.13"
44+
python-version: "3.14"
4545
- name: Install pypa/build
4646
run: python -m pip install build
4747
- name: Build a binary wheel and a source tarball
@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/checkout@v5
6565
- uses: actions/setup-python@v6
6666
with:
67-
python-version: "3.13"
67+
python-version: "3.14"
6868
- run: python -m pip install tox
6969
- run: python -m tox -e lint
7070
publish-to-pypi:

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Changelog
77
Other changes:
88

99
- Drop support for Python 3.9 (:pr:`2363`).
10+
- Test against Python 3.14.
11+
1012

1113
4.0.1 (2025-08-28)
1214
++++++++++++++++++

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
"Programming Language :: Python :: 3.11",
2020
"Programming Language :: Python :: 3.12",
2121
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
]
2324
requires-python = ">=3.10"
2425
dependencies = [

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_from_timestamp_with_negative_value():
124124

125125
def test_from_timestamp_with_overflow_value():
126126
value = 9223372036854775
127-
with pytest.raises(ValueError, match="out of range"):
127+
with pytest.raises(ValueError, match=r"out of range|year must be in 1\.\.9999"):
128128
utils.from_timestamp(value)
129129

130130

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = lint,mypy,py{310,311,312,313},docs
2+
envlist = lint,mypy,py{310,311,312,313,314},docs
33

44
[testenv]
55
extras = tests

0 commit comments

Comments
 (0)