Bug#1010279: python-iso8601: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Apr 27 18:51:32 BST 2022


Source: python-iso8601
Version: 1.0.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it did not clean up some pytest cache directories
properly under .pybuild/ and then that got installed into the binary
package. A patch to this package is attached, although the bug might
really be in pytest itself; I defer to your judgement. :)

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-

-------------- next part --------------
--- a/debian/rules	2022-04-27 10:44:36.901334155 -0700
--- b/debian/rules	2022-04-27 10:49:32.975212375 -0700
@@ -4,3 +4,6 @@
 
 %:
 	dh $@ --buildsystem=pybuild --with python3
+
+execute_after_dh_auto_test:
+	find -type d -name .pytest_cache -print0 | xargs -0r rm -rfv


More information about the Reproducible-bugs mailing list