public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Thomas Moschny <thm@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-py] pr7: Update for current Python packaging guidelines.
Date: Sat, 01 Aug 2026 11:43:53 GMT	[thread overview]
Message-ID: <178558463308.1.9717644885068918808.rpms-python-py-29acd0f908cc@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-py
Branch : pr7
Commit : 29acd0f908ccb8da1b1a6052610e89b77f0a2f1e
Author : Thomas Moschny <thm@fedoraproject.org>
Date   : 2025-07-13T18:16:39+02:00
Stats  : +16/-11 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-py/c/29acd0f908ccb8da1b1a6052610e89b77f0a2f1e?branch=pr7

Log:
Update for current Python packaging guidelines.

---
diff --git a/python-py.spec b/python-py.spec
index 4e6cfd8..2084637 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -2,7 +2,7 @@
 
 Name:           python-%{srcname}
 Version:        1.11.0
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
 # Automatically converted from old format: MIT and Public Domain - review is highly recommended.
 License:        LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
@@ -10,6 +10,7 @@ License:        LicenseRef-Callaway-MIT AND LicenseRef-Callaway-Public-Domain
 URL:            http://py.readthedocs.io/
 Source:         %{pypi_source}
 BuildArch:      noarch
+BuildRequires:  python3-devel
 
 %description
 The py lib is a Python development support library featuring the
@@ -24,11 +25,7 @@ following tools and modules:
 
 %package -n python3-%{srcname}
 Summary:        Library with cross-python path, ini-parsing, io, code, log facilities
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-setuptools_scm
 Requires:       python3-setuptools
-%{?python_provide:%python_provide python3-%{srcname}}
 Provides:       bundled(python3-apipkg) = 2.0
 Provides:       bundled(python3-iniconfig) = 1.1.1
 Obsoletes:      platform-python-%{srcname} < %{version}-%{release}
@@ -54,31 +51,39 @@ find . \
    -exec chmod u=rw,go=r {} \;
 
 
+%generate_buildrequires
+%pyproject_buildrequires
+
+
 %build
-%py3_build
+%pyproject_wheel
 
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l %{srcname}
 
 # Remove bundled dist/egg-info directories, they shouldn't be shipped for
 # bundled modules and in some cases they could confuse automatic generators
 # that read the dist/egg-info data.
 rm -rf %{buildroot}%{python3_sitelib}/py/_vendored_packages/*.{dist,egg}-info
+sed -i -r -e '/\/py\/_vendored_packages\/.*(dist|egg)-info/d' %{pyproject_files}
 
 
 %check
+%pyproject_check_import
+
 %py3_check_import %{srcname}
 
-%files -n python3-%{srcname}
+%files -n python3-%{srcname} -f %{pyproject_files}
 %doc CHANGELOG.rst
 %doc README.rst
-%license LICENSE
-%{python3_sitelib}/py-*.egg-info/
-%{python3_sitelib}/py/
 
 
 %changelog
+* Sun Jul 13 2025 Thomas Moschny <thomas.moschny@gmx.de> - 1.11.0-16
+- Update for current Python packaging guidelines.
+
 * Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1.11.0-15
 - Rebuilt for Python 3.14
 

                 reply	other threads:[~2026-08-01 11:43 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=178558463308.1.9717644885068918808.rpms-python-py-29acd0f908cc@fedoraproject.org \
    --to=thm@fedoraproject.org \
    --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