public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pkginfo] epel10.3: Port tests to PEP 639 (Resolves: rhbz#2359507)
@ 2026-09-15 9:47 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 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 : de45f77b4e1bc95d5a1bc750cb233744c77cba2b
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-09-15T10:33:25+01:00
Stats : +2/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pkginfo/c/de45f77b4e1bc95d5a1bc750cb233744c77cba2b?branch=epel10.3
Log:
Port tests to PEP 639 (Resolves: rhbz#2359507)
The test in question checks the metadata of Fedora-installed
python3-wheel.
Fedora already produces this package with PEP 639, and metadata 2.4.
Upstream, that project's metadata is still 2.3, hence only a downstream
patch for now.
---
diff --git a/python-pkginfo.spec b/python-pkginfo.spec
index 5448add..d4285b0 100644
--- a/python-pkginfo.spec
+++ b/python-pkginfo.spec
@@ -46,6 +46,8 @@ This package contains the documentation.
# don't ship internal test subpackage
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
^ 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: Port tests to PEP 639 (Resolves: rhbz#2359507) Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox