public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pydantic-core] f45: Update lru to 0.18.2 for RUSTSEC-2026-0253
@ 2026-10-29 8:44 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-29 8:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pydantic-core
Branch : f45
Commit : f56f16a37f9d32d32a3536728e25f7f68ce4cc90
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-29T08:24:44+00:00
Stats : +36/-32 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-pydantic-core/c/f56f16a37f9d32d32a3536728e25f7f68ce4cc90?branch=f45
Log:
Update lru to 0.18.2 for RUSTSEC-2026-0253
---
diff --git a/pydantic-core-fix-metadata.diff b/pydantic-core-fix-metadata.diff
index f6570a6..4ba09aa 100644
--- a/pydantic-core-fix-metadata.diff
+++ b/pydantic-core-fix-metadata.diff
@@ -1,6 +1,18 @@
-diff -Naur ./pydantic_core-2.46.4-original/Cargo.toml pydantic_core-2.46.4/Cargo.toml
---- ./pydantic_core-2.46.4-original/Cargo.toml 2006-07-24 02:21:28.000000000 +0100
-+++ pydantic_core-2.46.4/Cargo.toml 2026-05-19 14:00:21.288887358 +0100
+diff -Naur a/Cargo.toml b/Cargo.toml
+--- a/Cargo.toml 2006-07-24 02:21:28.000000000 +0100
++++ b/Cargo.toml 2026-10-29 08:21:45.861920138 +0000
+@@ -27,9 +27,9 @@
+ [dependencies]
+ # TODO it would be very nice to remove the "py-clone" feature as it can panic,
+ # but needs a bit of work to make sure it's not used in the codebase
+-pyo3 = { version = "0.28", features = ["generate-import-lib", "num-bigint", "py-clone", "smallvec"] }
++pyo3 = { version = "0.29", features = ["generate-import-lib", "num-bigint", "py-clone", "smallvec"] }
+ regex = "1.12.3"
+-lru = "0.16.3"
++lru = "0.18.2"
+ strum = { version = "0.27", features = ["derive"] }
+ strum_macros = "0.27"
+ serde_json = { version = "1.0.149", features = ["arbitrary_precision"] }
@@ -45,7 +45,7 @@
num-bigint = "0.4.6"
num-traits = "0.2.19"
@@ -10,3 +22,18 @@ diff -Naur ./pydantic_core-2.46.4-original/Cargo.toml pydantic_core-2.46.4/Cargo
hex = "0.4.3"
percent-encoding = "2.3.2"
hashbrown = { version = "0.16", default-features = false, features = ["inline-more"] }
+@@ -71,12 +71,12 @@
+ strip = false
+
+ [dev-dependencies]
+-pyo3 = { version = "0.28", features = ["auto-initialize"] }
++pyo3 = { version = "0.29", features = ["auto-initialize"] }
+
+ [build-dependencies]
+ version_check = "0.9.5"
+ # used where logic has to be version/distribution specific, e.g. pypy
+-pyo3-build-config = { version = "0.28" }
++pyo3-build-config = { version = "0.29" }
+
+ [lints.clippy]
+ dbg_macro = "warn"
diff --git a/pydantic_core-2.46.4-pyo3-0.29.patch b/pydantic_core-2.46.4-pyo3-0.29.patch
index 751e737..80c64e8 100644
--- a/pydantic_core-2.46.4-pyo3-0.29.patch
+++ b/pydantic_core-2.46.4-pyo3-0.29.patch
@@ -1,30 +1,3 @@
-diff -Naur pydantic_core-2.46.4-original/Cargo.toml pydantic_core-2.46.4/Cargo.toml
---- pydantic_core-2.46.4-original/Cargo.toml 2006-07-24 02:21:28.000000000 +0100
-+++ pydantic_core-2.46.4/Cargo.toml 2026-06-20 09:58:15.258108604 +0100
-@@ -27,7 +27,7 @@
- [dependencies]
- # TODO it would be very nice to remove the "py-clone" feature as it can panic,
- # but needs a bit of work to make sure it's not used in the codebase
--pyo3 = { version = "0.28", features = ["generate-import-lib", "num-bigint", "py-clone", "smallvec"] }
-+pyo3 = { version = "0.29", features = ["generate-import-lib", "num-bigint", "py-clone", "smallvec"] }
- regex = "1.12.3"
- lru = "0.16.3"
- strum = { version = "0.27", features = ["derive"] }
-@@ -71,12 +71,12 @@
- strip = false
-
- [dev-dependencies]
--pyo3 = { version = "0.28", features = ["auto-initialize"] }
-+pyo3 = { version = "0.29", features = ["auto-initialize"] }
-
- [build-dependencies]
- version_check = "0.9.5"
- # used where logic has to be version/distribution specific, e.g. pypy
--pyo3-build-config = { version = "0.28" }
-+pyo3-build-config = { version = "0.29" }
-
- [lints.clippy]
- dbg_macro = "warn"
diff -Naur pydantic_core-2.46.4-original/tests/test_errors.py pydantic_core-2.46.4/tests/test_errors.py
--- pydantic_core-2.46.4-original/tests/test_errors.py 2006-07-24 02:21:28.000000000 +0100
+++ pydantic_core-2.46.4/tests/test_errors.py 2026-06-20 09:59:21.679427429 +0100
diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec
index 8cdad3d..e82baa1 100644
--- a/python-pydantic-core.spec
+++ b/python-pydantic-core.spec
@@ -25,12 +25,16 @@ Source: %{pypi_source pydantic_core}
# maintain 0.29 support for now. Downstream-only because jiter is developed
# by the Pydantic people, and we can reasonably assume that they will update
# in due course without prompting from us.
+# * Update lru to 0.18.2 for RUSTSEC-2026-0253:
+# https://github.com/pydantic/pydantic/commit/97929719f013de7fcebf887e253d3021b8a1c3ea
+# * Update to PyO3 0.29: https://github.com/pydantic/pydantic/pull/13301; this
+# requires an accompanying source-code patch to tweak a test expectation
Patch: pydantic-core-fix-metadata.diff
# Upstream thinks it's a good idea to rely on exact formatting of error messages in other projects. Meh.
# See the commit message in the patch for more info.
Patch: 0001-Fix-test-assertion-to-account-for-change-in-rust-uuid.patch
-# update to PyO3 0.29
-# https://github.com/pydantic/pydantic/pull/13301
+# Source-code change from “update to PyO3 0.29,” a small adjustment to a test
+# expectation: https://github.com/pydantic/pydantic/pull/13301
Patch: pydantic_core-2.46.4-pyo3-0.29.patch
# Compatibility with pytest 9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-29 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 8:44 [rpms/python-pydantic-core] f45: Update lru to 0.18.2 for RUSTSEC-2026-0253 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