From 7d7a15dcd237d701a5a5a3324f816c272eb39a3c Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 12 Oct 2025 12:42:34 +0100 Subject: Require pyo3 0.26.0 This is the version currently available in Debian. I will need to come up with a better way of representing this, that doesn't result in the package immediately breaking when pyo3 gets upgraded. But, for now, it should be good enough to test with. --- ...-Allow-later-versions-of-pyo3-in-Cargo.toml.patch | 20 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch create mode 100644 debian/patches/series diff --git a/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch b/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch new file mode 100644 index 0000000..06f0975 --- /dev/null +++ b/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch @@ -0,0 +1,20 @@ +From: Matthew Fennell +Date: Sun, 12 Oct 2025 12:39:29 +0100 +Subject: Allow later versions of pyo3 in Cargo.toml + +The currently packaged version of pyo3 is 0.25.1, while Cargo.toml requires +0.18. Loosen this requirement to compile with the later version of pyo3. +--- + Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 0813be1..76e9b7b 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -9,4 +9,4 @@ name = "slidge_style_parser" + crate-type = ["cdylib"] + + [dependencies] +-pyo3 = "0.18.1" ++pyo3 = "=0.26.0" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..5dde5de --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch -- cgit v1.2.3