File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1414
1515import sys
1616import os
17+ import datetime
1718import shlex
1819import sphinx
1920from sphinx .errors import VersionRequirementError
2021import sphinx_rtd_theme
22+ import importlib .metadata
23+
2124
2225# If extensions (or modules to document with autodoc) are in another directory,
2326# add these directories to sys.path here. If the directory is relative to the
2629import pydmd
2730
2831# -- General configuration ------------------------------------------------
32+ _DISTRIBUTION_METADATA = importlib .metadata .metadata ('PyDMD' )
2933
3034# If your documentation needs a minimal Sphinx version, state it here.
3135needs_sphinx = "1.4"
7478
7579# General information about the project.
7680project = "PyDMD"
77- copyright = pydmd .__copyright__
78- author = pydmd .__author__
81+ current_year = datetime .datetime .now ().year
82+ copyright = f"2017-{ current_year } , PyDMD Contributors"
83+ author = _DISTRIBUTION_METADATA ['Author' ]
7984
8085# autoclass
8186autoclass_content = "both"
8590# built documents.
8691#
8792# The short X.Y version.
88- version = pydmd . __version__
93+ version = _DISTRIBUTION_METADATA [ 'Version' ]
8994# The full version, including alpha/beta/rc tags.
9095release = version
9196
311316 "pydmd Documentation" ,
312317 author ,
313318 "pydmd" ,
314- "One line description of project." ,
315319 "Miscellaneous" ,
316320 ),
317321]
You can’t perform that action at this time.
0 commit comments