Source: todoman
Version: 3.2.4-3
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because it installs the Hypothesis example files.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2018-01-02 09:08:06.024715058 +0000
--- b/debian/rules      2018-01-02 09:23:26.095004000 +0000
@@ -8,6 +8,8 @@
        python3 setup.py build_sphinx -b man
 # manually remove files needed for tests
 export PYBUILD_AFTER_TEST=rm {build_dir}/.coverage
+# Don't install Hypothesis example database into binary package.
+export HYPOTHESIS_DATABASE_FILE = $(CURDIR)/debian/hypothesis
 
 # exports needed to make the tests succeed (python3-click)
 export TZ=UTC
@@ -17,6 +19,7 @@
 # disable dh_auto_clean as "setup.py clean" tries to download packages from the
 # internet
 override_dh_auto_clean:
+       rm -f $(CURDIR)/debian/hypothesis
 
 %:
        dh $@ --with python3,bash-completion --buildsystem=pybuild

Reply via email to