Skip to content

Commit

Permalink
Merge pull request #1253 from VWS-Python/rm-conf-py-version
Browse files Browse the repository at this point in the history
Remove unused version setting in conf.py
  • Loading branch information
adamtheturtle authored Feb 21, 2025
2 parents a37059e + 6ad1031 commit dc29eae
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import importlib.metadata

from packaging.specifiers import SpecifierSet
from packaging.version import Version

project = "VWS-Auth-Tools"
author = "Adam Dangoor"
Expand All @@ -30,18 +29,6 @@
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.
copybutton_exclude = ".linenos, .gp"

# The version info for the project you're documenting, acts as replacement for
# |release|, also used in various other places throughout the
# built documents.
#
# Use ``importlib.metadata.version`` as per
# https://setuptools-scm.readthedocs.io/en/latest/usage/#usage-from-sphinx.
_version_string = importlib.metadata.version(distribution_name=project)
_version = Version(version=_version_string)
# GitHub release tags have the format YYYY.MM.DD, while Python requirement
# versions may have the format YYYY.M.D for single digit months and days.
release = ".".join(f"{part:02d}" for part in _version.release)

project_metadata = importlib.metadata.metadata(distribution_name=project)
requires_python = project_metadata["Requires-Python"]
specifiers = SpecifierSet(specifiers=requires_python)
Expand Down Expand Up @@ -89,7 +76,6 @@

rst_prolog = f"""
.. |project| replace:: {project}
.. |release| replace:: {release}
.. |minimum-python-version| replace:: {minimum_python_version}
.. |github-owner| replace:: VWS-Python
.. |github-repository| replace:: vws-auth-tools
Expand Down

0 comments on commit dc29eae

Please sign in to comment.