#1151405 dh-python: several packages FTBFS with error "XXX includes a common build directory name 'tests' as a module." #1151405
- Package:
- src:python-serializable
- Source:
- src:python-serializable
- Submitter:
- Santiago Vila
- Date:
- 2026-10-21 12:07:02 UTC
- Severity:
- normal
- Tags:
Dear maintainer: The packages in the affects line all fail to build in a similar way: E: dh_python3 fs:312: python3-sorted-nearest includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't. (That's how src:sorted-nearest fails, as an example). If this is not a bug in dh-python, please clone and reassign to each of the affected packages, possibly with a brief explanation of what maintainers are supposed to do. Thanks.
Control: clone -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 Control: reassign -1 src:appdata Control: reassign -2 src:busco Control: reassign -3 src:dissononce Control: reassign -4 src:django-distill Control: reassign -5 src:dogtail2 Control: reassign -6 src:gitsome Control: reassign -7 src:mkdocs-macros-plugin Control: reassign -8 src:palettable Control: reassign -9 src:pkb-client Control: reassign -10 src:pocsuite3 Control: reassign -11 src:python-jira Control: reassign -12 src:python-multidict Control: reassign -13 src:python-pantomime Control: reassign -14 src:python-serializable Control: reassign -15 src:python-sparkpost Control: reassign -16 src:python-threadloop Control: reassign -17 src:sbws Control: reassign -18 src:sorted-nearest Hi Santiago (2026.10.20_10:33:14_+0000) This is a new feature in dh-python, detecting likely build misconfiguration (as the message states). building sorted-nearest attempts to install: sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests/test_ties.py sorted-nearest-0.0.41+dfsg/debian/python3-sorted-nearest/usr/lib/python3/dist-packages/tests/conftest.py That's clearly wrong, and inappropriate. I note that the version in unstable doesn't include these files, and it isn't immediately obvious to me where the regression is. Probably in setuptools. But the package includes in pyproject: [tool.setuptools.packages.find] where = ["."] That should really have some includes or excludes. I checked appdata and busco, both have the same issue. Let's assume that all of these packages are affected. Stefano
Hello, Bug #1151405 in python-serializable reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/python-serializable/-/commit/f487bc814aa090036dbc012e07bccf41945a1cca ------------------------------------------------------------------------ Drop unnecessary PYBUILD_BEFORE_TEST; pybuild handles this itself Closes: #1151405 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1151405
We believe that the bug you reported is fixed in the latest version of
python-serializable, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1151405@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated python-serializable package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 21 Oct 2026 12:45:19 +0100
Source: python-serializable
Architecture: source
Version: 1.3.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1151405
Changes:
python-serializable (1.3.1-2) unstable; urgency=medium
.
* Team upload.
* Drop unnecessary PYBUILD_BEFORE_TEST; pybuild handles this itself
(closes: #1151405).
* Remove empty and unused remove_simplejson.patch.
* Remove now-unnecessary restore_tests_package.patch.
Checksums-Sha1:
d64f7e6bb58d8a0428ee34247989738914b1b3a8 2530 python-serializable_1.3.1-2.dsc
3650eaefde93d8060d03f5dabee1b5d7cf4d777b 4252 python-serializable_1.3.1-2.debian.tar.xz
f479f321854086d57be59e57fe9973640be2a29f 81744 python-serializable_1.3.1-2.git.tar.xz
a395548450007485305bdfbd3e2bb1bdb04e725e 17772 python-serializable_1.3.1-2_source.buildinfo
Checksums-Sha256:
b76145bc5a31e103e18da9248dc2c2ed5181bcf72dd1b23c8d64eb00146443b3 2530 python-serializable_1.3.1-2.dsc
85e25defb1f1fa185027072edff20accd09a4287d55e93c59a01eee97d8fbb3b 4252 python-serializable_1.3.1-2.debian.tar.xz
8592efe44ebfb263058d8ce20a5de5420c4bbf21e35e9ceaa638181f84199e24 81744 python-serializable_1.3.1-2.git.tar.xz
ae5b6a62ed5af2adcf908c174a24afdf9be5f5c446ba5aa4893cbe47d5afcdbd 17772 python-serializable_1.3.1-2_source.buildinfo
Files:
c5000ea020318bf577993f675b06d1eb 2530 python optional python-serializable_1.3.1-2.dsc
28499032783a2e3def9494aefafdcc65 4252 python optional python-serializable_1.3.1-2.debian.tar.xz
a9be89194d5ebfe24cdad668f92f97df 81744 python optional python-serializable_1.3.1-2.git.tar.xz
04aab17789ed0082fd267ca5cca84741 17772 python optional python-serializable_1.3.1-2_source.buildinfo
Git-Tag-Info: tag=1918a27bab2c33e88e2c7706d7f6b052d52ca028 fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrYpnkACgkQYG0ITkaD
wHliHQ/+JRToNh4/5sUPIYyigA99vkuXuF53PAk7rsjAVuTqgb9QThpiy6pYEJPe
DsAb5iqxlYdgqSnih+lbfDsuhMWN5NeJgslZOUemeVm7AoSVT1FbmvyK4bsKSdR5
7ECky+iNyKaW+ktOXwtgjPWiMeNLHPHF6JAwVyud9eJnPp2AcPCK15usGGY4ZaQH
41o0W4zLzndBk9+CcGDn/2DLrHid0rNlyXL89NyllowngJymh2VfZxFCy2+30vDg
sxZzKfKotGY/zhmp7zLflQtCsS01vSIgFLpyzmCtCfMDd9jdZs6k9BLcy4k6uPhg
UVx4a3r80XH4XfXaoTclDISxFCwrDDUIHnb3UP+3IAr95Ojmn7bRBx7BR8Hforeb
XfG7IXrWX7bwDotv2mYlNfkT8rEs9ectnclJTZmytYQoHy21qKVz74AkH1u3OHu7
ya7JVg1aJWfta3qfi14vPsq4AAqK/wOhcweF9yYmUMMbDywTguuX2NRv205Qskh7
WBQKVUpmNAT8hX+z//4s2gAop2TK4OUyI12h41ayLSK+XMTnwR5kd32NS8PLncej
dFLQRVKEIUbWh1Q7XzihCpFe2cw1fWXb4x+CzTKjQBeLWXZLO1TY8UskCprj6DLo
kYQK/T3z3rtAmO5uASNo6S57cAYIf8syO6bCUNdAlJt8e/sGqxc=
=xdpZ
-----END PGP SIGNATURE-----