#1151409 dh-python: several packages FTBFS with error "XXX includes a common build directory name 'tests' as a module."

#1151409#5
Date:
2026-10-20 10:33:14 UTC
From:
To:
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.

#1151409#12
Date:
2026-10-20 13:33:09 UTC
From:
To:
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

#1151409#29
Date:
2026-10-21 14:35:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sorted-nearest, 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 1151409@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated sorted-nearest 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 15:41:03 +0200
Source: sorted-nearest
Architecture: source
Version: 0.0.41+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1151409
Changes:
 sorted-nearest (0.0.41+dfsg-3) unstable; urgency=medium
 .
   * Team upload.
   * Standards-Version: 4.7.4 (routine-update)
   * Remove Priority field (cme)
   * debputy lint --auto-fix (routine-update)
   * Remove tests from installation dir
     Closes: #1151409
Checksums-Sha1:
 ade07506ca3d6560239a28c991059d9af27bb29d 2370 sorted-nearest_0.0.41+dfsg-3.dsc
 b57488f92ae0d936372e50100abe277cb18b0dcc 5404 sorted-nearest_0.0.41+dfsg-3.debian.tar.xz
 556cfc3d28d9f533e1041104255a8716fd1a2613 7703 sorted-nearest_0.0.41+dfsg-3_amd64.buildinfo
Checksums-Sha256:
 ea142845255e3bc924917284a6bb816d3340f07ef9f54ede81b2736ae86f9d83 2370 sorted-nearest_0.0.41+dfsg-3.dsc
 19ed794d2eb9da4e0b4de852aa1d730b56a69f906f69c4c7b21658a827b122cf 5404 sorted-nearest_0.0.41+dfsg-3.debian.tar.xz
 5cbf3466aae5161bfdda5b5009687dec8b27fdf1a7e34ffaa9db966417edad05 7703 sorted-nearest_0.0.41+dfsg-3_amd64.buildinfo
Files:
 430ef641fe24dad2c22e538436bee70c 2370 python optional sorted-nearest_0.0.41+dfsg-3.dsc
 54247ddf94a3e5615cfc5333d052d918 5404 python optional sorted-nearest_0.0.41+dfsg-3.debian.tar.xz
 6dc0498a1942ebdd44378853a5ce4e39 7703 python optional sorted-nearest_0.0.41+dfsg-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmrYwqIRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFr9w//fQMluXi4DoAqpZXSSc42I86oW5nAA59f
WqqGj4uA3iXytttKganeyZu/QWdxnMLJKFKem8epIaoFcnVlxztZ+4q/EuSTcttz
uVbSu+t/gv2zgeQRCds+KC1mMdomiMUQJhVyD4n1V4u1v8p8TdZQkOMnPvJ/NoTT
WoLQqAklCCDLLWZr6ijSZxRfFoTHcddL8N8Nq0Kd1iz4W2WHWxetOTZhEJeEvJSM
ws19QcxphDsR6ZLS9CaEM4S5aFWtqoeUdo/stR341F+OQE6axSoxDYp+R3shhAMg
NhD+Vfgom6fbvj9YsCp0MTvBXXY8S7D8IAYf2zvSh5NuYiPx6lHtoI75AA776BiA
BcT9ebP9CVlbjWwVOoZFb4ro77zdnY54yAIdoz7g39LnxCptywrnBDnjz1D/ABOv
H2R3gFPsy/RIp6+r/nsHmTk5bHSdDWiua6a4iIvj/hINDu6CgM+Apmx2rPzUOiby
z3Ofe1fDr/k/eoP4+kfEH7R11TYa8scMrAsQxzmdIrvhqxi9ur7nQeVPAyhKEdf5
MsrRL+o4L7ybBM8egP5PzEthibZ0tOdRn4PmNbOekQMf5rMaFzLdNd56VXH+5B7k
mZ+N6W96WkWlEX1cgJgiaBSP0xBTg75WOgloIAvc7wAB56fjJORczXik/yvWm/bE
V7UD8HP8UBk=
=xQc5
-----END PGP SIGNATURE-----