Public bug reported: Imported from Debian bug http://bugs.debian.org/1028603:
Package: dh-python Version: 5.20221001 Severity: normal X-Debbugs-Cc: scho...@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 ** Affects: dh-python (Ubuntu) Importance: Undecided Status: New ** Affects: dh-python (Debian) Importance: Undecided Status: New ** Bug watch added: Debian Bug tracker #1028603 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028603 ** Changed in: dh-python (Debian) Remote watch: None => Debian Bug tracker #1028603 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to dh-python in Ubuntu. https://bugs.launchpad.net/bugs/2002819 Title: dh-python: Deps guarded by (python3 << 3.X) break python-3.(X-1) use Status in dh-python package in Ubuntu: New Status in dh-python package in Debian: New Bug description: Imported from Debian bug http://bugs.debian.org/1028603: Package: dh-python Version: 5.20221001 Severity: normal X-Debbugs-Cc: scho...@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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dh-python/+bug/2002819/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp