public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-jiter] rawhide: Update to 0.19.0; Fixes RHBZ#2559930
@ 2026-11-07 8:20 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-07 8:20 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-jiter
Branch : rawhide
Commit : 6d474c08f888555919f9938d0c24a60a05dee4f7
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-06T21:40:14+00:00
Stats : +71/-5 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-jiter/c/6d474c08f888555919f9938d0c24a60a05dee4f7?branch=rawhide
Log:
Update to 0.19.0; Fixes RHBZ#2559930
- Patch to maintain PyO3 0.29 support for now.
---
diff --git a/.gitignore b/.gitignore
index c664406..cde88f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,5 @@
/jiter-0.15.0.crate
/jiter-0.16.0.crate
/jiter-0.17.0.crate
+/jiter-0.18.0.crate
+/jiter-0.19.0.crate
diff --git a/jiter-0.19.0-pyo3-0.29.patch b/jiter-0.19.0-pyo3-0.29.patch
new file mode 100644
index 0000000..58e28df
--- /dev/null
+++ b/jiter-0.19.0-pyo3-0.29.patch
@@ -0,0 +1,12 @@
+diff -Naur a/src/py_lossless_float.rs b/src/py_lossless_float.rs
+--- a/src/py_lossless_float.rs 2006-07-24 02:21:28.000000000 +0100
++++ b/src/py_lossless_float.rs 2026-10-26 06:22:54.624760965 +0000
+@@ -34,7 +34,7 @@
+
+ /// Represents a float from JSON, by holding the underlying bytes representing a float from JSON.
+ #[derive(Debug, Clone)]
+-#[pyclass(module = "jiter")]
++#[pyclass(module = "jiter", skip_from_py_object)]
+ pub struct LosslessFloat(Vec<u8>);
+
+ impl LosslessFloat {
diff --git a/jiter-fix-metadata.diff b/jiter-fix-metadata.diff
index 945410a..642b73b 100644
--- a/jiter-fix-metadata.diff
+++ b/jiter-fix-metadata.diff
@@ -1,6 +1,15 @@
---- jiter-0.17.0/Cargo.toml 2006-07-24T01:21:28+00:00
-+++ jiter-0.17.0/Cargo.toml 2026-09-13T08:40:42.924149+00:00
-@@ -124,9 +124,6 @@
+--- jiter-0.19.0/Cargo.toml 2006-07-24T01:21:28+00:00
++++ jiter-0.19.0/Cargo.toml 2026-11-06T21:40:07.230914+00:00
+@@ -115,7 +115,7 @@
+ version = "0.2.16"
+
+ [dependencies.pyo3]
+-version = "0.30.1"
++version = ">=0.29.0, <0.31.0"
+ optional = true
+
+ [dependencies.serde]
+@@ -126,9 +126,6 @@
version = "1.11.0"
features = ["const_new"]
@@ -10,3 +19,21 @@
[dev-dependencies.paste]
version = "1.0.7"
+@@ -136,7 +133,7 @@
+ version = "1.4.0"
+
+ [dev-dependencies.pyo3]
+-version = "0.30.1"
++version = ">=0.29.0, <0.31.0"
+ features = ["auto-initialize"]
+
+ [dev-dependencies.serde]
+@@ -152,7 +149,7 @@
+ ]
+
+ [build-dependencies.pyo3-build-config]
+-version = "0.30.1"
++version = ">=0.29.0, <0.31.0"
+ optional = true
+
+ [lints.clippy]
diff --git a/rust-jiter.spec b/rust-jiter.spec
index c0bdc18..7de3775 100644
--- a/rust-jiter.spec
+++ b/rust-jiter.spec
@@ -5,7 +5,7 @@
%global crate jiter
Name: rust-jiter
-Version: 0.17.0
+Version: 0.19.0
Release: %autorelease
Summary: Fast Iterable JSON parser
@@ -14,7 +14,15 @@ URL: https://crates.io/crates/jiter
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * Omit benchmark-only dependency codspeed-criterion-compat
+# * Allow PyO3 0.29 for now, RHBZ#2544176; source patch required. Needed for
+# python-pydantic-core-2.46.5 in Fedora 45 to avoid a rust-jiter0.17 compat
+# package.
Patch: jiter-fix-metadata.diff
+# * Downstream-only: Restore support for PyO3 0.29 by restoring
+# skip_from_py_object on LosslessFloat, which will lead to a deprecation
+# warning with PyO3 0.30. This is a partial revert
+# ofhttps://github.com/pydantic/jiter/commit/e02134b389f90d1aaefa8caeda3c2df1ce9c053f.
+Patch10: jiter-0.19.0-pyo3-0.29.patch
BuildRequires: cargo-rpm-macros >= 24
diff --git a/rust2rpm.toml b/rust2rpm.toml
index dcc61a6..3f15d7f 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,23 @@
[package]
cargo-toml-patch-comments = [
"Omit benchmark-only dependency codspeed-criterion-compat",
+ """\
+Allow PyO3 0.29 for now, RHBZ#2544176; source patch required. Needed for \
+python-pydantic-core-2.46.5 in Fedora 45 to avoid a rust-jiter0.17 compat \
+package.\
+""",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "jiter-0.19.0-pyo3-0.29.patch"
+comments = [
+ """\
+Downstream-only: Restore support for PyO3 0.29 by restoring skip_from_py_object \
+on LosslessFloat, which will lead to a deprecation warning with PyO3 0.30. This \
+is a partial revert of\
+https://github.com/pydantic/jiter/commit/e02134b389f90d1aaefa8caeda3c2df1ce9c053f.\
+""",
]
[tests]
diff --git a/sources b/sources
index 2df9854..a53133c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (jiter-0.17.0.crate) = 46c7ad483ad35a7c6184a6f38c4e534f3c5d5e9fc4fb5db54c97896024994a026316dca5886d9f3c7b85947d0df053025c3e5e437554d3e7b291a6be90e24302
+SHA512 (jiter-0.19.0.crate) = 636c3a8138239b4c8b945180030d9a1784cc6af9812298cfb57359ca7dfa1aaf207ff15ac31a75f0d3708d6b5d227658daeffa2461d6cff90905ed65f9cad2e8
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 8:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 8:20 [rpms/rust-jiter] rawhide: Update to 0.19.0; Fixes RHBZ#2559930 Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox