diff options
author | Doug Hellmann <doug.hellmann@dreamhost.com> | 2013-05-08 14:07:01 -0400 |
---|---|---|
committer | Doug Hellmann <doug.hellmann@dreamhost.com> | 2013-05-08 14:46:35 -0400 |
commit | 0be9146adaba1c52b47acdfb6fc88e903a457639 (patch) | |
tree | 2f867a3dcf1e4c7eca4e81c94d93de3fb93d4a44 /docs | |
parent | 8b28ac36e9f5b205633a02d33a899be99452ed30 (diff) | |
download | pecan-0be9146adaba1c52b47acdfb6fc88e903a457639.tar.gz |
Update the version in the docs from the package
Use pkg_resources to get the version of the pecan
package instead of maintaining the version string
in two places separately.
Change-Id: I0970ef262054347ed9964431130fd60fdf4e7112
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index e2bdefb..4b89f31 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,6 +11,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import pkg_resources + import sys import os @@ -49,9 +51,10 @@ copyright = u'2010, Jonathan LaCour' # built documents. # # The short X.Y version. -version = '0.3.0' +dist = pkg_resources.get_distribution('pecan') +version = release = dist.version # The full version, including alpha/beta/rc tags. -release = '0.3.0' +#release = '0.3.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |