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


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

Re: Reaching team consensus on usage of py3versions -r and X-Python3-Version in Lintian

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Thomas Goirand <zigo@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Reaching team consensus on usage of py3versions -r and X-Python3-Version in Lintian
Date Tue, 18 Jan 2022 15:40:02 +0100
Message-ID <DGXOq-8jZ-9@gated-at.bofh.it> (permalink)
References <DGEiK-3zd-9@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Tue Jan 18 14:37:32 2022
Old-Return-Path <zigo@debian.org>
X-Amavis-Spam-Status No, score=-7.001 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
MIME-Version 1.0
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language en-US
Organization Debian
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19705
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/720b7ee0-6928-d095-c505-667c3bf20cd7@debian.org
Approved robomod@news.nic.it
Lines 63
Sender robomod@news.nic.it
X-Original-Date Tue, 18 Jan 2022 15:37:13 +0100
X-Original-Message-ID <720b7ee0-6928-d095-c505-667c3bf20cd7@debian.org>
X-Original-References <c37e2c8b-3b1a-17fc-79f1-25cef88d2cdf@debian.org>
Xref csiph.com linux.debian.maint.python:13892

Show key headers only | View raw


On 1/17/22 18:47, Louis-Philippe Véronneau wrote:
> Hey folks,
> 
> I'm following up on bug #1001677 [1] on the DPT's list to try to reach
> consensus, as I think the Lintian tags that were created to fix this bug
> are not recommending the proper thing.
> 
> As a TL;DR for those of you who don't want to read the whole BTS thread,
> jdg saw that a bunch of packages were using `py3versions -r` in
> autopkgtests, and this fails when there's no X-Python3-Version variable
> in d/control.
> 
> The fix that Lintian now proposes for packages that use `py3versions -r`
> in autopkgtests is to set X-Python3-Version.
> 
> I think the proper fix would be to ask people to move away from
> `py3versions -r` if there is no X-Python3-Version, and use`py3versions
> -s` instead.
> 
> As such, I think we should ask the Lintian maintainers to:
> 
> 1. Change the desc for tag declare-requested-python-versions-for-test to
> 
> The specified test attempts to query the Python versions
> <em>requested</em> by your sources with the command <code>py3versions
> --requested</code> but your sources do not actually declare those
> versions with the field <code>X-Python3-Version</code>.
> .
> Please query all <em>supported</em> Python versions with the command
> <code>py3versions --supported</code> in your test instead.
> 
> 2. Change the desc for tag query-requested-python-versions-in-test to
> 
> The specified test queries all <em>supported</em> Python versions with
> the command <code>py3versions --supported</code> but your sources
> request a specific set of versions via the field
> <code>X-Python3-Version</code>.
> .
> Please delete the field <code>X-Python3-Version</code>, as it is not needed.
> 
> 
> These changes would push maintainers to use `py3versions -s`, but
> wouldn't ask people using `py3versions -r` and X-Python3-Version to make
> any changes.
> 
> AFAIU, the only valid use of X-Python3-Version would be a package that
> fails to build on an older but currently supported version of Python
> (let's say 3.9) but builds on the newer version (say 3.10). I think such
> use cases are pretty rare though.
> 
> Cheers,
> 
> [1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001677
> 

+1 (very much)

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


Thread

Reaching team consensus on usage of py3versions -r and  X-Python3-Version in Lintian Louis-Philippe Véronneau <pollo@debian.org> - 2022-01-17 18:50 +0100
  Re: Reaching team consensus on usage of py3versions -r and  X-Python3-Version in Lintian Sandro Tosi <morph@debian.org> - 2022-01-17 21:00 +0100
  Re: Reaching team consensus on usage of py3versions -r and  X-Python3-Version in Lintian Neil Williams <codehelp@debian.org> - 2022-01-18 09:20 +0100
    Re: Reaching team consensus on usage of py3versions -r and X-Python3-Version in Lintian Scott Kitterman <debian@kitterman.com> - 2022-01-18 14:10 +0100
  Re: Reaching team consensus on usage of py3versions -r and  X-Python3-Version in Lintian Thomas Goirand <zigo@debian.org> - 2022-01-18 15:40 +0100
    Re: Reaching team consensus on usage of py3versions -r and  X-Python3-Version in Lintian Julian Gilbey <jdg@debian.org> - 2022-01-19 20:30 +0100

csiph-web