mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Compute the version in the same way as setup.py does
This commit is contained in:
parent
bf41d5ca7e
commit
2b22fae990
1 changed files with 7 additions and 4 deletions
11
docs/conf.py
11
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue