summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-05-08 13:38:54 -0700
committerRyan Petrello <lists@ryanpetrello.com>2013-05-08 13:38:54 -0700
commitd1b01528c585c2728ef623849a7bc35ca4f6fa51 (patch)
tree2f867a3dcf1e4c7eca4e81c94d93de3fb93d4a44
parent8b28ac36e9f5b205633a02d33a899be99452ed30 (diff)
parent0be9146adaba1c52b47acdfb6fc88e903a457639 (diff)
downloadpecan-d1b01528c585c2728ef623849a7bc35ca4f6fa51.tar.gz
Merge pull request #214 from dhellmann/update-doc-version-automatically
Update the version in the docs from the package
-rw-r--r--docs/source/conf.py7
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.