Bug#1040232: dotenv-cli: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jul 3 18:48:12 BST 2023


Source: dotenv-cli
Version: 3.2.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because the package installs a .coverage file (right into the
top-level /usr/lib/python3/dist-packages directory!) as well as some
other test coverage related files.

A patch is attached that removes these files.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2023-07-03 18:36:04.013796172 +0100
--- b/debian/rules	2023-07-03 18:46:43.430088575 +0100
@@ -9,6 +9,9 @@
 %:
 	dh $@ --with python3,bash-completion --buildsystem=pybuild
 
+execute_after_dh_auto_install:
+	find debian/ -type f -name .coverage -delete
+	find debian/ -type d -name htmlcov -print0 | xargs -0 rm -rfv
 
 # If you need to rebuild the Sphinx documentation
 # Add spinxdoc to the dh --with line


More information about the Reproducible-bugs mailing list