Make build reproducible #1740

This commit is contained in:
nicolargo 2020-10-10 10:12:13 +02:00
parent 44d7a806e5
commit 57a804eb3c

View File

@ -54,7 +54,10 @@ master_doc = 'index'
# General information about the project.
project = 'Glances'
author = 'Nicolas Hennion'
year = datetime.now().year
try:
year = datetime.utcfromtimestamp(int(os.environ['SOURCE_DATE_EPOCH'])).year
except (KeyError, ValueError):
year = datetime.now().year
copyright = '%d, %s' % (year, author)
# The version info for the project you're documenting, acts as replacement for