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 8a94c97 commit 3c79948Copy full SHA for 3c79948
docs/sphinx/conf.py
@@ -12,6 +12,7 @@
12
# serve to show the default.
13
14
import sys, os
15
+import subprocess
16
17
# If extensions (or modules to document with autodoc) are in another directory,
18
# add these directories to sys.path here. If the directory is relative to the
@@ -47,7 +48,8 @@
47
48
# built documents.
49
#
50
# The short X.Y version.
-version = '2.9'
51
+version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
52
+version = version.strip()
53
# The full version, including alpha/beta/rc tags.
54
release = version
55
0 commit comments