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 66
77# -- Path setup --------------------------------------------------------------
88
9+ import datetime
910import pathlib
1011
1112# If extensions (or modules to document with autodoc) are in another directory,
2021# Sphinx 1.* compat (for readthedocs)
2122master_doc = "index"
2223
23- # -- Project information -----------------------------------------------------
24- project = "tikzplotlib"
25- copyright = "2010-2021, Nico Schlömer"
26- author = "Nico Schlömer"
27-
2824p = ConfigParser ()
2925this_dir = pathlib .Path (__file__ ).resolve ().parent
3026p .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+
3134release = p ["metadata" ]["version" ]
3235
3336
You can’t perform that action at this time.
0 commit comments