Skip to content

Commit c62b5ea

Browse files
authored
Add Python 3.14 support (#74)
1 parent ec8a6b7 commit c62b5ea

File tree

4 files changed

+139
-54
lines changed

4 files changed

+139
-54
lines changed

.github/workflows/codspeed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
env:
1414
UV_FROZEN: true
15-
UV_PYTHON: 3.13 # use the latest version of Python because it is faster
15+
UV_PYTHON: 3.14 # use the latest version of Python because it is faster
1616
RUST_VERSION: "1.87.0"
1717

1818
jobs:

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
- os: windows
3333
target: i686
3434
python-architecture: x86
35-
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
35+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.14
3636
- os: windows
3737
target: aarch64
38-
interpreter: 3.11 3.12 3.13
38+
interpreter: 3.11 3.12 3.13 3.14
3939

4040
- os: macos
4141
target: x86_64
@@ -54,13 +54,13 @@ jobs:
5454
target: aarch64
5555
- os: ubuntu
5656
target: armv7
57-
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
57+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.14
5858
- os: ubuntu
5959
target: ppc64le
60-
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
60+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.14
6161
- os: ubuntu
6262
target: s390x
63-
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13
63+
interpreter: 3.8 3.9 3.10 3.11 3.12 3.13 3.14
6464

6565
- os: ubuntu
6666
target: x86_64
@@ -93,7 +93,7 @@ jobs:
9393
with:
9494
target: ${{ matrix.target }}
9595
manylinux: ${{ matrix.manylinux || 'auto' }}
96-
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10 pypy3.11' }}
96+
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 3.14 pypy3.9 pypy3.10 pypy3.11' }}
9797
rust-toolchain: ${{ env.RUST_VERSION }}
9898
docker-options: -e CI
9999

@@ -112,7 +112,7 @@ jobs:
112112
fail-fast: false
113113
matrix:
114114
os: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]
115-
interpreter: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
115+
interpreter: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
116116
exclude:
117117
# actions/setup-python@v5 does not support 3.8 and 3.9 on arm64
118118
- os: macos-14
@@ -216,7 +216,7 @@ jobs:
216216
- uses: actions/checkout@v4
217217
- uses: actions/setup-python@v5
218218
with:
219-
python-version: '3.13'
219+
python-version: '3.14'
220220

221221
- name: Get dist artifacts.
222222
uses: actions/download-artifact@v4

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.11",
2727
"Programming Language :: Python :: 3.12",
2828
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
2930
"Topic :: Software Development",
3031
"Topic :: Software Development :: Libraries :: Python Modules",
3132
"Topic :: Software Development :: Pre-processors",
@@ -38,16 +39,19 @@ classifiers = [
3839
"Author" = "https://github.com/MarshalX"
3940

4041
[dependency-groups]
41-
dev = ["maturin>=1.2,<2.0"]
42+
dev = ["maturin>=1.8.7,<2.0"]
4243
testing = [
4344
{ include-group = "dev" },
44-
"pytest==8.3.5",
45-
"pytest-benchmark==4.0.0",
46-
"pytest-xdist==3.6.1",
45+
'pytest==8.3.5; python_version == "3.8"',
46+
'pytest==8.4.1; python_version >= "3.9"',
47+
'pytest-benchmark==4.0.0; python_version == "3.8"',
48+
'pytest-benchmark==5.1.0; python_version >= "3.9"',
49+
'pytest-xdist==3.6.1; python_version == "3.8"',
50+
'pytest-xdist==3.8.0; python_version >= "3.9"',
4751
]
4852
codspeed = [
4953
# only run on CI with the latest Python version
50-
'pytest-codspeed==3.2.0; python_version == "3.13" and implementation_name == "cpython"',
54+
'pytest-codspeed==3.2.0; python_version == "3.14" and implementation_name == "cpython"',
5155
]
5256

5357
all = [
@@ -68,5 +72,5 @@ bindings = "pyo3"
6872
features = ["pyo3/extension-module"]
6973

7074
[build-system]
71-
requires = ["maturin>=1.2,<2.0"]
75+
requires = ["maturin>=1.8.7,<2.0"]
7276
build-backend = "maturin"

0 commit comments

Comments
 (0)