Skip to content

Commit a1482cd

Browse files
Merge pull request #2550 from VWS-Python/rm-conf-py-version
Remove unused version setting in conf.py
2 parents 48f079c + 94f256d commit a1482cd

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

docs/source/conf.py

Lines changed: 0 additions & 15 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"
1211
author = "Adam Dangoor"
@@ -30,19 +29,6 @@
3029
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.
3130
copybutton_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-
4632
project_metadata = importlib.metadata.metadata(distribution_name=project)
4733
requires_python = project_metadata["Requires-Python"]
4834
specifiers = SpecifierSet(specifiers=requires_python)
@@ -89,7 +75,6 @@
8975

9076
rst_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

0 commit comments

Comments
 (0)