Bug#1120070: python-tld: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Nov 4 19:06:55 GMT 2025


Source: python-tld
Version: 0.13-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-tld could not be built reproducibly.

This is because it leaves coverage files (eg. "__init__.py,cover")
around when running the tests

Patch attached that deletes them via PYBUILD_AFTER_TEST.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-04 10:52:37.749923188 -0800
--- b/debian/rules	2025-11-04 11:06:06.174431887 -0800
@@ -4,7 +4,7 @@
 export PYBUILD_NAME=tld
 export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/tld/res;ln -sf /usr/share/publicsuffix/effective_tld_names.dat {build_dir}/tld/res/effective_tld_names.dat.txt;cp -r {dir}/src/tld/tests/res {build_dir}/tld/tests
 export PYBUILD_TEST_ARGS= -k 'not test_7_public_private and not test_26_case'
-export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tld/res; rm -rf {build_dir}/tld/tests/res {build_dir}/htmlcov
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tld/res; rm -rf {build_dir}/tld/tests/res {build_dir}/htmlcov; find {build_dir} -name *,cover -delete
 
 %:
 	dh $@ --with sphinxdoc --buildsystem=pybuild


More information about the Reproducible-bugs mailing list