Commits

Doug Hellmann committed 3c79948

get the version number from the packaging scripts

  • Participants
  • Parent commits 8a94c97

Comments (0)

Files changed (1)

File docs/sphinx/conf.py

 # serve to show the default.
 
 import sys, os
+import subprocess
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # built documents.
 #
 # The short X.Y version.
-version = '2.9'
+version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
+version = version.strip()
 # The full version, including alpha/beta/rc tags.
 release = version