Source: python-tld
Version: 0.13-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to