From f03bf34c6dfb730868b28d3b0885f6bf8e787fe5 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Fri, 21 Feb 2025 12:17:13 +0000 Subject: [PATCH] Remove unused version setting in conf.py --- docs/source/conf.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7453c820..ec22eed5 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -6,7 +6,6 @@ import importlib.metadata from packaging.specifiers import SpecifierSet -from packaging.version import Version project = "VWS-Python-Mock" author = "Adam Dangoor" @@ -34,18 +33,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) @@ -90,7 +77,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-python-mock