File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
# -- Path setup --------------------------------------------------------------
8
8
9
+ import datetime
9
10
import pathlib
10
11
11
12
# If extensions (or modules to document with autodoc) are in another directory,
20
21
# Sphinx 1.* compat (for readthedocs)
21
22
master_doc = "index"
22
23
23
- # -- Project information -----------------------------------------------------
24
- project = "tikzplotlib"
25
- copyright = "2010-2021, Nico Schlömer"
26
- author = "Nico Schlömer"
27
-
28
24
p = ConfigParser ()
29
25
this_dir = pathlib .Path (__file__ ).resolve ().parent
30
26
p .read (this_dir / ".." / "setup.cfg" )
27
+
28
+ # -- Project information -----------------------------------------------------
29
+ project = p ["metadata" ]["name" ]
30
+ year = datetime .datetime .utcnow ().year
31
+ author = p ["metadata" ]["author" ]
32
+ copyright = f"2010-{ year } , { author } "
33
+
31
34
release = p ["metadata" ]["version" ]
32
35
33
36
You can’t perform that action at this time.
0 commit comments