Hey.
So I think I found out how to use --suggests-section=, namely via e.g.:
override_dh_python3:
dh_python3 --suggests-section=foo --suggests-section=bar
with foo and bar being the names I've used above in my pyproject.toml
[project.optional-dependencies] section.
Looking at the code, I'd say dh_python rather reads them from
requirements.txt (which is however somehow generated from
pyproject.toml).
That's already quite nice... could it be improved to allow a wildcard
like =* to simply take all section? IIRC the syntax of these names
like "foo" are anyway restricted by Python (and don't allow *).
It would of course still be better if any dependency that has been
explicitly given in debian/control is excluded... but even the
wildcard would be better than "nothing".
It would be nice if this could be documented (I mean *what* the
sections are...).
Also, am I doing the override correctly? Or do I need to set further
options to get the behavior of the "pristine" dh_python?
Thanks,
Philippe
PS: Why is the --with python3 still needed, if dh-python has anyway
"only" dh_python3?