public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-pkginfo] epel10.3: Convert to pyproject-rpm-macros
Date: Tue, 15 Sep 2026 09:47:53 GMT	[thread overview]
Message-ID: <178946567373.1.4559567805233037256.rpms-python-pkginfo-4225a7a5e761@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-09-15  9:47 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=178946567373.1.4559567805233037256.rpms-python-pkginfo-4225a7a5e761@fedoraproject.org \
    --to=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