From: "Michael R. Crusoe" Date: Sat, 30 Jul 2022 22:19:43 +0200 Subject: Setup the version differently when building the docs Forwarded: not-needed --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index b4117b0..a5a63be 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,6 +20,8 @@ from sphinx.application import Sphinx +from _black_version import version as __version__ + CURRENT_DIR = Path(__file__).parent @@ -65,7 +67,7 @@ def setup(app: Sphinx) -> None: # Autopopulate version # The version, including alpha/beta/rc tags, but not commit hash and datestamps -release = version("black").split("+")[0] +release = __version__ # The short X.Y version. version = release for sp in "abcfr":