Debian Codegraph @

debian/patches/docs_version.patch

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