Skip to content

Commit f03bf34

Browse files
committed
Remove unused version setting in conf.py
1 parent 3e9df2a commit f03bf34

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

docs/source/conf.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import importlib.metadata
77

88
from packaging.specifiers import SpecifierSet
9-
from packaging.version import Version
109

1110
project = "VWS-Python-Mock"
1211
author = "Adam Dangoor"
@@ -34,18 +33,6 @@
3433
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.
3534
copybutton_exclude = ".linenos, .gp"
3635

37-
# The version info for the project you're documenting, acts as replacement for
38-
# |release|, also used in various other places throughout the
39-
# built documents.
40-
#
41-
# Use ``importlib.metadata.version`` as per
42-
# https://setuptools-scm.readthedocs.io/en/latest/usage/#usage-from-sphinx.
43-
_version_string = importlib.metadata.version(distribution_name=project)
44-
_version = Version(version=_version_string)
45-
# GitHub release tags have the format YYYY.MM.DD, while Python requirement
46-
# versions may have the format YYYY.M.D for single digit months and days.
47-
release = ".".join(f"{part:02d}" for part in _version.release)
48-
4936
project_metadata = importlib.metadata.metadata(distribution_name=project)
5037
requires_python = project_metadata["Requires-Python"]
5138
specifiers = SpecifierSet(specifiers=requires_python)
@@ -90,7 +77,6 @@
9077

9178
rst_prolog = f"""
9279
.. |project| replace:: {project}
93-
.. |release| replace:: {release}
9480
.. |minimum-python-version| replace:: {minimum_python_version}
9581
.. |github-owner| replace:: VWS-Python
9682
.. |github-repository| replace:: vws-python-mock

0 commit comments

Comments
 (0)