Source: parso Version: 0.1.0-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 parso could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/0002-reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0002-reproducible-build.patch 2017-12-16 10:36:07.951322965 +0000 @@ -0,0 +1,24 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2017-12-16 + +--- parso-0.1.0.orig/docs/conf.py ++++ parso-0.1.0/docs/conf.py +@@ -13,6 +13,7 @@ + + import sys + import os ++import time + import datetime + + # If extensions (or modules to document with autodoc) are in another directory, +@@ -45,7 +46,8 @@ master_doc = 'index' + + # General information about the project. + project = u'parso' +-copyright = u'2012 - {today.year}, parso contributors'.format(today=datetime.date.today()) ++now = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) ++copyright = u'2012 - {now.year}, parso contributors'.format(now=now) + + import parso + from parso.utils import version_info --- a/debian/patches/series 2017-12-16 10:29:07.751318304 +0000 --- b/debian/patches/series 2017-12-16 10:36:06.303288470 +0000 @@ -1 +1,2 @@ 0001-remove-forkme-logo-to-avoid-privacy-breach.patch +0002-reproducible-build.patch

