Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-07 Thread Julian Gilbey
On Tue, Feb 08, 2022 at 12:26:01AM +, Stefano Rivera wrote: > Hi Julian (2022.02.07_06:26:38_+) > > I'm a little confused by this. Have a look at > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005039 against > > python3-iniconfig. It has a very straightforward debian/rules, using

Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-07 Thread Stefano Rivera
Hi Julian (2022.02.07_06:26:38_+) > I'm a little confused by this. Have a look at > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1005039 against > python3-iniconfig. It has a very straightforward debian/rules, using > pybuild, and its setup.py script has "use_scm_version=True", but it >

Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-06 Thread Julian Gilbey
On Sun, Feb 06, 2022 at 04:46:53PM +, Stefano Rivera wrote: > Hi Julian (2022.02.06_12:19:54_+) > > In the couple of cases I've looked at so far, it is due to the > > upstream version using use_scm_version in setup.py. This works fine > > for a version that is in a Git repository, but it

Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-06 Thread Sandro Tosi
> Or export SETUPTOOLS_SCM_PRETEND_VERSION. > https://github.com/pypa/setuptools_scm#environment-variables > > pybuild does this for you. i dont remember the exact details, but sometimes that doesnt work: even just building the source package (which runs dh clean, which invokes setup.py clean)

Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-06 Thread Stefano Rivera
Hi Julian (2022.02.06_12:19:54_+) > In the couple of cases I've looked at so far, it is due to the > upstream version using use_scm_version in setup.py. This works fine > for a version that is in a Git repository, but it doesn't work for > Debian packages, as the Git version lookup fails. So

Re: Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-06 Thread Julian Gilbey
On Sat, Feb 05, 2022 at 04:42:57PM -0500, Sandro Tosi wrote: > > The test for this bug (and it should probably be recorded as an error, > > not just a warning, as no Python package should have a version number > > of 0.0.0) > > what exactly is the problem that would make it an 'error'? When a

Bug#1005043: lintian: check that Python version numbers are not 0.0.0

2022-02-05 Thread Julian Gilbey
Package: lintian Version: 2.111.0 Severity: wishlist X-Debbugs-Cc: debian-python@lists.debian.org I just ran into several Python packages that install modules with version number 0.0.0 because of some issue with their setup.py scripts. I just did the following on my testing system: lz4cat