Skip to content

Commit 3c79948

Browse files
committed
get the version number from the packaging scripts
1 parent 8a94c97 commit 3c79948

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/sphinx/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# serve to show the default.
1313

1414
import sys, os
15+
import subprocess
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the
@@ -47,7 +48,8 @@
4748
# built documents.
4849
#
4950
# The short X.Y version.
50-
version = '2.9'
51+
version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
52+
version = version.strip()
5153
# The full version, including alpha/beta/rc tags.
5254
release = version
5355

0 commit comments

Comments
 (0)