Control: tags -1 +pending So. I have a much shorter (and better) patch, that I'll upload to DELAYED/5 in few minutes.
See the attached patch, which consists of setting the setup.py version to a PEP-440-compliant Debian-specific version (which I have confirmed to sort bigger than "2020ca"). This fixes the FTBFS. I've also pushed this as an MR on your VCS repository there: https://salsa.debian.org/science-team/pyhst2/-/merge_requests/1 Best, OdyX Le samedi, 28 janvier 2023, 17.21:35 h CET Didier 'OdyX' Raboud a écrit : > Hello there, > > while at St-Cergue's BSP, I took a look at this issue, so here are my > findings. > > * I can confirm it fails to build from source in a main+contrib+non-free > cowbuilder. > > * This FTBFS is the consequence of a new requirement from setuptools; see > this issue to get it better: https://github.com/pypa/setuptools/issues/2497 > . setuptools now imposes PEP-440-style versioning, that is, the version has > to match this format: > > [N!]N(.N)*[{a|b|rc}N][.postN][.devN] > > But pyHST2 uses the version number in some paths (such as /usr/lib/ python3/ > dist-packages/PyHST2_2020c(...) ), so it can't simply be patched to use > "2020.3" (c ~= 3 ?). I can't login to upstream's issues tracker at > https://gitlab.esrf.fr/mirone/pyhst2 but it's clearly something that needs > to be fixed by a new upstream release. > > The attached patch is basically a `sed 's/2020c/2021/g' -i` (also check > aumento_versione="a" which can work, but should also be amended) on > concerned files. It allows to finish building, but the paths have become > /usr/lib/python3/dist-packages/PyHST2_2021(...), which is clearly not > upstream's intent. > > I'll check if it's possible to only patch the version and not all files. > > See you in a bit. > > Cheers, > > OdyX > > Le vendredi, 27 janvier 2023, 15.37:13 h CET Andreas Beckmann a écrit : > > Source: pyhst2 > > Version: 2020c-6 > > Severity: serious > > Tags: ftbfs > > Justification: fails to build from source > > > > Hi, > > > > pyhst2 FTBFS with setuptools 66 that was uploaded today: > > /usr/lib/python3/dist-packages/setuptools/dist.py:548: UserWarning: The > > version specified ('2020ca') is an invalid version, this may not work as > > expected with newer versions of setuptools, pip, and PyPI. Please see PEP > > 440 for more details. warnings.warn( > > running clean > > removing '/build/pyhst2-2020c/.pybuild/cpython3_3.10_pyhst2/build' (and > > everything under it) 'build/bdist.linux-x86_64' does not exist -- can't > > clean it > > 'build/scripts-3.10' does not exist -- can't clean it
Set a Debian-specific PEP-440-compliant version: 2020.3.20230128 This is needed since setuptools 66.0 Bug-Debian: https://bugs.debian.org/1029775 Author: Didier Raboud <o...@debian.org> Origin: vendor --- a/setup.py +++ b/setup.py @@ -88,6 +88,9 @@ global version global aumento_versione aumento_versione="a" +# Debian-specific version to match PEP-440 with setuptools v66.0.0 +pep440_version = "2020.3.20230128" # 3 for c, today's date + global version if DO_LINK==0: @@ -121,7 +124,8 @@ def do_link(): distrib = setup(name="pyhst2_links", license="GPL", - version=version+aumento_versione, + # Debian-specific version to fit PEP-440 + version=pep440_version, description=description, author="Alessandro Mirone", author_email="mir...@esrf.fr", @@ -156,7 +160,8 @@ def do_link_unstable(): distrib = setup(name="pyhst2unstable_links", license="GPL", - version=version+aumento_versione, + # Debian-specific version to fit PEP-440 + version=pep440_version, description=description, author="Alessandro Mirone", author_email="mir...@esrf.fr", @@ -697,7 +702,8 @@ def do_pyhst(): distrib = setup(name="PyHST2_"+version+post_fix, license="GPL", - version=version+aumento_versione, ## aumenta qua versione + # Debian-specific version to fit PEP-440 + version=pep440_version, description=description, author="Alessandro Mirone", author_email="mir...@esrf.fr",
signature.asc
Description: This is a digitally signed message part.