mirror of
https://github.com/nicolargo/glances.git
synced 2024-09-11 12:47:14 +03:00
Make build reproducible #1740
This commit is contained in:
parent
44d7a806e5
commit
57a804eb3c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user