#1043324 pybuild-plugin-pyproject: always copy pytest.ini (if present)

Package:
dh-python
Source:
dh-python
Submitter:
Sandro Tosi
Date:
2023-08-25 16:42:03 UTC
Severity:
normal
Tags:
#1043324#5
Date:
2023-08-09 06:28:28 UTC
From:
To:
Hello,
pybuild-plugin-pyproject already copies the directory `tests` or `test`;
probably it should also copy by default the file `pytest.ini` if present.

This would both require to change the code and the manpage
(https://manpages.debian.org/unstable/dh-python/pybuild-autopkgtest.1.en.html).

Thanks

#1043324#10
Date:
2023-08-10 17:00:04 UTC
From:
To:
Hi Sandro (2023.08.09_06:28:28_+0000)

Looking at this, it already should be. Do we have examples where it isn't?

https://salsa.debian.org/python-team/tools/dh-python/-/blob/4ae1f8962c2cbe85a8fbc6e1bbba2268c6384579/dhpython/build/base.py#L51

Stefano

#1043324#15
Date:
2023-08-10 17:42:57 UTC
From:
To:
hm now im confused too, since it appears to be working already.

This was part of trying to get tests (at build-time and autopkgtests)
enabled for tvdb-api, currently i cant run adt (waiting for pytest-env
from NEW) but i'll give it another run when that package is in the
archive