Hi Philippe

> It would be nice if dh-python could automatically get the minimum
> required Python version from the requires-python field in
> pyproject.toml (if that is used for building) and use it for versioned
> Depends:.

If a versioned dependency on Python is needed, it usually needs to be in place before building the package (it would often result in FTBFS with the incompatible Python version) - it therefore needs to be in the Build-Depends, not the Depends field.

(As a general rule, we also want to avoid such dependencies as much as possible because they make Python interpreter transitions harder.)

regards
Stuart


--
Stuart Prescott   http://www.nanonanonano.net/ [email protected]
Debian Developer  http://www.debian.org/       [email protected]
GPG fingerprint   90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7

Reply via email to