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

A new commit has been pushed.

Repo   : rpms/python-rpds-py
Branch : f44
Commit : a222a1a3f75dd16b4146ae808a525516da26c7c6
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-30T06:32:25+01:00
Stats  : +36/-13 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-rpds-py/c/a222a1a3f75dd16b4146ae808a525516da26c7c6?branch=f44

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 8007b8f..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	1970-01-01 01:00:00.000000000 +0100
-+++ b/Cargo.toml	2025-11-22 18:30:09.699339521 +0100
-@@ -13,6 +13,4 @@
- 
- [dependencies.pyo3]
- version = "0.27.1"
--# 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 3f5807c..f993652 100644
--- a/python-rpds-py.spec
+++ b/python-rpds-py.spec
@@ -10,11 +10,20 @@ 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
 # Remove pytest-run-parallel from test dependencies
 # and relax pytest version requirement
 Patch:          fix_test_group_dependencies.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.
+#
+# See also the following commit for the update from 0.27 to 0.28:
+# https://github.com/crate-py/rpds/commit/a41d495dd291afad23bf07fa9281f9e75e366dfb
+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..078b8da
--- /dev/null
+++ b/use_pyo3_0.29.patch
@@ -0,0 +1,25 @@
+diff -U 3 -dHrN a/Cargo.toml b/Cargo.toml
+--- a/Cargo.toml	2006-07-24 02:21:28.000000000 +0100
++++ b/Cargo.toml	2026-06-30 06:32:09.921013324 +0100
+@@ -12,7 +12,5 @@
+ archery = "1.2.2"
+ 
+ [dependencies.pyo3]
+-version = "0.27.1"
+-# 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"]
+diff -U 3 -dHrN a/src/lib.rs b/src/lib.rs
+--- a/src/lib.rs	2006-07-24 02:21:28.000000000 +0100
++++ b/src/lib.rs	2026-06-30 06:29:09.966342645 +0100
+@@ -1545,7 +1545,7 @@
+     }
+ }
+ 
+-#[pymodule(gil_used = false)]
++#[pymodule]
+ #[pyo3(name = "rpds")]
+ fn rpds_py(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
+     m.add_class::<HashTrieMapPy>()?;

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

only message in thread, other threads:[~2026-06-30  6:05 UTC | newest]

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