Source: python-testfixtures
Version: 4.13.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that python-testfixtures could not be built reproducibly.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad python-testfixtures-4.13.3.orig/docs/conf.py
python-testfixtures-4.13.3/docs/conf.py
--- python-testfixtures-4.13.3.orig/docs/conf.py 2017-02-02
13:39:27.818650226 +1300
+++ python-testfixtures-4.13.3/docs/conf.py 2017-02-02 13:41:09.155526373
+1300
@@ -3,9 +3,11 @@
import os
import pkginfo
import sys
+import time
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
pkg_info = pkginfo.Develop(os.path.join(os.path.dirname(__file__), '..'))
+build_date =
datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH',
time.time())))
extensions = [
'sphinx.ext.autodoc',
@@ -28,7 +30,7 @@
source_suffix = '.txt'
master_doc = 'index'
project = pkg_info.name
-copyright = '2008-2015 Simplistix Ltd, %s Chris Withers' %
datetime.datetime.now().year
+copyright = '2008-2015 Simplistix Ltd, %s Chris Withers' % build_date.year
version = release = pkg_info.version
exclude_trees = ['_build']
exclude_patterns = ['description.txt']
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team