Hello, Here's a patch which should get python-maturin up to speed.
Best regards, Simon Quigley [email protected]
diff -Nru python-maturin-1.16.0/debian/changelog python-maturin-1.16.0/debian/changelog --- python-maturin-1.16.0/debian/changelog 2026-10-29 12:34:30.000000000 -0500 +++ python-maturin-1.16.0/debian/changelog 2026-11-28 16:28:20.000000000 -0600 @@ -1,3 +1,11 @@ +python-maturin (1.16.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Build against serial_test 4. + * Build against cargo-cyclonedx 0.5.10. + + -- Simon Quigley <[email protected]> Sat, 28 Nov 2026 16:28:47 -0600 + python-maturin (1.16.0-1) unstable; urgency=medium * Team upload. diff -Nru python-maturin-1.16.0/debian/control python-maturin-1.16.0/debian/control --- python-maturin-1.16.0/debian/control 2026-10-29 12:34:30.000000000 -0500 +++ python-maturin-1.16.0/debian/control 2026-11-28 16:28:13.000000000 -0600 @@ -11,8 +11,8 @@ librust-base64-0.22+default-dev, librust-bytesize-2+default-dev (>= 2.2.0), librust-cargo-config2-0.1+default-dev (>= 0.1.24), - librust-cargo-cyclonedx-0.5+default-dev (<< 0.5.10), - librust-cargo-cyclonedx-0.5+default-dev (>= 0.5.9), + librust-cargo-cyclonedx-0.5+default-dev (>= 0.5.10), + librust-cyclonedx-bom-0.9+default-dev, librust-cargo-metadata-0.23+default-dev (>= 0.23.1), librust-cargo-options-0.8+default-dev (>= 0.8.1), librust-cbindgen-0.29-dev, @@ -83,7 +83,7 @@ librust-serde-1+default-dev (>= 1.0.197), librust-serde-1+derive-dev (>= 1.0.197), librust-serde-json-1+default-dev (>= 1.0.114), - librust-serial-test-3-dev (>= 3.2.0), + librust-serial-test-4-dev, librust-sha2-0.11+default-dev, librust-tar-0.4+default-dev (>= 0.4.46), librust-target-lexicon-0.13+default-dev (>= 0.13.3), diff -Nru python-maturin-1.16.0/debian/patches/relax-cargo-cyclonedx.patch python-maturin-1.16.0/debian/patches/relax-cargo-cyclonedx.patch --- python-maturin-1.16.0/debian/patches/relax-cargo-cyclonedx.patch 1969-12-31 18:00:00.000000000 -0600 +++ python-maturin-1.16.0/debian/patches/relax-cargo-cyclonedx.patch 2026-11-28 16:28:11.000000000 -0600 @@ -0,0 +1,52 @@ +Description: Build against cargo-cyclonedx 0.5.10. +Author: Simon Quigley <[email protected]> +Origin: vendor +Forwarded: not-needed +Last-Update: 2026-11-28 +--- +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -136,7 +136,8 @@ wild = { version = "2.1.0", optional = t + schemars = { version = "1.0.4", optional = true } + + # SBOM +-cargo-cyclonedx = { version = "=0.5.9", optional = true } ++cargo-cyclonedx = { version = "0.5.10", optional = true } ++cyclonedx-bom = { version = "0.9", optional = true } + pretty_assertions = { version = "1.3.0", optional = true } + which = { version = "8.0.0", optional = true } + +@@ -177,7 +178,7 @@ upload = [ + + schemars = ["dep:schemars", "dep:pretty_assertions"] + +-sbom = ["dep:cargo-cyclonedx", "dep:which"] ++sbom = ["dep:cargo-cyclonedx", "dep:cyclonedx-bom", "dep:which"] + + # we only enable keyring's native macOS/Windows/Linux backends (no BSD backend), + # so it's not enabled in `full` by default +--- a/src/sbom.rs ++++ b/src/sbom.rs +@@ -41,10 +41,9 @@ impl SbomData { + target: Some(cargo_cyclonedx::config::Target::AllTargets), + ..CyclonedxConfig::empty_config() + }; +- // cargo-cyclonedx depends on cargo_metadata 0.18, while maturin uses +- // cargo_metadata 0.23. The Metadata structs are incompatible at the +- // type level but share the same JSON representation, so we bridge +- // them via a serde round-trip. ++ // cargo-cyclonedx 0.5.10 and maturin both use cargo_metadata 0.23. ++ // The Metadata types are still separate crates at the type level, so ++ // bridge them with a serde round-trip. + let json = serde_json::to_value(context.project.cargo_metadata.as_ref())?; + let metadata = serde_json::from_value(json) + .context("Failed to convert cargo metadata for SBOM generation")?; +@@ -61,7 +60,7 @@ impl SbomData { + } + let mut buf = Vec::new(); + sbom.bom +- .output_as_json_v1_5(&mut buf) ++ .output_as_json(&mut buf, cyclonedx_bom::models::bom::SpecVersion::V1_5) + .map_err(|e| anyhow!("Failed to serialize SBOM: {}", e))?; + rust_sboms.push((sbom.package_name, buf)); + } diff -Nru python-maturin-1.16.0/debian/patches/relax-serial-test.patch python-maturin-1.16.0/debian/patches/relax-serial-test.patch --- python-maturin-1.16.0/debian/patches/relax-serial-test.patch 1969-12-31 18:00:00.000000000 -0600 +++ python-maturin-1.16.0/debian/patches/relax-serial-test.patch 2026-11-28 16:28:04.000000000 -0600 @@ -0,0 +1,17 @@ +Description: Build against serial_test 4. +Author: Simon Quigley <[email protected]> +Origin: vendor +Forwarded: not-needed +Last-Update: 2026-11-28 +--- +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -152,7 +152,7 @@ insta = "1.34.0" + pretty_assertions = "1.3.0" + rstest = "0.26.1" + rustversion = "1.0.9" +-serial_test = { version = "3.2.0", default-features = false } ++serial_test = { version = "4", default-features = false } + time = { version = "0.3.34", features = ["macros"] } + trycmd = ">=0.15,<2" + which = "8.0.0" diff -Nru python-maturin-1.16.0/debian/patches/series python-maturin-1.16.0/debian/patches/series --- python-maturin-1.16.0/debian/patches/series 2026-10-29 12:34:30.000000000 -0500 +++ python-maturin-1.16.0/debian/patches/series 2026-11-28 16:28:18.000000000 -0600 @@ -10,3 +10,5 @@ relax-trycmd.patch relax-python-pkginfo.patch relax-zip.patch +relax-serial-test.patch +relax-cargo-cyclonedx.patch
OpenPGP_signature.asc
Description: OpenPGP digital signature

