[Checkins] SVN: zope.pytest/trunk/doc/conf.py Set version from setup.py value.
Uli Fouquet
uli at gnufix.de
Sat Jan 15 20:30:30 EST 2011
Log message for revision 119595:
Set version from setup.py value.
Changed:
U zope.pytest/trunk/doc/conf.py
-=-
Modified: zope.pytest/trunk/doc/conf.py
===================================================================
--- zope.pytest/trunk/doc/conf.py 2011-01-16 01:17:40 UTC (rev 119594)
+++ zope.pytest/trunk/doc/conf.py 2011-01-16 01:30:30 UTC (rev 119595)
@@ -12,6 +12,7 @@
# serve to show the default.
import sys, os
+import pkg_resources
# 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
@@ -48,9 +49,9 @@
# built documents.
#
# The short X.Y version.
-version = '0.1'
+version = pkg_resources.get_distribution('zope.pytest').version
# The full version, including alpha/beta/rc tags.
-release = '0.1'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
More information about the checkins
mailing list