Package: dh-python Version: 6.20240824 Severity: normal pydantic has 'pydantic-core==2.23.4' as a dependency in its pyproject.toml (2.9.2-1 patches that to ">=", but I'm in the process of removing that patch), and I tried to put "pydantic-core python3-pydantic-core; PEP440" in debian/py3dist-overrides to cause that to be translated into appropriate Debian package dependencies. Unfortunately, that resulted in a dependency on "python3-pydantic-core (= 2.23.4)", which is incorrect since python3-pydantic-core isn't a native package. A correct dependency would have been something like "python3-pydantic-core (>= 2.23.4), python3-pydantic-core (<< 2.23.5~)".
Relying on versioned Build-Depends here also doesn't work correctly. With "Build-Depends: python3-pydantic-core (>= 2.23.4), python3-pydantic-core (<< 2.23.5~)", dh_python3 only picks up the second of those version constraints, resulting in "Depends: python3-pydantic-core (<< 2.23.5~)". It looks like my only sensible option is to manually duplicate the version constraints into Depends. -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.10.9-amd64 (SMP w/12 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en 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.12.6-1 ii python3-setuptools 74.1.2-2 dh-python recommends no packages. Versions of packages dh-python suggests: ii dpkg-dev 1.22.11 pn flit <none> ii libdpkg-perl 1.22.11 ii python3-build 1.2.2-1 ii python3-installer 0.7.0+dfsg1-3 ii python3-wheel 0.44.0-2 -- no debconf information -- Colin Watson (he/him) [[email protected]]

