From fe1c50c98a8650b6a75cab897db34a1efec79e99 Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Tue, 3 Nov 2026 12:54:46 +0100 Subject: [PATCH] Bump pyo3 to 0.29.3 to fix wheel builds on PyPy 3.12 CI started failing on build-linux (aarch64) and build-musllinux (aarch64) because the manylinux/musllinux build images now ship PyPy 3.12. maturin's `--find-interpreter` picks it up automatically, and pyo3-ffi 0.29.0 fails to compile for it: error[E0425]: cannot find type `c_int` in this scope error[E0425]: cannot find type `_PyInterpreterFrame` in this scope In pyo3-ffi 0.29.0, `PyDict_ClearWatcher`/`Watch`/`Unwatch` and the `PyUnstable_InterpreterFrame_*` functions are declared for any `Py_3_12` target, but the `c_int` import and the `_PyInterpreterFrame` type they need are only defined when not building for PyPy. PyPy 3.12 hits this mismatch and the crate fails to compile. pyo3-ffi 0.29.3 fixes the cfg gating so both sides agree again. Our code is unaffected; this is just a dependency bump to a newer patch release. Same fix as frequenz-microgrid-component-graph-python#127. Signed-off-by: Mathias L. Baumann --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 2 +- RELEASE_NOTES.md | 2 ++ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 505ee72..23ceb48 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -184,9 +184,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c" +checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" dependencies = [ "chrono", "libc", @@ -199,18 +199,18 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078" +checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b" +checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" dependencies = [ "libc", "pyo3-build-config", @@ -218,9 +218,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771" +checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -230,9 +230,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362" +checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 1e66139..2f092f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ crate-type = ["cdylib"] [dependencies] chrono = "0.4" frequenz-resampling = "0.3.0" -pyo3 = { version = "0.29", features = [ +pyo3 = { version = "0.29.3", features = [ "extension-module", "chrono", ] } diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 48c26d5..6af2d4e 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -22,3 +22,5 @@ actions, re-added workflow-level `permissions: contents: read`, restored `python -I` isolated mode on Python invocations, re-added `permissions: {}` on gate jobs, and fixed shell injection risks in `mike` and release steps. +* Bumped `pyo3` to 0.29.3 to fix wheel builds, which were failing to compile + against PyPy 3.12 on a `pyo3-ffi` 0.29.0 bug.