public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-rpds-py] rawhide: Update to PyO3 0.29
@ 2026-06-29 21:00 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-29 21:00 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-rpds-py
Branch : rawhide
Commit : e8b70f56903e7a4f2380d2cae215a6895bdd2b7b
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-29T14:24:36+01:00
Stats  : +20/-13 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-rpds-py/c/e8b70f56903e7a4f2380d2cae215a6895bdd2b7b?branch=rawhide

Log:
Update to PyO3 0.29

---
diff --git a/do_not_require_win_only_pyo3_extension.patch b/do_not_require_win_only_pyo3_extension.patch
deleted file mode 100644
index e5b6abd..0000000
--- a/do_not_require_win_only_pyo3_extension.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -U 3 -dHrN a/Cargo.toml b/Cargo.toml
---- a/Cargo.toml	2006-07-24 03:21:28.000000000 +0200
-+++ b/Cargo.toml	2026-02-08 10:59:46.269158012 +0100
-@@ -13,6 +13,4 @@
- 
- [dependencies.pyo3]
- version = "0.28.3"
--# To build extension for PyPy on Windows, "generate-import-lib" is needed:
--# https://github.com/PyO3/maturin-action/issues/267#issuecomment-2106844429
--features = ["extension-module", "generate-import-lib"]
-+features = ["extension-module"]

diff --git a/python-rpds-py.spec b/python-rpds-py.spec
index 9297c08..3fe006d 100644
--- a/python-rpds-py.spec
+++ b/python-rpds-py.spec
@@ -10,8 +10,14 @@ License:        MIT AND Apache-2.0 AND (MIT OR Apache-2.0) AND MPL-2.0
 URL:            https://github.com/crate-py/rpds
 Source:         %{pypi_source %{modname}}
 
-# The 'generate-import-lib' extension is only useful on MS Win
-Patch:          do_not_require_win_only_pyo3_extension.patch
+# Update to PyO3 0.29, fixing RUSTSEC-2026-0176 and RUSTSEC-2026-0177.
+# https://github.com/crate-py/rpds/commit/3b6dbc0bfc9f2b2cfa7e75d29eb23c3630372e20
+# Released upstream in 2026.6.1, but this release is not yet on PyPI:
+# https://github.com/crate-py/rpds/issues/279.
+#
+# Also drop the generate-import-lib feature, which was Windows-only, and is now
+# deprecated: https://github.com/crate-py/rpds/pull/280.
+Patch:          use_pyo3_0.29.patch
 
 BuildRequires:  cargo-rpm-macros
 BuildRequires:  dos2unix

diff --git a/use_pyo3_0.29.patch b/use_pyo3_0.29.patch
new file mode 100644
index 0000000..a1dc134
--- /dev/null
+++ b/use_pyo3_0.29.patch
@@ -0,0 +1,12 @@
+--- a/Cargo.toml	2006-07-24 02:21:28.000000000 +0100
++++ b/Cargo.toml	2026-06-29 14:21:29.753234569 +0100
+@@ -12,7 +12,5 @@
+ archery = "1.2.2"
+ 
+ [dependencies.pyo3]
+-version = "0.28.3"
+-# To build extension for PyPy on Windows, "generate-import-lib" is needed:
+-# https://github.com/PyO3/maturin-action/issues/267#issuecomment-2106844429
+-features = ["extension-module", "generate-import-lib"]
++version = "0.29.0"
++features = ["extension-module"]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-29 21:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 21:00 [rpms/python-rpds-py] 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