File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ import time
1
3
import datetime
2
4
3
5
# Configuration file for the Sphinx documentation builder for
6
8
# Release mode enables optimizations and other related options.
7
9
is_release_build = tags .has ('release' ) # noqa
8
10
11
+ # Parse year using SOURCE_DATE_EPOCH, falling back to current time.
12
+ # https://reproducible-builds.org/specs/source-date-epoch/
13
+ build_date = datetime .datetime .utcfromtimestamp (
14
+ int (os .environ .get ('SOURCE_DATE_EPOCH' , time .time ()))
15
+ )
16
+
9
17
# -- Project information -----------------------------------------------------
10
18
11
19
project = "Matplotlib Sphinx Theme"
12
20
copyright = (
13
- f"2012 - { datetime . datetime . now () .year } The Matplotlib development team"
21
+ f"2012 - { build_date .year } The Matplotlib development team"
14
22
)
15
23
author = "Matplotlib Developers"
16
24
You can’t perform that action at this time.
0 commit comments