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

A new commit has been pushed.

Repo   : rpms/python-setuptools-rust
Branch : rawhide
Commit : 9a0f3caf5f74395387c4366854cb2f5a23c8c1cf
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-21T08:39:01+01:00
Stats  : +66/-60 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-setuptools-rust/c/9a0f3caf5f74395387c4366854cb2f5a23c8c1cf?branch=rawhide

Log:
Update examples to use PyO3 0.29

---
diff --git a/python-setuptools-rust.spec b/python-setuptools-rust.spec
index 099e003..687b1d8 100644
--- a/python-setuptools-rust.spec
+++ b/python-setuptools-rust.spec
@@ -15,9 +15,15 @@ License:        MIT
 URL:            https://github.com/PyO3/setuptools-rust
 Source:         %{pypi_source setuptools_rust}
 
-# Temporarily allow building examples with PyO3 0.27, until we have 0.28:
-# https://bugzilla.redhat.com/show_bug.cgi?id=2435852
-Patch:          setuptools_rust-1.12.1-allow-PyO3-0.27.patch
+# Update examples to use PyO3 0.29. Some already have upstream dependabot PR’s:
+#
+# build(deps): bump pyo3 from 0.28.3 to 0.29.0 in /examples/namespace_package
+# https://github.com/PyO3/setuptools-rust/pull/596
+# build(deps): bump pyo3 from 0.28.3 to 0.29.0 in /examples/hello-world
+# https://github.com/PyO3/setuptools-rust/pull/597
+#
+# We presume that the others will get dependabot PR’s shortly.
+Patch:          setuptools_rust-1.12.1-PyO3-0.29.patch
 
 BuildArch:      noarch
 

diff --git a/setuptools_rust-1.12.1-PyO3-0.29.patch b/setuptools_rust-1.12.1-PyO3-0.29.patch
new file mode 100644
index 0000000..f5afa00
--- /dev/null
+++ b/setuptools_rust-1.12.1-PyO3-0.29.patch
@@ -0,0 +1,57 @@
+diff -Naur setuptools_rust-1.12.1-original/examples/hello-world/Cargo.toml setuptools_rust-1.12.1/examples/hello-world/Cargo.toml
+--- setuptools_rust-1.12.1-original/examples/hello-world/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
++++ setuptools_rust-1.12.1/examples/hello-world/Cargo.toml	2026-06-20 21:32:24.092064894 +0100
+@@ -6,7 +6,7 @@
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+ 
+ [dependencies]
+-pyo3 = "0.28"
++pyo3 = "0.29"
+ 
+ [profile.release-lto]
+ inherits = "release"
+diff -Naur setuptools_rust-1.12.1-original/examples/hello-world-setuppy/Cargo.toml setuptools_rust-1.12.1/examples/hello-world-setuppy/Cargo.toml
+--- setuptools_rust-1.12.1-original/examples/hello-world-setuppy/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
++++ setuptools_rust-1.12.1/examples/hello-world-setuppy/Cargo.toml	2026-06-20 21:32:29.768158955 +0100
+@@ -4,7 +4,7 @@
+ edition = "2021"
+ 
+ [dependencies]
+-pyo3 = "0.28"
++pyo3 = "0.29"
+ 
+ [lib]
+ # See https://github.com/PyO3/pyo3 for details
+diff -Naur setuptools_rust-1.12.1-original/examples/html-py-ever/Cargo.toml setuptools_rust-1.12.1/examples/html-py-ever/Cargo.toml
+--- setuptools_rust-1.12.1-original/examples/html-py-ever/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
++++ setuptools_rust-1.12.1/examples/html-py-ever/Cargo.toml	2026-06-20 21:32:31.584189049 +0100
+@@ -6,7 +6,7 @@
+ 
+ [dependencies]
+ scraper = "0.25"
+-pyo3 = "0.28"
++pyo3 = "0.29"
+ 
+ [lib]
+ name = "html_py_ever"
+diff -Naur setuptools_rust-1.12.1-original/examples/namespace_package/Cargo.toml setuptools_rust-1.12.1/examples/namespace_package/Cargo.toml
+--- setuptools_rust-1.12.1-original/examples/namespace_package/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
++++ setuptools_rust-1.12.1/examples/namespace_package/Cargo.toml	2026-06-20 21:32:33.724224512 +0100
+@@ -18,4 +18,4 @@
+ # path = "src/lib.rs"
+ 
+ [dependencies]
+-pyo3 = "0.28"
++pyo3 = "0.29"
+diff -Naur setuptools_rust-1.12.1-original/examples/rust_with_cffi/Cargo.toml setuptools_rust-1.12.1/examples/rust_with_cffi/Cargo.toml
+--- setuptools_rust-1.12.1-original/examples/rust_with_cffi/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
++++ setuptools_rust-1.12.1/examples/rust_with_cffi/Cargo.toml	2026-06-20 21:32:35.630256099 +0100
+@@ -5,7 +5,7 @@
+ edition = "2021"
+ 
+ [dependencies]
+-pyo3 = "0.28"
++pyo3 = "0.29"
+ 
+ [lib]
+ name = "rust_with_cffi"

diff --git a/setuptools_rust-1.12.1-allow-PyO3-0.27.patch b/setuptools_rust-1.12.1-allow-PyO3-0.27.patch
deleted file mode 100644
index 499db8d..0000000
--- a/setuptools_rust-1.12.1-allow-PyO3-0.27.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-diff -Naur setuptools_rust-1.12.1-original/examples/hello-world/Cargo.toml setuptools_rust-1.12.1/examples/hello-world/Cargo.toml
---- setuptools_rust-1.12.1-original/examples/hello-world/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
-+++ setuptools_rust-1.12.1/examples/hello-world/Cargo.toml	2026-03-26 10:33:29.680270154 +0000
-@@ -6,7 +6,7 @@
- # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
- 
- [dependencies]
--pyo3 = "0.28"
-+pyo3 = ">=0.27, <0.29"
- 
- [profile.release-lto]
- inherits = "release"
-diff -Naur setuptools_rust-1.12.1-original/examples/hello-world-setuppy/Cargo.toml setuptools_rust-1.12.1/examples/hello-world-setuppy/Cargo.toml
---- setuptools_rust-1.12.1-original/examples/hello-world-setuppy/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
-+++ setuptools_rust-1.12.1/examples/hello-world-setuppy/Cargo.toml	2026-03-26 10:33:29.680603019 +0000
-@@ -4,7 +4,7 @@
- edition = "2021"
- 
- [dependencies]
--pyo3 = "0.28"
-+pyo3 = ">=0.27, <0.29"
- 
- [lib]
- # See https://github.com/PyO3/pyo3 for details
-diff -Naur setuptools_rust-1.12.1-original/examples/html-py-ever/Cargo.toml setuptools_rust-1.12.1/examples/html-py-ever/Cargo.toml
---- setuptools_rust-1.12.1-original/examples/html-py-ever/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
-+++ setuptools_rust-1.12.1/examples/html-py-ever/Cargo.toml	2026-03-26 10:33:29.680721311 +0000
-@@ -6,7 +6,7 @@
- 
- [dependencies]
- scraper = "0.25"
--pyo3 = "0.28"
-+pyo3 = ">=0.27, <0.29"
- 
- [lib]
- name = "html_py_ever"
-diff -Naur setuptools_rust-1.12.1-original/examples/namespace_package/Cargo.toml setuptools_rust-1.12.1/examples/namespace_package/Cargo.toml
---- setuptools_rust-1.12.1-original/examples/namespace_package/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
-+++ setuptools_rust-1.12.1/examples/namespace_package/Cargo.toml	2026-03-26 10:33:29.680863503 +0000
-@@ -18,4 +18,4 @@
- # path = "src/lib.rs"
- 
- [dependencies]
--pyo3 = "0.28"
-+pyo3 = ">=0.27, <0.29"
-diff -Naur setuptools_rust-1.12.1-original/examples/rust_with_cffi/Cargo.toml setuptools_rust-1.12.1/examples/rust_with_cffi/Cargo.toml
---- setuptools_rust-1.12.1-original/examples/rust_with_cffi/Cargo.toml	2026-03-26 08:01:49.000000000 +0000
-+++ setuptools_rust-1.12.1/examples/rust_with_cffi/Cargo.toml	2026-03-26 10:33:29.680994914 +0000
-@@ -5,7 +5,7 @@
- edition = "2021"
- 
- [dependencies]
--pyo3 = "0.28"
-+pyo3 = ">=0.27, <0.29"
- 
- [lib]
- name = "rust_with_cffi"

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

only message in thread, other threads:[~2026-06-29 12:50 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:50 [rpms/python-setuptools-rust] rawhide: Update examples to use 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