public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pkginfo] epel10.3: Convert to pyproject-rpm-macros
@ 2026-09-15 9:47
0 siblings, 0 replies; only message in thread
From: @ 2026-09-15 9:47 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pkginfo
Branch : epel10.3
Commit : 4225a7a5e761a30b2c0b0c8560ddd674f7590951
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-09-15T10:34:00+01:00
Stats : +9/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pkginfo/c/4225a7a5e761a30b2c0b0c8560ddd674f7590951?branch=epel10.3
Log:
Convert to pyproject-rpm-macros
This is a fully automated conversion by https://pypi.org/project/pyprojectize/1a5/
---
diff --git a/python-pkginfo.spec b/python-pkginfo.spec
index d4285b0..843d267 100644
--- a/python-pkginfo.spec
+++ b/python-pkginfo.spec
@@ -18,7 +18,6 @@ Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(sphinx)
BuildRequires: python3dist(wheel)
@@ -29,7 +28,6 @@ BuildRequires: python3dist(wheel)
%package -n python3-%{pypi_name}
Summary: Query metadata from sdists / bdists / installed packages
Requires: python3-setuptools
-%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %{common_description}
@@ -49,12 +47,13 @@ sed -i "s/, 'pkginfo.tests'//g" setup.py
# work around the wheel metadata version (Fedora already produces 2.4 while upstream it's still 2.3)
sed -i "s/assert(installed.metadata_version == '2.3')/assert(installed.metadata_version == '2.4')/" pkginfo/tests/test_installed.py
-# Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
+
+%generate_buildrequires
+%pyproject_buildrequires
%build
-%py3_build
+%pyproject_wheel
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
@@ -64,21 +63,21 @@ rm -rf html/.{doctrees,buildinfo}
%install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l %{pypi_name}
%check
+%pyproject_check_import
+
%pytest
-%files -n python3-%{pypi_name}
-%license LICENSE.txt
+%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.txt CHANGES.txt
%{_bindir}/pkginfo
-%{python3_sitelib}/%{pypi_name}/
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%files -n python-%{pypi_name}-doc
%license LICENSE.txt
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-15 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 9:47 [rpms/python-pkginfo] epel10.3: Convert to pyproject-rpm-macros
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox