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 populate 
the test/autopkgtest dependencies.

How are you doing this?

This is not done automatically, this is just ${Python:3Depends}

The question was about "test/autopkgtest dependencies".

My understanding was that selecting all optional dependencies, or selecting the 
test extra, should recursively include the dependencies from the nested extras 
as well. In particular:

How are you "selecting" them?

Using this command line

override_dh_python3:
       dh_python3 --depends-section=all

This has no effect on build-time tests, and adding test deps to binary 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 properly 
due to this error.

That sounds like a separate question.

--
WBR, wRAR

Attachment: signature.asc
Description: PGP signature

Reply via email to