Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13928

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

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Julian Gilbey <jdg@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#1005043: lintian: check that Python version numbers are not 0.0.0
Date Sun, 06 Feb 2022 13:30:01 +0100
Message-ID <DNOQ1-1ha-3@gated-at.bofh.it> (permalink)
References <DNAtH-Xe-1@gated-at.bofh.it> <DNB6p-1ay-1@gated-at.bofh.it> <DNAtH-Xe-1@gated-at.bofh.it> <DNB6p-1ay-1@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sun Feb 6 12:21:11 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -6.7
Reply-To Julian Gilbey <jdg@debian.org>, 1005043@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Lintian Maintainers <lintian-maint@debian.org>
X-Debian-Pr-Message followup 1005043
X-Debian-Pr-Package lintian
X-Debian-Pr-Source lintian
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1703745
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 28
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 1005043@bugs.debian.org, Debian Python list <debian-python@lists.debian.org>
X-Original-Date Sun, 6 Feb 2022 12:19:54 +0000
X-Original-Message-ID <Yf+86nLCmE/8MHMN@d-and-j.net>
X-Original-References <164409460483.3521277.16549103784531274307.reportbug@erdos.d-and-j.net> <CAB4XWXxdmzZ23eHU9SO8uRQmGNZauoX0-eJX5wh=7WeW95_+bQ@mail.gmail.com> <164409460483.3521277.16549103784531274307.reportbug@erdos.d-and-j.net> <CAB4XWXxdmzZ23eHU9SO8uRQmGNZauoX0-eJX5wh=7WeW95_+bQ@mail.gmail.com>
Xref csiph.com linux.debian.bugs.dist:1092221 linux.debian.maint.python:13928

Cross-posted to 2 groups.

Show key headers only | View raw


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 package uses pkg_resources to determine the version number of
some package, it is returned the wrong information.  This is certainly
a packaging error: the upstream package, as installed by pip,
announces "this is version 1.2.3" but the Debian package announces
"this is version 0.0.0".

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 this needs to be
patched.

Perhaps a better way would be for dh_python3 to handle this by
"teaching" use_scm_version to look at debian/changelog, as this would
save 30+ packages having to continually update a setup.py patch.

What do you think?

Best wishes,

   Julian

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1005043: lintian: check that Python version numbers are not 0.0.0 Julian Gilbey <jdg@debian.org> - 2022-02-05 22:10 +0100
  Bug#1005043: lintian: check that Python version numbers are not 0.0.0 Julian Gilbey <jdg@debian.org> - 2022-02-06 13:30 +0100
    Bug#1005043: lintian: check that Python version numbers are not 0.0.0 Stefano Rivera <stefanor@debian.org> - 2022-02-06 18:00 +0100
      Bug#1005043: lintian: check that Python version numbers are not 0.0.0 Sandro Tosi <morph@debian.org> - 2022-02-06 21:40 +0100
      Bug#1005043: lintian: check that Python version numbers are not 0.0.0 Julian Gilbey <jdg@debian.org> - 2022-02-07 07:40 +0100
        Re: Bug#1005043: lintian: check that Python version numbers are not  0.0.0 Stefano Rivera <stefanor@debian.org> - 2022-02-08 01:30 +0100
          Re: Bug#1005043: lintian: check that Python version numbers are not  0.0.0 Julian Gilbey <julian@d-and-j.net> - 2022-02-08 08:00 +0100

csiph-web