We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e79a27 commit 27a1fd3Copy full SHA for 27a1fd3
doc/conf.py
@@ -13,7 +13,17 @@
13
project = 'Slycot'
14
copyright = '2023, Slycot Developers'
15
author = 'Slycot Developers'
16
-release = '0.6'
+
17
+# Version information - read from the source code
18
+import re
19
20
+# Get the version number for this commmit (including alpha/beta/rc tags)
21
+release = re.sub('^v', '', os.popen('git describe').read().strip())
22
23
+# The short X.Y.Z version
24
+version = re.sub(r'(\d+\.\d+\.\d+(.post\d+)?)(.*)', r'\1', release)
25
26
+print("version %s, release %s" % (version, release))
27
28
# -- General configuration ---------------------------------------------------
29
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
0 commit comments