Verified Commit 79a1d34d authored by Michael R. Crusoe's avatar Michael R. Crusoe 🏳️‍🌈
Browse files

Make the build reproducible

parent 48560480
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
toil (3.18.0-3) UNRELEASED; urgency=medium

  * Make the build reproducible, patch from lamby@debian.org; thanks!
    (Closes: #925191)

 -- Michael R. Crusoe <michael.crusoe@gmail.com>  Wed, 20 Mar 2019 21:46:34 -0500

toil (3.18.0-2) unstable; urgency=medium

  * Remove errant recommend on python3-futures and depends on python3-pytest*
+24 −0
Original line number Diff line number Diff line
Subject: Make the build reproducible
From: Chris Lamb <lamby@debian.org>
Forwarded: https://github.com/DataBiosphere/toil/pull/2562

--- toil-3.18.0.orig/docs/conf.py
+++ toil-3.18.0/docs/conf.py
@@ -18,6 +18,7 @@ import inspect
 import re
 from datetime import datetime
 import toil.version
+import time
 
 # This makes the modules located in docs/vendor/sphinxcontrib available to import
 sphinxPath = os.path.abspath(os.path.join(os.path.pardir, os.path.dirname('docs/vendor/sphinxcontrib/')))
@@ -100,7 +101,8 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'Toil'
-copyright = u'2015 – %i UCSC Computational Genomics Lab' % datetime.now().year
+build_date = datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
+copyright = u'2015 – %i UCSC Computational Genomics Lab' % build_date.year
 author = u'UCSC Computational Genomics Lab'
 
 # The version info for the project you're documenting, acts as replacement for
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@ adjust_to_newer_cwltool
fix_tests
soften-pytest-depends
soften-mesos-deps
reproducible-build.patch