aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-07 12:26:33 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-07 12:26:33 -0800
commitd7e04ae2f45c99034d564fd6a7747bf216d00ea9 (patch)
tree3aa52344b3c0a9c4f7457a281acba849a31655dc /docs/conf.py
parentffa8b4d5fedad8f9c1fdbd05a2da8fb2679168af (diff)
parent168c29d6d74060b0d9f592b740f8913cc5d07c5e (diff)
downloadcryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.tar.gz
cryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.tar.bz2
cryptography-d7e04ae2f45c99034d564fd6a7747bf216d00ea9.zip
Merge branch 'master' into setup-install-extension
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 5dbcdab8..00660314 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -60,10 +60,13 @@ copyright = '2013-2014, Individual Contributors'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-# The short X.Y version.
-version = '0.1dev'
-# The full version, including alpha/beta/rc tags.
-release = '0.1dev'
+
+base_dir = os.path.join(os.path.dirname(__file__), os.pardir)
+about = {}
+with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:
+ exec(f.read(), about)
+
+version = release = about["__version__"]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.