From b0c48ff0e320c8666e679f81b628a24a2751343b Mon Sep 17 00:00:00 2001 From: Ben Sully Date: Sun, 18 Oct 2026 17:19:21 +0100 Subject: [PATCH] Update to PyO3 0.30 PyO3 0.30 drops Python 3.8 and raises its MSRV to 1.85, so follow suit: bump rust-version, test abi3 against py39, and remove 3.8 from the CI matrix. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 4 ++-- CHANGELOG.md | 6 ++++++ Cargo.toml | 6 +++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d129ce0..96e1ada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: strategy: fail-fast: false # If one platform fails, allow the rest to keep testing. matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev", "3.15t-dev"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t", "3.15-dev", "3.15t-dev"] os: ["macos-latest", "ubuntu-latest", "windows-latest"] rust: [stable] include: @@ -92,7 +92,7 @@ jobs: run: cargo test --verbose - name: Test (abi3) - run: cargo test --verbose --features pyo3/abi3-py38 + run: cargo test --verbose --features pyo3/abi3-py39 - name: Test (arbitrary_precision) run: cargo test --verbose --features arbitrary_precision diff --git a/CHANGELOG.md b/CHANGELOG.md index b3202ad..a04a738 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Unreleased + +- Bump MSRV to 1.85. +- Update `pyo3` to 0.30. +- Drop support for Python 3.8 (following PyO3). + ## 0.29.0 - 2026-05-12 - Update `pyo3` to 0.29. diff --git a/Cargo.toml b/Cargo.toml index db1f21f..ec349f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "pythonize" version = "0.29.0" authors = ["David Hewitt <1939362+davidhewitt@users.noreply.github.com>"] edition = "2021" -rust-version = "1.83" +rust-version = "1.85" license = "MIT" description = "Serde Serializer & Deserializer from Rust <--> Python, backed by PyO3." homepage = "https://github.com/davidhewitt/pythonize" @@ -14,11 +14,11 @@ documentation = "https://docs.rs/crate/pythonize/" [dependencies] serde = { version = "1.0", default-features = false, features = ["std"] } serde_json = { version = "1.0", optional = true, default-features = false, features = ["std"] } -pyo3 = { version = "0.29", default-features = false } +pyo3 = { version = "0.30", default-features = false } [dev-dependencies] serde = { version = "1.0", default-features = false, features = ["derive"] } -pyo3 = { version = "0.29", default-features = false, features = ["auto-initialize", "macros", "py-clone"] } +pyo3 = { version = "0.30", default-features = false, features = ["auto-initialize", "macros", "py-clone"] } serde_json = { version = "1.0", default-features = false, features = ["std"] } serde_bytes = "0.11" maplit = "1.0.2"