Commit 70526d2a authored by Emmanuel Arias's avatar Emmanuel Arias

Adding SOURCE_DATE_EPOCH on copyright year patch

parent e638b163
python-tornado (5.1.1-3) UNRELEASED; urgency=medium
[ Ondřej Nový ]
* Set TRAVIS env variable to "true"
-- Ondřej Nový <onovy@debian.org> Mon, 01 Oct 2018 20:18:14 +0200
[ Emmanuel Arias ]
* Adding-reproducible-copyright-years
* deleting last patch
* Use SOURCE_DATE_EPOCH if is on os.environ, either use
time.time() (UTC)
-- Emmanuel Arias <emamnuelarias30@gmail.com> Fri, 28 Dec 2018 01:19:46 +0000
python-tornado (5.1.1-2) unstable; urgency=medium
......
From: Emmanuel Arias <emamnuelarias30@gmail.com>
Date: Fri, 28 Dec 2018 01:18:28 +0000
Subject: Adding SOURCE_DATE_EPOCH on copyright year
---
docs/conf.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/docs/conf.py b/docs/conf.py
index 33dfd68..fbd0784 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -8,7 +8,13 @@ import tornado
master_doc = "index"
project = "Tornado"
-copyright = "2009-%s, The Tornado Authors" % time.strftime("%Y")
+
+year_copyright = time.gmtime(
+ int(os.environ.get(
+ 'SOURCE_DATE_EPOCH', time.time()))
+ ).tm_year
+
+copyright = "2009-%d, The Tornado Authors" % year_copyright
version = release = tornado.version
......@@ -3,3 +3,4 @@ ignoreuserwarning.patch
fix-ftbfs-on-hurd.patch
0006-Use-local-objects.inv-for-intersphinx-mapping.patch
New_test_crt.patch
0006-Adding-SOURCE_DATE_EPOCH-on-copyright-year.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment