mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +03:00
Use the module version as documentation version.
This commit is contained in:
parent
ba1354502e
commit
a856f0724e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user