diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-06 13:19:33 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-06 13:19:33 -0800 |
commit | 2b22fae990513eeb4026cd0883bc2e244af8b56a (patch) | |
tree | c4a7cc949701edabc69fd9cbd958dfdf56ebbac7 /docs | |
parent | bf41d5ca7e7a38881c35bc742072b693147e8fa4 (diff) | |
download | cryptography-2b22fae990513eeb4026cd0883bc2e244af8b56a.tar.gz cryptography-2b22fae990513eeb4026cd0883bc2e244af8b56a.tar.bz2 cryptography-2b22fae990513eeb4026cd0883bc2e244af8b56a.zip |
Compute the version in the same way as setup.py does
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 11 |
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. |