Re: dh-python: help needed with recursive resolution of pyproject optional dependencies

Andrey Rakhmatullin <[email protected]> Mon, 22 Jun 2026 17:26:46 +0500
Newsgroups gmane.linux.debian.devel.python
Message-ID <[email protected]>
--+1wspbIG/aSoxaCb
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 22, 2026 at 12:14:48PM +0000, PICCA Frederic-Emmanuel wrote:
>>I am trying to rely on the dependencies declared in pyproject.toml to pop=
ulate the test/autopkgtest dependencies.
>
>> How are you doing this?
>
>This is not done automatically, this is just ${Python:3Depends}=20

The question was about "test/autopkgtest dependencies".

>>My understanding was that selecting all optional dependencies, or selecti=
ng the test extra, should recursively include the dependencies from the nes=
ted extras as well. In particular:
>
>> How are you "selecting" them?
>
>Using this command line
>
>override_dh_python3:
>        dh_python3 --depends-section=3Dall

This has no effect on build-time tests, and adding test deps to binary=20
package Depends is clearly wrong.

>>  3.  If not, what is the recommended Debian packaging approach for this =
case?
>
>> B-D must be listed explicitly, there is no way around that.
>
>Yes we Add them in the B-D, but the {Python3:Depends} is not computed prop=
erly due to this error.

That sounds like a separate question.

--=20
WBR, wRAR

--+1wspbIG/aSoxaCb
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQJhBAABCgBLFiEEtf6ieDcfC1EgtGkao+OWn23e7IYFAmo5KgYtFIAAAAAAFQAP
cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEKPjlp9t3uyG
sooQAMzxFsjc7taMZa+osxmfwss6iiy98qNp8yJNcu0ZrTHSGaK6jar9X77+KTJy
7ByOVnc3fGi9ftpAa3iNTy22Ga/0j4QdrtkvbEoNePO4mRxdeaeO8nSAFcJIPADB
+w5YBLQimLWZYqUptKzPSL9gT54k0p547yskhwGjzWP0gop7NXQQO2jTarRB/tO2
ARs4gQFs+jbOW9uJE963tTwxvjGjE5m+Wew2jytz2ORtFMddPlwCKDrZiI05bOeF
KS7LyS7dyL+V+hJ3jLRzLKsimdNfGCq3R8lVnEaocDJQPzVfssK2Aib8lptqKrLT
PlOLdv8n+5gL/k4z0IEzS/uwOgoHVgqZRn+0OvvEr5Gcz/Q2sgbFLlCr7rNh/ped
3bJvdD/oSThuDQEFXDUx4yzBrEKayaCs8nZTYymjUWe4TXLAKfKeFexNzXofWOMH
Gxq1tAxlEZBi8pDUcybkTRogodQwx+neDLzFN9qJpVkDn6XY9fwGYCMXzb2bH3NG
IPfLWyjDNTVMhL8FRDLhStHLXeyayXWgaSfuxDABJ5u10GmTovf5wpBTdNxMIvML
lwpOUGUashiQvIhCpl6A2dH5b4H+xLjKuYLzxdtWhcxfvxAGxDRLrEr2XP+3hrTV
Ht2Dx5SOoaga5Pe76EyG1OWlj1Q0FAUQf4ruIOSNmN/pMw4l
=v8if
-----END PGP SIGNATURE-----

--+1wspbIG/aSoxaCb--