File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 20
20
import sphinx
21
21
22
22
from datetime import datetime
23
+ import time
24
+
25
+ # Parse year using SOURCE_DATE_EPOCH, falling back to current time.
26
+ # https://reproducible-builds.org/specs/source-date-epoch/
27
+ sourceyear = datetime .utcfromtimestamp (int (os .environ .get ('SOURCE_DATE_EPOCH' , time .time ()))).year
23
28
24
29
# If your extensions are in another directory, add it here. If the directory
25
30
# is relative to the documentation root, use os.path.abspath to make it
@@ -212,7 +217,7 @@ def _check_dependencies():
212
217
project = 'Matplotlib'
213
218
copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '
214
219
'Michael Droettboom and the Matplotlib development '
215
- f'team; 2012 - { datetime . now (). year } The Matplotlib development team' )
220
+ f'team; 2012 - { sourceyear } The Matplotlib development team' )
216
221
217
222
218
223
# The default replacements for |version| and |release|, also used in various
You can’t perform that action at this time.
0 commit comments