[packages/python3-setuptools_rust] Up to 1.10.2
arekm
arekm at pld-linux.org
Mon Mar 3 11:45:11 CET 2025
commit 91ebad758f38b0d07a1464bf5701dc4bc1ed7ad3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 3 10:43:44 2025 +0100
Up to 1.10.2
python3-setuptools_rust.spec | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
---
diff --git a/python3-setuptools_rust.spec b/python3-setuptools_rust.spec
index e9c127f..6bb4804 100644
--- a/python3-setuptools_rust.spec
+++ b/python3-setuptools_rust.spec
@@ -7,14 +7,16 @@
Summary: Setuptools plugin to build Rust Python extensions
Summary(pl.UTF-8): Wtyczka setuptools do budowania rozszerzeń pythonowych w języku Rust
Name: python3-setuptools_rust
-Version: 0.12.1
-Release: 3
+Version: 1.10.2
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/setuptools-rust/
-Source0: https://pypi.debian.net/setuptools_rust/setuptools-rust-%{version}.tar.gz
-# Source0-md5: 33c3fd3bcde2877483ab782353bee54c
+Source0: https://pypi.debian.net/setuptools_rust/setuptools_rust-%{version}.tar.gz
+# Source0-md5: 755ce9ab3d5e7b9f420992ca891a3965
URL: https://rusthub.com/msabramo/setuptools-rust
+BuildRequires: python3-build
+BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools >= 1:46.1
BuildRequires: python3-setuptools_scm >= 3.4.3
@@ -44,10 +46,17 @@ Kompilownie i dystrybuowanie napisanych w języku Rust rozszerzeń
Pythona tak łatwo, jakby były napisane w C.
%prep
-%setup -q -n setuptools-rust-%{version}
+%setup -q -n setuptools_rust-%{version}
%build
-%py3_build %{?with_tests:test}
+%py3_build_pyproject
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
%if %{with doc}
%{__make} -C docs html
@@ -56,7 +65,7 @@ Pythona tak łatwo, jakby były napisane w C.
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -65,4 +74,4 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc CHANGELOG.md LICENSE README.md
%{py3_sitescriptdir}/setuptools_rust
-%{py3_sitescriptdir}/setuptools_rust-%{version}-py*.egg-info
+%{py3_sitescriptdir}/setuptools_rust-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-setuptools_rust.git/commitdiff/91ebad758f38b0d07a1464bf5701dc4bc1ed7ad3
More information about the pld-cvs-commit
mailing list