[packages/python3-hatchling] Migrate to new macros

arekm arekm at pld-linux.org
Sat Feb 8 15:02:12 CET 2025


commit 7dfe2d2118dee97b2b950595424af67df1d29123
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 8 14:18:25 2025 +0100

    Migrate to new macros

 python3-hatchling.spec | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/python3-hatchling.spec b/python3-hatchling.spec
index 7288815..f244673 100644
--- a/python3-hatchling.spec
+++ b/python3-hatchling.spec
@@ -21,7 +21,7 @@ BuildRequires:	python3-trove_classifiers
 #BuildRequires:	python3-
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
 Requires:	python3-modules >= 1:3.2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,7 +33,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %setup -q -n %{module}-%{version}
 
 %build
-%{__python3} -m build --wheel --no-isolation --outdir build-3
+%py3_build_pyproject
 
 %if %{with tests}
 # use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
@@ -45,7 +45,8 @@ PYTEST_PLUGINS= \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl
+%py3_install_pyproject
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hatchling.git/commitdiff/7dfe2d2118dee97b2b950595424af67df1d29123



More information about the pld-cvs-commit mailing list