From dd26b0fa97b7125b53eeda6e0822f6582c729370 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 8 Apr 2025 09:45:36 -0400 Subject: [PATCH] Update PyO3 to 0.24 --- ...375c2a2f96e28a1b3987f0eb5c730b4b361e.patch | 27 +++++++++++++++++++ python-cramjam.spec | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 217c375c2a2f96e28a1b3987f0eb5c730b4b361e.patch diff --git a/217c375c2a2f96e28a1b3987f0eb5c730b4b361e.patch b/217c375c2a2f96e28a1b3987f0eb5c730b4b361e.patch new file mode 100644 index 0000000..911e068 --- /dev/null +++ b/217c375c2a2f96e28a1b3987f0eb5c730b4b361e.patch @@ -0,0 +1,27 @@ +From 217c375c2a2f96e28a1b3987f0eb5c730b4b361e Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Tue, 8 Apr 2025 09:40:09 -0400 +Subject: [PATCH] Update PyO3 to 0.24 + +--- + Cargo.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Cargo.toml b/Cargo.toml +index bf9b6831..0ab9473f 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -65,11 +65,11 @@ wasm32-compat = ["libcramjam/wasm32-compat"] + + + [dependencies] +-pyo3 = { version = "^0.23", default-features = false, features = ["macros"] } ++pyo3 = { version = "^0.24", default-features = false, features = ["macros"] } + libcramjam = { version = "^0.7", default-features = false } + + [build-dependencies] +-pyo3-build-config = "^0.23" ++pyo3-build-config = "^0.24" + + [profile.release] + strip = true diff --git a/python-cramjam.spec b/python-cramjam.spec index 0fff062..630bdea 100644 --- a/python-cramjam.spec +++ b/python-cramjam.spec @@ -33,6 +33,10 @@ Source1: get_source %endif +# Update PyO3 to 0.24 +# https://github.com/milesgranger/cramjam/pull/207 +Patch: %{url}/pull/207/commits/217c375c2a2f96e28a1b3987f0eb5c730b4b361e.patch + BuildRequires: python3-devel BuildRequires: tomcli BuildRequires: cargo-rpm-macros >= 24