Package: python-astropy-helpers / 1.3-2

reproducible_builds.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From: Ole Streicher <debian@liska.ath.cx>
Date: Mon, 2 Mar 2015 09:56:57 +0100
Subject: Remove timestamp of the build to allow reproducible builds See
 [ReproducibleBuilds](https://wiki.debian.org/ReproducibleBuilds) on the
 Debian wiki, and the [the astroquery
 package](https://reproducible.debian.net/dbd/sid/amd64/astroquery_0.2.3+dfsg-1.debbindiff.html)
 as an example.

---
 astropy_helpers/version_helpers.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/astropy_helpers/version_helpers.py b/astropy_helpers/version_helpers.py
index 1f0ec45..4a29570 100644
--- a/astropy_helpers/version_helpers.py
+++ b/astropy_helpers/version_helpers.py
@@ -86,7 +86,7 @@ def _version_split(version):
 # details. Note that the imports have to be absolute, since this is also used
 # by affiliated packages.
 _FROZEN_VERSION_PY_TEMPLATE = """
-# Autogenerated by {packagetitle}'s setup.py on {timestamp!s}
+# Autogenerated by {packagetitle}'s setup.py
 from __future__ import unicode_literals
 import datetime
 
@@ -97,7 +97,6 @@ minor = {minor}
 bugfix = {bugfix}
 
 release = {rel}
-timestamp = {timestamp!r}
 debug = {debug}
 
 try:
@@ -142,7 +141,6 @@ githash = "{githash}"
 
 def _get_version_py_str(packagename, version, githash, release, debug,
                         uses_git=True):
-    timestamp = datetime.datetime.now()
     major, minor, bugfix = _version_split(version)
 
     if packagename.lower() == 'astropy':
@@ -166,7 +164,6 @@ def _get_version_py_str(packagename, version, githash, release, debug,
                                                          githash=githash)
 
     return _FROZEN_VERSION_PY_TEMPLATE.format(packagetitle=packagetitle,
-                                              timestamp=timestamp,
                                               header=header,
                                               major=major,
                                               minor=minor,