Use the module version as documentation version.

This commit is contained in:
Daniele Varrazzo 2010-02-13 05:39:11 +00:00 committed by Federico Di Gregorio
parent ba1354502e
commit a856f0724e

View File

@ -50,7 +50,12 @@ copyright = u'2001-2010, Federico Di Gregorio. Documentation by Daniele Varrazzo
# The short X.Y version.
version = '2.0'
# The full version, including alpha/beta/rc tags.
release = '2.0.11'
try:
import psycopg2
release = psycopg2.__version__.split()[0]
except ImportError:
print "WARNING: couldn't import psycopg to read version."
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.