1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: "Michael R. Crusoe" <crusoe@debian.org>
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":
|