python-pkginfo: FTBFS against python 3.15rc1
Maximiliano Curia <[email protected]>
| Newsgroups | gmane.linux.debian.devel.python |
|---|---|
| Message-ID | <[email protected]> |
Package: src:python-pkginfo Version: 1.12.1.2-2 User: [email protected] Usertags: python3.15 Tags: patch, ftbfs, forky, sid Hi! While rebuilding the python related packages against the Python 3.15rc1 version we found that python-pkginfo fails to build from source [1]. The issue seems to be two fold, pytest-cov's /usr/lib/python3/dist-packages/pytest_cov-7.1.0.dist-info/METADATA declares: Requires-Dist: coverage[toml]>=7.10.6 which is not available in Debian (I'll report another bug about this), and the patch included in python-pkginfo still let's tox to try to fulfill the dependencies (which then tries to install a newer version of coverage. I've updated the patch to remove the dependencies, so pytest uses the modules in the system. I applied the upstream fix in the sandbox [2] to be able to build the packages that depend on python-pkginfo, please consider applying the patch to support the upcoming 3.15 version. Happy hacking, [1]: https://debusine.debian.net/debian/r-python-python3.15/work-request/1116139/ [2]: https://debusine.debian.net/debian/r-python-python3.15/ -- "Can you imagine what I would do if I could do all I can?" -- Sun Tzu Saludos /\/\ /\ >< `/
tox-pytest.patch
(text/x-diff, 800 B)
From: Stefano Rivera <[email protected]> Date: Thu, 11 Jan 2024 16:20:21 -0400 Subject: Run pytest as a python module In the Debian package build time, pytest is installed outside the virtualenv, so tox needs it to be added to the allowlist, if we want to execute the binary directly. Forwarded: not-needed --- tox.ini | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) Index: python-pkginfo/tox.ini =================================================================== --- python-pkginfo.orig/tox.ini +++ python-pkginfo/tox.ini @@ -13,11 +13,7 @@ depends = [testenv] usedevelop = true commands = - pytest --cov=pkginfo --cov-append --cov-report= -deps = - wheel - pytest - pytest-cov + python -m pytest --cov=pkginfo --cov-append --cov-report= depends = clean