dh-python: Deps guarded by (python3 << 3.X) break python-3.(X-1) use
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| dh-python (Debian) |
Fix Released
|
Unknown
|
|||
| dh-python (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Imported from Debian bug http://
Package: dh-python
Version: 5.20221001
Severity: normal
X-Debbugs-Cc: <email address hidden>
For instance, pylint has "tomli>
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-
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.19.0-29-generic (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETA
Locale: LANG=en_US.UTF-8, LC_CTYPE=
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/
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
| Changed in dh-python (Debian): | |
| importance: | Undecided → Unknown |
| Changed in dh-python (Debian): | |
| status: | New → Fix Released |

Sorry, didn't close this in the changelog, but this was fixed in 6.20230813