[Python-modules-commits] [flask-restful] 01/03: Use SOURCE_DATE_EPOCH for copyright year to make build reproducible
Ondřej Nový
onovy at moszumanska.debian.org
Sat Aug 13 22:51:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
onovy pushed a commit to branch master
in repository flask-restful.
commit 82bb3bfce4b3a3cedadde2410dbd9deac3c35327
Author: Ondřej Nový <onovy at debian.org>
Date: Sun Aug 14 00:50:39 2016 +0200
Use SOURCE_DATE_EPOCH for copyright year to make build reproducible
Author: Chris Lamb <lamby at debian.org>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809780
---
docs/conf.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index 1957254..5350ff7 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -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 @@ master_doc = 'index'
# 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask-restful.git
More information about the Python-modules-commits
mailing list