public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Fabio Valentini <decathorpe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-pyo3-ffi] epel9: Update to version 0.30.1; Fixes RHBZ#2544179
Date: Wed, 04 Nov 2026 22:01:31 GMT	[thread overview]
Message-ID: <179382969131.1.9568920321170022705.rpms-rust-pyo3-ffi-bbe3e0873bd8@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-pyo3-ffi
Branch : epel9
Commit : bbe3e0873bd8b3afeda5217c90057b487dfcacdf
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2026-11-04T15:29:54+01:00
Stats  : +38/-49 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-pyo3-ffi/c/bbe3e0873bd8b3afeda5217c90057b487dfcacdf?branch=epel9

Log:
Update to version 0.30.1; Fixes RHBZ#2544179

---
diff --git a/.gitignore b/.gitignore
index 2ab6d99..e330d3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,4 @@
 /pyo3-ffi-0.29.1.crate
 /pyo3-ffi-0.29.2.crate
 /pyo3-ffi-0.29.3.crate
+/pyo3-ffi-0.30.1.crate

diff --git a/0001-Allow-unsupported-Python-versions-in-RPM-builds.patch b/0001-Allow-unsupported-Python-versions-in-RPM-builds.patch
new file mode 100644
index 0000000..73ad85f
--- /dev/null
+++ b/0001-Allow-unsupported-Python-versions-in-RPM-builds.patch
@@ -0,0 +1,33 @@
+From e452a0e9026198161e455d72f3ccba2732656e50 Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Thu, 18 Apr 2024 09:48:04 +0200
+Subject: [PATCH] Allow unsupported Python versions in RPM builds
+
+Downstream-only patch: always allow unsupported versions of Python.
+In Fedora, we constantly attempt to integrate alpha and beta releases of Python
+and rebuild all dependent packages in Copr. We need to be able to build the
+packages that use pyo3-ffi without patching each and every one of them,
+hence we explicitly allow to skip version check when building RPMs.
+---
+ build.rs | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/build.rs b/build.rs
+index 2dd3143..bb4c983 100644
+--- a/build.rs
++++ b/build.rs
+@@ -60,6 +60,11 @@ fn ensure_python_version(interpreter_config: &InterpreterConfig) -> Result<()> {
+         return Ok(());
+     }
+ 
++    // Skip version check when building RPMs - we want to build them with unsupported Python versions too
++    if std::env::var("RPM_BUILD_ROOT").as_deref().is_ok() {
++        return Ok(());
++    }
++
+     let implementation = interpreter_config.target_abi().implementation();
+ 
+     let supported_versions = match implementation {
+-- 
+2.56.0
+

diff --git a/Allow-unsupported-Python-versions-in-RPM-builds.patch b/Allow-unsupported-Python-versions-in-RPM-builds.patch
deleted file mode 100644
index 7e2e9c0..0000000
--- a/Allow-unsupported-Python-versions-in-RPM-builds.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 4d514c8ad63974137fb401245b4875b7ce85593f Mon Sep 17 00:00:00 2001
-From: Karolina Surma <ksurma@redhat.com>
-Date: Thu, 18 Apr 2024 09:48:04 +0200
-Subject: [PATCH] Allow unsupported Python versions in RPM builds
-
-Downstream-only patch: always allow unsupported versions of Python.
-In Fedora, we constantly attempt to integrate alpha and beta releases of Python
-and rebuild all dependent packages in Copr. We need to be able to build the
-packages that use pyo3-ffi without patching each and every one of them,
-hence we explicitly allow to skip version check when building RPMs.
----
- build.rs | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/build.rs b/build.rs
-index c978ad0..289f20c 100644
---- a/build.rs
-+++ b/build.rs
-@@ -55,6 +55,11 @@ fn ensure_python_version(interpreter_config: &InterpreterConfig) -> Result<()> {
-         return Ok(());
-     }
- 
-+    // Skip version check when building RPMs - we want to build them with unsupported Python versions too
-+    if std::env::var("RPM_BUILD_ROOT").as_deref().is_ok() {
-+        return Ok(());
-+    }
-+
-     match interpreter_config.target_abi().implementation() {
-         PythonImplementation::CPython => {
-             let versions = SUPPORTED_VERSIONS_CPYTHON;
--- 
-2.54.0
-

diff --git a/rust-pyo3-ffi.spec b/rust-pyo3-ffi.spec
index d01ff6f..9ea6fd7 100644
--- a/rust-pyo3-ffi.spec
+++ b/rust-pyo3-ffi.spec
@@ -5,7 +5,7 @@
 %global crate pyo3-ffi
 
 Name:           rust-pyo3-ffi
-Version:        0.29.3
+Version:        0.30.1
 Release:        %autorelease
 Summary:        Python-API bindings for the PyO3 ecosystem
 
@@ -17,7 +17,7 @@ Source:         %{crates_source}
 #   and need to rebuild all dependent packages in Copr, also those that
 #   use pyo3-ffi without patching each and every one of them, hence we
 #   explicitly allow to skip version check when building RPMs.
-Patch2:         Allow-unsupported-Python-versions-in-RPM-builds.patch
+Patch2:         0001-Allow-unsupported-Python-versions-in-RPM-builds.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 BuildRequires:  python3-devel >= 3.7
@@ -139,18 +139,6 @@ use the "abi3-py315" feature of the "%{crate}" crate.
 %files       -n %{name}+abi3-py315-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+abi3-py38-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+abi3-py38-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py38" feature of the "%{crate}" crate.
-
-%files       -n %{name}+abi3-py38-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+abi3-py39-devel
 Summary:        %{summary}
 BuildArch:      noarch

diff --git a/rust2rpm.toml b/rust2rpm.toml
index dc8d333..8e5e3a8 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,6 +1,6 @@
 [[package.extra-patches]]
 number = 2
-file = "Allow-unsupported-Python-versions-in-RPM-builds.patch"
+file = "0001-Allow-unsupported-Python-versions-in-RPM-builds.patch"
 comments = ["""\
 Downstream-only patch: always allow unsupported versions of Python.
 We constantly attempt to integrate alpha and beta releases of Python

diff --git a/sources b/sources
index abce5a8..0733de0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pyo3-ffi-0.29.3.crate) = 05ce591fa67a9768d6ec70bfa181007d9b7591b2a607edbe4eec26b243d52e1e75098057a7a533746ca80e70893eb0b16c0f4ccb8911776ba13057ba42dfaa92
+SHA512 (pyo3-ffi-0.30.1.crate) = 32945d4b6f08723ae1129810ac71e12f5dc9c5de3710cadedb91bba17cbcf21acbf269598241117b45dc36141d28e6d1a58f1c07957b8664de62e991f30c82e9

                 reply	other threads:[~2026-11-04 22:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179382969131.1.9568920321170022705.rpms-rust-pyo3-ffi-bbe3e0873bd8@fedoraproject.org \
    --to=decathorpe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox