Maintain version info in a single place.

http://stackoverflow.com/a/2073599/647002
This commit is contained in:
medmunds
2013-03-03 11:39:12 -08:00
parent 618729b444
commit 230011f818
4 changed files with 11 additions and 6 deletions

View File

@@ -16,7 +16,9 @@ import sys, os
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
execfile('../djrill/_version.py')
# -- General configuration -----------------------------------------------------
@@ -48,9 +50,9 @@ copyright = u'2013, Djrill contributors (see AUTHORS.txt)'
# built documents.
#
# The short X.Y version.
version = '0.3'
version = __minor_version__
# The full version, including alpha/beta/rc tags.
release = '0.3.1'
release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.