Control: clone -1 -2
Control: reassign -2 dh-python
Control: severity -2 normal
Control: retitle -2 dh-python: pyproject plugin fails if
debian/pybuild.testfiles contains a blank line
On Tue, Dec 16, 2025 at 07:46:04PM +0000, Santiago Vila wrote:
dh_auto_test -O--buildsystem=pybuild -O--test-args=--import-mode=importlib
E: pybuild pybuild:389: test: plugin pyproject failed with: not enough values
to unpack (expected at least 1, got 0)
E: pybuild pybuild:389: test: plugin pyproject failed with: not enough values
to unpack (expected at least 1, got 0)
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14
3.13" returned exit code 13
I think this rather obscure failure mode is a regression caused by
https://salsa.debian.org/python-team/tools/dh-python/-/commit/7ec093d4c9f51f8f500fe5c1c50dc8c4def9ced6.
Before that change, an empty line was silently ignored (albeit perhaps
accidentally - it would have happened because exists(src_dpath) and
exists(dst_dpath) were both true), while now it causes an exception at
`name, *rest = entry.split(maxsplit=1)`.
I'll remove the blank line from debian/pybuild.testfiles in this package
anyway, but I think most people would expect a blank line there to have
no effect. Probably the assignment to files_to_copy a few lines up
should ignore it.
--
Colin Watson (he/him) [[email protected]]