Source: flask-restful
Version: 0.3.4-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
flask-restful could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad flask-restful-0.3.4.orig/docs/conf.py
flask-restful-0.3.4/docs/conf.py
--- flask-restful-0.3.4.orig/docs/conf.py 2016-01-03 23:21:42.344550438
+0000
+++ flask-restful-0.3.4/docs/conf.py 2016-01-03 23:23:54.717237869 +0000
@@ -11,9 +11,12 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-from datetime import date
import os
import sys
+import time
+import datetime
+
+BUILD_DATE =
datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH',
time.time())))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -46,7 +49,7 @@
# General information about the project.
project = u'Flask-RESTful'
copyright = u'{}, Kevin Burke, Kyle Conroy, Ryan Horn, Frank Stratton,
Guillaume Binet'.format(
- date.today().year)
+ BUILD_DATE.year)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the