File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ import os
2+ import time
13import datetime
24
35# Configuration file for the Sphinx documentation builder for
68# Release mode enables optimizations and other related options.
79is_release_build = tags .has ('release' ) # noqa
810
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+
917# -- Project information -----------------------------------------------------
1018
1119project = "Matplotlib Sphinx Theme"
1220copyright = (
13- f"2012 - { datetime . datetime . now () .year } The Matplotlib development team"
21+ f"2012 - { build_date .year } The Matplotlib development team"
1422)
1523author = "Matplotlib Developers"
1624
You can’t perform that action at this time.
0 commit comments