File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 66import importlib .metadata
77
88from packaging .specifiers import SpecifierSet
9- from packaging .version import Version
109
1110project = "VWS-Python"
1211author = "Adam Dangoor"
3029# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.
3130copybutton_exclude = ".linenos, .gp"
3231
33- # The version info for the project you're documenting, acts as replacement for
34- # |release|, also used in various other places throughout the
35- # built documents.
36- #
37- # Use ``importlib.metadata.version`` as per
38- # https://setuptools-scm.readthedocs.io/en/latest/usage/#usage-from-sphinx.
39- _version_string = importlib .metadata .version (distribution_name = project )
40- _version = Version (version = _version_string )
41- # GitHub release tags have the format YYYY.MM.DD, while Python requirement
42- # versions may have the format YYYY.M.D for single digit months and days.
43- release = "." .join (f"{ part :02d} " for part in _version .release )
44-
45-
4632project_metadata = importlib .metadata .metadata (distribution_name = project )
4733requires_python = project_metadata ["Requires-Python" ]
4834specifiers = SpecifierSet (specifiers = requires_python )
8975
9076rst_prolog = f"""
9177.. |project| replace:: { project }
92- .. |release| replace:: { release }
9378.. |minimum-python-version| replace:: { minimum_python_version }
9479.. |github-owner| replace:: VWS-Python
9580.. |github-repository| replace:: vws-python
You can’t perform that action at this time.
0 commit comments