From 5494af79da6dcf66a9bb97e53c125e8d83e1a50a Mon Sep 17 00:00:00 2001 From: Jeremiah England Date: Wed, 28 Oct 2026 21:42:21 -0400 Subject: [PATCH] feat: add support for Python 3.15 Bump pyo3 and rust-numpy to 0.29, which support Python 3.15 while keeping Python 3.8 (0.30 drops 3.8). Add 3.15 to the CI test matrix, wheel build interpreters, and classifiers. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci-tsdownsample.yml | 4 ++-- Cargo.toml | 4 ++-- pyproject.toml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tsdownsample.yml b/.github/workflows/ci-tsdownsample.yml index c56804f..01b6856 100644 --- a/.github/workflows/ci-tsdownsample.yml +++ b/.github/workflows/ci-tsdownsample.yml @@ -46,7 +46,7 @@ jobs: matrix: os: ['windows-latest', 'macOS-latest', 'ubuntu-latest'] rust: ['nightly'] # ['stable', 'beta'] - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15'] env: PYTHON: ${{ matrix.python-version }} @@ -155,7 +155,7 @@ jobs: target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux || 'auto' }} container: ${{ matrix.container }} - args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 3.14' }} + args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15' }} - run: ${{ matrix.ls || 'ls -lh' }} dist/ diff --git a/Cargo.toml b/Cargo.toml index 0a9afb0..966bf8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,8 +9,8 @@ license = "MIT" [dependencies] downsample_rs = { path = "downsample_rs", features = ["half"]} -pyo3 = { version = "0.28", features = ["extension-module", "generate-import-lib"] } -numpy = { version = "0.28", features = ["half"] } +pyo3 = { version = "0.29", features = ["extension-module", "generate-import-lib"] } +numpy = { version = "0.29", features = ["half"] } half = { version = "2.7.1", default-features = false } paste = { version = "1.0.15", default-features = false } diff --git a/pyproject.toml b/pyproject.toml index 85395e1..aa35ce1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ classifiers = [ 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3.14', + 'Programming Language :: Python :: 3.15', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows'