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-ffi0.20] epel9: compat package for obsolete version
Date: Sun, 18 Oct 2026 22:25:56 GMT [thread overview]
Message-ID: <179236235659.1.15663250280402680376.rpms-rust-pyo3-ffi0.20-e5bfdbd4441b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-pyo3-ffi0.20
Branch : epel9
Commit : e5bfdbd4441b777efb63a49c5d1d8095e2f1cbb4
Author : Fabio Valentini <decathorpe@gmail.com>
Date : 2025-01-30T23:03:42+01:00
Stats : +3/-400 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/rust-pyo3-ffi0.20/c/e5bfdbd4441b777efb63a49c5d1d8095e2f1cbb4?branch=epel9
Log:
compat package for obsolete version
https://fedoraproject.org/wiki/Changes/Retire_PyO3_v0.19,_v0.20,_and_v0.21
---
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 3225f45..0000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/pyo3-ffi-0.20.3.crate
diff --git a/0001-backport-support-for-Python-3.13.patch b/0001-backport-support-for-Python-3.13.patch
deleted file mode 100644
index bb597de..0000000
--- a/0001-backport-support-for-Python-3.13.patch
+++ /dev/null
@@ -1,171 +0,0 @@
-From ce6fd4af7444e80cbb922f9c7d616ae5a83e60cf Mon Sep 17 00:00:00 2001
-From: Fabio Valentini <decathorpe@gmail.com>
-Date: Wed, 26 Jun 2024 19:58:38 +0200
-Subject: [PATCH] backport support for Python 3.13
-
----
- src/cpython/longobject.rs | 74 +++++++++++++++++++++++++++++++++++++++
- src/cpython/mod.rs | 2 ++
- src/longobject.rs | 26 --------------
- 3 files changed, 76 insertions(+), 26 deletions(-)
- create mode 100644 src/cpython/longobject.rs
-
-diff --git a/src/cpython/longobject.rs b/src/cpython/longobject.rs
-new file mode 100644
-index 0000000..1736e66
---- /dev/null
-+++ b/src/cpython/longobject.rs
-@@ -0,0 +1,74 @@
-+use crate::longobject::*;
-+use crate::object::*;
-+#[cfg(Py_3_13)]
-+use libc::ssize_t;
-+use libc::size_t;
-+#[cfg(Py_3_13)]
-+use std::os::raw::c_void;
-+use std::os::raw::{c_int, c_uchar};
-+
-+#[cfg(Py_3_13)]
-+extern "C" {
-+ pub fn PyLong_FromUnicodeObject(u: *mut PyObject, base: c_int) -> *mut PyObject;
-+}
-+
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_DEFAULTS: c_int = -1;
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_BIG_ENDIAN: c_int = 0;
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_LITTLE_ENDIAN: c_int = 1;
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_NATIVE_ENDIAN: c_int = 3;
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_UNSIGNED_BUFFER: c_int = 4;
-+#[cfg(Py_3_13)]
-+pub const Py_ASNATIVEBYTES_REJECT_NEGATIVE: c_int = 8;
-+
-+extern "C" {
-+ // skipped _PyLong_Sign
-+
-+ #[cfg(Py_3_13)]
-+ pub fn PyLong_AsNativeBytes(
-+ v: *mut PyObject,
-+ buffer: *mut c_void,
-+ n_bytes: ssize_t,
-+ flags: c_int,
-+ ) -> ssize_t;
-+
-+ #[cfg(Py_3_13)]
-+ pub fn PyLong_FromNativeBytes(
-+ buffer: *const c_void,
-+ n_bytes: size_t,
-+ flags: c_int,
-+ ) -> *mut PyObject;
-+
-+ #[cfg(Py_3_13)]
-+ pub fn PyLong_FromUnsignedNativeBytes(
-+ buffer: *const c_void,
-+ n_bytes: size_t,
-+ flags: c_int,
-+ ) -> *mut PyObject;
-+
-+ // skipped PyUnstable_Long_IsCompact
-+ // skipped PyUnstable_Long_CompactValue
-+
-+ #[cfg_attr(PyPy, link_name = "_PyPyLong_FromByteArray")]
-+ pub fn _PyLong_FromByteArray(
-+ bytes: *const c_uchar,
-+ n: size_t,
-+ little_endian: c_int,
-+ is_signed: c_int,
-+ ) -> *mut PyObject;
-+
-+ #[cfg_attr(PyPy, link_name = "_PyPyLong_AsByteArrayO")]
-+ pub fn _PyLong_AsByteArray(
-+ v: *mut PyLongObject,
-+ bytes: *mut c_uchar,
-+ n: size_t,
-+ little_endian: c_int,
-+ is_signed: c_int,
-+ ) -> c_int;
-+
-+ // skipped _PyLong_GCD
-+}
-\ No newline at end of file
-diff --git a/src/cpython/mod.rs b/src/cpython/mod.rs
-index 738ba37..b4923bc 100644
---- a/src/cpython/mod.rs
-+++ b/src/cpython/mod.rs
-@@ -18,6 +18,7 @@ pub(crate) mod import;
- pub(crate) mod initconfig;
- // skipped interpreteridobject.h
- pub(crate) mod listobject;
-+pub(crate) mod longobject;
- #[cfg(all(Py_3_9, not(PyPy)))]
- pub(crate) mod methodobject;
- pub(crate) mod object;
-@@ -53,6 +54,7 @@ pub use self::import::*;
- #[cfg(all(Py_3_8, not(PyPy)))]
- pub use self::initconfig::*;
- pub use self::listobject::*;
-+pub use self::longobject::*;
- #[cfg(all(Py_3_9, not(PyPy)))]
- pub use self::methodobject::*;
- pub use self::object::*;
-diff --git a/src/longobject.rs b/src/longobject.rs
-index 55ea8fa..25fa12d 100644
---- a/src/longobject.rs
-+++ b/src/longobject.rs
-@@ -1,8 +1,6 @@
- use crate::object::*;
- use crate::pyport::Py_ssize_t;
- use libc::size_t;
--#[cfg(not(Py_LIMITED_API))]
--use std::os::raw::c_uchar;
- use std::os::raw::{c_char, c_double, c_int, c_long, c_longlong, c_ulong, c_ulonglong, c_void};
- use std::ptr::addr_of_mut;
-
-@@ -90,34 +88,11 @@ extern "C" {
- arg3: c_int,
- ) -> *mut PyObject;
- }
--// skipped non-limited PyLong_FromUnicodeObject
--// skipped non-limited _PyLong_FromBytes
-
- #[cfg(not(Py_LIMITED_API))]
- extern "C" {
-- // skipped non-limited _PyLong_Sign
--
- #[cfg_attr(PyPy, link_name = "_PyPyLong_NumBits")]
- pub fn _PyLong_NumBits(obj: *mut PyObject) -> size_t;
--
-- // skipped _PyLong_DivmodNear
--
-- #[cfg_attr(PyPy, link_name = "_PyPyLong_FromByteArray")]
-- pub fn _PyLong_FromByteArray(
-- bytes: *const c_uchar,
-- n: size_t,
-- little_endian: c_int,
-- is_signed: c_int,
-- ) -> *mut PyObject;
--
-- #[cfg_attr(PyPy, link_name = "_PyPyLong_AsByteArrayO")]
-- pub fn _PyLong_AsByteArray(
-- v: *mut PyLongObject,
-- bytes: *mut c_uchar,
-- n: size_t,
-- little_endian: c_int,
-- is_signed: c_int,
-- ) -> c_int;
- }
-
- // skipped non-limited _PyLong_Format
-@@ -130,6 +105,5 @@ extern "C" {
- pub fn PyOS_strtol(arg1: *const c_char, arg2: *mut *mut c_char, arg3: c_int) -> c_long;
- }
-
--// skipped non-limited _PyLong_GCD
- // skipped non-limited _PyLong_Rshift
- // skipped non-limited _PyLong_Lshift
---
-2.45.2
-
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 739b254..0000000
--- a/Allow-unsupported-Python-versions-in-RPM-builds.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From af6273b4fbc1c9439a9b1e69761838479ba4bd71 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 286767d..ef666d7 100644
---- a/build.rs
-+++ b/build.rs
-@@ -36,6 +36,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.implementation {
- PythonImplementation::CPython => {
- let versions = SUPPORTED_VERSIONS_CPYTHON;
---
-2.44.0
-
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..a68e9aa
--- /dev/null
+++ b/dead.package
@@ -0,0 +1,3 @@
+compat package for obsolete version
+
+https://fedoraproject.org/wiki/Changes/Retire_PyO3_v0.19,_v0.20,_and_v0.21
diff --git a/pyo3-ffi-fix-metadata.diff b/pyo3-ffi-fix-metadata.diff
deleted file mode 100644
index 0f5a476..0000000
--- a/pyo3-ffi-fix-metadata.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- pyo3-ffi-0.20.3/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ pyo3-ffi-0.20.3/Cargo.toml 2024-04-12T20:54:28.705551+00:00
-@@ -66,7 +66,6 @@
- ]
- default = []
- extension-module = ["pyo3-build-config/extension-module"]
--generate-import-lib = ["pyo3-build-config/python3-dll-a"]
-
- [lints.clippy]
- checked_conversions = "warn"
diff --git a/rust-pyo3-ffi0.20.spec b/rust-pyo3-ffi0.20.spec
deleted file mode 100644
index 6560dc7..0000000
--- a/rust-pyo3-ffi0.20.spec
+++ /dev/null
@@ -1,180 +0,0 @@
-# Generated by rust2rpm 26
-%bcond_without check
-%global debug_package %{nil}
-
-%global crate pyo3-ffi
-
-Name: rust-pyo3-ffi0.20
-Version: 0.20.3
-Release: %autorelease
-Summary: Python-API bindings for the PyO3 ecosystem
-
-License: MIT OR Apache-2.0
-URL: https://crates.io/crates/pyo3-ffi
-Source: %{crates_source}
-# Manually created patch for downstream crate metadata changes
-# * drop MSVC- and MinGW-only features
-Patch: pyo3-ffi-fix-metadata.diff
-
-# Downstream-only patch: always allow unsupported versions of Python.
-# We constantly attempt to integrate alpha and beta releases of Python
-# 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.
-Patch: Allow-unsupported-Python-versions-in-RPM-builds.patch
-
-# backport support for Python 3.13: https://github.com/PyO3/pyo3/pull/4184
-Patch: 0001-backport-support-for-Python-3.13.patch
-
-BuildRequires: cargo-rpm-macros >= 24
-BuildRequires: python3-devel >= 3.7
-
-%global _description %{expand:
-Python-API bindings for the PyO3 ecosystem.}
-
-%description %{_description}
-
-%package devel
-Summary: %{summary}
-BuildArch: noarch
-Requires: python3-devel >= 3.7
-
-%description devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "%{crate}" crate.
-
-%files devel
-%license %{crate_instdir}/LICENSE-APACHE
-%license %{crate_instdir}/LICENSE-MIT
-%doc %{crate_instdir}/README.md
-%{crate_instdir}/
-
-%package -n %{name}+default-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+default-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "default" feature of the "%{crate}" crate.
-
-%files -n %{name}+default-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+abi3-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+abi3-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+abi3-py310-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+abi3-py310-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py310" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-py310-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+abi3-py311-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+abi3-py311-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py311" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-py311-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+abi3-py312-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+abi3-py312-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py312" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-py312-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+abi3-py37-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+abi3-py37-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py37" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-py37-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
-
-%description -n %{name}+abi3-py39-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "abi3-py39" feature of the "%{crate}" crate.
-
-%files -n %{name}+abi3-py39-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+extension-module-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+extension-module-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "extension-module" feature of the "%{crate}" crate.
-
-%files -n %{name}+extension-module-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%prep
-%autosetup -n %{crate}-%{version} -p1
-%cargo_prep
-
-%generate_buildrequires
-%cargo_generate_buildrequires
-
-%build
-%cargo_build
-
-%install
-%cargo_install
-
-%if %{with check}
-%check
-%cargo_test
-%endif
-
-%changelog
-%autochangelog
diff --git a/rust2rpm.toml b/rust2rpm.toml
deleted file mode 100644
index 613939e..0000000
--- a/rust2rpm.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-[requires]
-build = ["python3-devel >= 3.7"]
-lib = ["python3-devel >= 3.7"]
-
diff --git a/sources b/sources
deleted file mode 100644
index 5a177d3..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-SHA512 (pyo3-ffi-0.20.3.crate) = 3d1ced58e243be7cee4a3ca831dc08a1631fcd511c707dd3bada87d7662807dea2d88393d76e56ff19a6d1c2804d93b5b6b7b5efd36b9c275d66fa1bb1bfc384
reply other threads:[~2026-10-18 22:25 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=179236235659.1.15663250280402680376.rpms-rust-pyo3-ffi0.20-e5bfdbd4441b@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