public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: Update for current Python packaging guidelines.
@ 2026-08-01 11:43 Thomas Moschny
  0 siblings, 0 replies; only message in thread
From: Thomas Moschny @ 2026-08-01 11:43 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-01 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 11:43 [rpms/python-py] pr7: Update for current Python packaging guidelines Thomas Moschny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox