Debian Bug report logs - #1028603
dh-python: Deps guarded by (python3 << 3.X) break python-3.(X-1) use

version graph

Package: dh-python; Maintainer for dh-python is Piotr Ożarowski <piotr@debian.org>; Source for dh-python is src:dh-python (PTS, buildd, popcon).

Reported by: Simon Chopin <schopin@ubuntu.com>

Date: Fri, 13 Jan 2023 14:06:02 UTC

Severity: normal

Found in version dh-python/5.20221001

Fixed in version dh-python/6.20230813

Done: Stefano Rivera <stefanor@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, schopin@ubuntu.com, Piotr Ożarowski <piotr@debian.org>:
Bug#1028603; Package dh-python. (Fri, 13 Jan 2023 14:06:04 GMT) (full text, mbox, link).


Acknowledgement sent to Simon Chopin <schopin@ubuntu.com>:
New Bug report received and forwarded. Copy sent to schopin@ubuntu.com, Piotr Ożarowski <piotr@debian.org>. (Fri, 13 Jan 2023 14:06:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Simon Chopin <schopin@ubuntu.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dh-python: Deps guarded by (python3 << 3.X) break python-3.(X-1) use
Date: Fri, 13 Jan 2023 15:02:11 +0100
Package: dh-python
Version: 5.20221001
Severity: normal
X-Debbugs-Cc: schopin@ubuntu.com

For instance, pylint has "tomli>=1.1.0;python_version<'3.11'" in its
pyproject.toml, which is translated as "python3-tomli (>= 1.1.0) |
python3 (>= 3.11)".

This means that if we have python == 3.11 but still have python3.10 in
the archive, any code that iterates over all supported archive risks
failing simply due to the tomli module missing.

This is currently happening in the distro-info autopkgtests for the
python3-defaults migration from unstable to testing (and also in
Ubuntu). I'll probably be adding tomli as a test dependency in Ubuntu as
a stopgap, but I figured someone might think of a better long-term
solution to the issue.

-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic-updates
  APT policy: (500, 'kinetic-updates'), (500, 'kinetic-security'), (500, 'kinetic'), (400, 'kinetic-proposed'), (100, 'kinetic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-29-generic (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii  python3            3.10.6-1
ii  python3-distutils  3.10.7-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii  dpkg-dev           1.21.9ubuntu1
pn  flit               <none>
ii  libdpkg-perl       1.21.9ubuntu1
pn  python3-build      <none>
pn  python3-installer  <none>
ii  python3-tomli      2.0.1-1

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Piotr Ożarowski <piotr@debian.org>:
Bug#1028603; Package dh-python. (Mon, 30 Jan 2023 16:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Stefano Rivera <stefanor@debian.org>:
Extra info received and forwarded to list. Copy sent to Piotr Ożarowski <piotr@debian.org>. (Mon, 30 Jan 2023 16:09:07 GMT) (full text, mbox, link).


Message #10 received at 1028603@bugs.debian.org (full text, mbox, reply):

From: Stefano Rivera <stefanor@debian.org>
To: Simon Chopin <schopin@ubuntu.com>, 1028603@bugs.debian.org
Subject: Re: Bug#1028603: dh-python: Deps guarded by (python3 << 3.X) break python-3.(X-1) use
Date: Mon, 30 Jan 2023 12:06:10 -0400
Hi Simon (2023.01.13_10:02:11_-0400)
> For instance, pylint has "tomli>=1.1.0;python_version<'3.11'" in its
> pyproject.toml, which is translated as "python3-tomli (>= 1.1.0) |
> python3 (>= 3.11)".
> 
> This means that if we have python == 3.11 but still have python3.10 in
> the archive, any code that iterates over all supported archive risks
> failing simply due to the tomli module missing.

Yes, I was aware of this risk when I implemented it, but it was the best
I could do with the knobs available.

python3-defaults now provides virtual packages that we can use to more
accurately model supported releases here:
https://salsa.debian.org/cpython-team/python3-defaults/-/merge_requests/13
It should land in bookworm. So trixie should be able to make full use of
them.

For now, you should explicitly add extra dependencies, when necessary,
and remove them later.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Message sent on to Simon Chopin <schopin@ubuntu.com>:
Bug#1028603. (Sat, 12 Aug 2023 09:18:04 GMT) (full text, mbox, link).


Message #13 received at 1028603-submitter@bugs.debian.org (full text, mbox, reply):

From: Stefano Rivera <stefanor@debian.org>
To: 1028603-submitter@bugs.debian.org
Subject: Bug#1028603 marked as pending in dh-python
Date: Sat, 12 Aug 2023 09:16:21 +0000
Control: tag -1 pending

Hello,

Bug #1028603 in dh-python reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/tools/dh-python/-/commit/064c78741d3f668c2b4d8416c46387c79428eb08

------------------------------------------------------------------------
Generate dependencies on using python3-supported-min and python3-supported-max.  Allowing dependencies to work correctly on all supported python 3 versions.  (Closes: #1028603)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1028603



Added tag(s) pending. Request was from Stefano Rivera <stefanor@debian.org> to 1028603-submitter@bugs.debian.org. (Sat, 12 Aug 2023 09:18:04 GMT) (full text, mbox, link).


Reply sent to Stefano Rivera <stefanor@debian.org>:
You have taken responsibility. (Sat, 12 Aug 2023 23:39:03 GMT) (full text, mbox, link).


Notification sent to Simon Chopin <schopin@ubuntu.com>:
Bug acknowledged by developer. (Sat, 12 Aug 2023 23:39:03 GMT) (full text, mbox, link).


Message #20 received at 1028603-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1028603-close@bugs.debian.org
Subject: Bug#1028603: fixed in dh-python 6.20230813
Date: Sat, 12 Aug 2023 23:34:00 +0000
Source: dh-python
Source-Version: 6.20230813
Done: Stefano Rivera <stefanor@debian.org>

We believe that the bug you reported is fixed in the latest version of
dh-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1028603@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated dh-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 13 Aug 2023 00:58:58 +0200
Source: dh-python
Architecture: source
Version: 6.20230813
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <piotr@debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1028603 1043301
Changes:
 dh-python (6.20230813) unstable; urgency=medium
 .
   * When we build a wheel for tox, with the distutils plugin, make sure
     our .pydistutils.cfg isn't present, so we build it in the standard layout.
   * Remove RECORD files from dist-info, these are incompatible with
     multi-arch.
   * Support for backporting the pyproject plugin to Python < 3.11. Thanks
     Stuart Prescott. (Closes: #1043301)
   * Use values for _PYTHON_HOST_PLATFORM that are closer to Python's defaults.
   * tox: Pass -x testenv.passenv+=_PYTHON_HOST_PLATFORM, so that pip will
     accept the _PYTHON_HOST_PLATFORM that the test wheel was built with.
   * Generate dependencies on using python3-supported-min and
     python3-supported-max.  Allowing dependencies to work correctly on all
     supported python 3 versions.  (Closes: #1028603)
   * pybuild-auto-pkgtest: Run tox tests against the installed package.
Checksums-Sha1:
 39954dccd91d13acf327280bbf9aa264b03a49d5 1644 dh-python_6.20230813.dsc
 ded2855e8563a09bbfa25c05b4ce96b70da1f29a 120008 dh-python_6.20230813.tar.xz
 609926729a2548e4e10f467d8834b8e7519ce941 6665 dh-python_6.20230813_source.buildinfo
Checksums-Sha256:
 089410f029671aef79f0ef45609830d02179f6bd83aba61f1be6642cd5bd25ea 1644 dh-python_6.20230813.dsc
 b3210919f5cb655ab154fc2f9afb63722f5afffc09ff820942e04fc30c4851b9 120008 dh-python_6.20230813.tar.xz
 0e61df86fb25e6aa667d38de9d7a5d009d5b7bab2031425eae620b0a8fddece0 6665 dh-python_6.20230813_source.buildinfo
Files:
 21803e113510f194e8c75abe69fff4c4 1644 python optional dh-python_6.20230813.dsc
 ceb680b941c6621e7325e455d5eb4d80 120008 python optional dh-python_6.20230813.tar.xz
 b3f139ae124629c61e21d821d96b775b 6665 python optional dh-python_6.20230813_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCZNgO5xQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2FlVAP4i0vy0vW2LrP52ll0jcomW1/puFBTv
4nC7KTRyOxWVtwEA6XiyGM2GI7rmpfzorWHDF/0RjS3edWnnJHfbKb+FgAU=
=6knS
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 21 Sep 2023 07:24:59 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Aug 8 03:52:10 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.