public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pydantic-core] rawhide: Update to PyO3 0.29
@ 2026-06-29 12:16 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-29 12:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pydantic-core
Branch : rawhide
Commit : e8e8fd2fd5117d8a518607d9d56f47f2927c5898
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-20T10:00:48+01:00
Stats : +42/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pydantic-core/c/e8e8fd2fd5117d8a518607d9d56f47f2927c5898?branch=rawhide
Log:
Update to PyO3 0.29
---
diff --git a/pydantic_core-2.46.4-pyo3-0.29.patch b/pydantic_core-2.46.4-pyo3-0.29.patch
new file mode 100644
index 0000000..751e737
--- /dev/null
+++ b/pydantic_core-2.46.4-pyo3-0.29.patch
@@ -0,0 +1,39 @@
+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
+@@ -107,7 +107,7 @@
+
+ v = SchemaValidator(core_schema.with_info_plain_validator_function(f))
+
+- with pytest.raises(TypeError, match="argument 'context': 'list' object is not an instance of 'dict'"):
++ with pytest.raises(TypeError, match="'list' object is not an instance of 'dict'"):
+ v.validate_python(42)
+
+
diff --git a/python-pydantic-core.spec b/python-pydantic-core.spec
index 6cd9517..75433e4 100644
--- a/python-pydantic-core.spec
+++ b/python-pydantic-core.spec
@@ -27,6 +27,9 @@ 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
+Patch: pydantic_core-2.46.4-pyo3-0.29.patch
BuildRequires: python3-devel
BuildRequires: cargo-rpm-macros >= 24
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-29 12:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 12:16 [rpms/python-pydantic-core] rawhide: Update to PyO3 0.29 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