Package: dh-python
Version: 7.20260125
Severity: normal
X-Debbugs-Cc: Colin Watson <[email protected]>
Hi,
I noticed a subtle regression in the handling of complex dependencies.
For example, for the package "python-datamodel-code-generator";
has the instruction
pyproject.toml: "tomli>=2.2.1,<3; python_version<='3.11'",
apt show -a python3-datamodel-code-generator | grep -e ^Version -e ^Depends
Version: 0.45.0-2 [built on 2026-03-01]
Depends: black, python3-argcomplete, python3-genson, python3-inflect,
python3-isort (<< 9),
python3-isort (>= 4.3.21), python3-jinja2, python3-packaging,
python3-pydantic,
python3-supported-min (>> 3.11) | python3-tomli, python3-yaml,
python3:any
Version: 0.45.0-1 [built on 2025-12-19]
Depends: black, python3-argcomplete, python3-genson, python3-inflect,
python3-isort (<< 8),
python3-isort (>= 4.3.21), python3-jinja2, python3-packaging,
python3-pydantic,
python3-tomli | python3-supported-min (>> 3.11), python3-yaml,
python3:any
If you look at the diff you can see that "python3-tomli"
is now sorted before "| python3-supported-min (>> 3.11)" in the dependencies.
As you see, this is very subtle and will disapear anyway
once MIN_PY_VERSION is bumped again.
dhpython/pydist.py:MIN_PY_VERSION = [3, 11]
Thanks for your consideration, you might also decide
there is nothing to fix here and close this bug.
Greetings
Alexandre