#1151901 python-digitalocean: FTBFS: E: dh_python3 fs:312: python3-digitalocean includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't.

#1151901#5
Date:
2026-10-24 09:41:19 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202610/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-digitalocean, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
   dh_installdocs -O--buildsystem=pybuild
dh_installdocs: warning: Cannot auto-detect main package for python-digitalocean-doc.  If the default is wrong, please use --doc-main-package or the X-Doc-Main-Package field
   dh_sphinxdoc -O--buildsystem=pybuild
   dh_installchangelogs -O--buildsystem=pybuild
   dh_python3 -O--buildsystem=pybuild
E: dh_python3 fs:312: python3-digitalocean includes a common build directory name 'tests' as a module. Likely due to a mis-configured build system installing things it shouldn't.
make: *** [debian/rules:13: binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1151901#10
Date:
2026-10-27 02:50:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-digitalocean, 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 1151901@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <stuart@debian.org> (supplier of updated python-digitalocean 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: Tue, 27 Oct 2026 13:18:01 +1100
Source: python-digitalocean
Architecture: source
Version: 1.17.0-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stuart Prescott <stuart@debian.org>
Closes: 1151901
Changes:
 python-digitalocean (1.17.0-3) unstable; urgency=medium
 .
   * Team upload.
   * Fix test artifact handling code to correctly remove the test files after
     running the tests, so they don't land in the package with recent dh-python
     versions (Closes: #1151901).
   * Enable autopkgtests.
Checksums-Sha1:
 ee5321f65d70d1aaf2195c18b916a4fd1ac622ac 2685 python-digitalocean_1.17.0-3.dsc
 a7e8b08cdd21cfd3c43392df93d15c6c313df4e6 4600 python-digitalocean_1.17.0-3.debian.tar.xz
 6fa76b33b3204e8c31eaefbc7f60458bc207a8e2 162164 python-digitalocean_1.17.0-3.git.tar.xz
 4ccbfa5e516c90921bbac381966d571fa237cb71 17784 python-digitalocean_1.17.0-3_source.buildinfo
Checksums-Sha256:
 07ea888216e3ec37a77f9e94e49b8d160b2c64ddb1c0e5b9897f0dd0bebe27f2 2685 python-digitalocean_1.17.0-3.dsc
 35b44336e99757442599d9a7eedcfb0a10fd2b38f81da3018a5cdac6755252bf 4600 python-digitalocean_1.17.0-3.debian.tar.xz
 4a6b3b62fce028f42f60b319ac1f634b2257486fd7592110930f48baf5810233 162164 python-digitalocean_1.17.0-3.git.tar.xz
 fe76979b3f8dd985862f3883e4bbbfd78f3d24cdc7b5947761a21c0f438f9a05 17784 python-digitalocean_1.17.0-3_source.buildinfo
Files:
 75a21728cedff659bcb2d3b14c9aa551 2685 python optional python-digitalocean_1.17.0-3.dsc
 f4e121ba1a4268e2a56d91b3eac1f9ba 4600 python optional python-digitalocean_1.17.0-3.debian.tar.xz
 fdeb3b342bdd655dd92a82ae7060c387 162164 python None python-digitalocean_1.17.0-3.git.tar.xz
 98d51200b806e654eaa15dcdb101bddf 17784 python optional python-digitalocean_1.17.0-3_source.buildinfo
Git-Tag-Info: tag=e2916a1c548e1e7fcd662ee9ac2e665b436312b9 fp=90e2d2c1ad146a1b7ebb891dbbc17ebb1396f2f7
Git-Tag-Tagger: Stuart Prescott <stuart@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrgDBMACgkQYG0ITkaD
wHldmhAA7KhZ8VXp6r6Rh3seIPvM3tboyIkI49wj18oQt2Ub/DPBqJPZRcOnAeIs
Yy3oClPrj+OMUI0l5bMMVducaJ3FS3loGytrp+dU/mXOvjFW9Lhu0CXs86YaBETB
l4tEmuhJoCYJHPzq4tenfq1Q5LsByuv/MyxplEaUbXb6Z0/wbGxOGhDFfWaGBPv1
XJEaSTw5j9k1DUUbJajW9W57E03awbhF7rAEieJ1tUAQxwoQ3UNW6ZPaPPALYw6j
MUVmDEb0PQR0njMwbqsTyfv/EoF49G7k5qKp3FPre9o+4icb1dieRNtuUnvwfXGW
ZEFnoTMJLNE7iC9f298xQhHGL24Fls209TW01yIiMJRBWEhiA0NCGoCntJT3aOuP
6zuqBlg+gd/WLzrTjIW+5QIr3SijbEUugDRyhS2tc1UXRYaRJwWWHRG8X+hb5ma+
J3x0vdSfbfH+luIaVDAAN/dm1t76GSp/v4DjfV04QTN0OTZ9iL51GxK1zSWXRz6O
GviBqg844qDEeI16ym7pMzjdlZCH/TroqZcVjJ7k8sfXP4bIEh9XXylpxtpA5bBZ
yYaQf81aVr9yoR4cIxA12o5XwWwQavjXZasGsfIJ20zM7RXYzEuUCxVWp23I9crV
QonsLCIAopcUn020oH5Jr/dUTDJ/+2xccSMfGfXZNZVzQ17VpUI=
=UtA6
-----END PGP SIGNATURE-----