Skip to content

Commit

Permalink
DOC: Fix version display
Browse files Browse the repository at this point in the history
Ensure meaningful version is displayed
  • Loading branch information
bashtage committed Mar 14, 2018
1 parent ad9efc6 commit 5114fa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@
author = 'Kevin Sheppard'

# The short X.Y version.
version = '.'.join(map(str, LooseVersion(randomgen.__version__).version[:2]))

version = randomgen.__version__
if '+' in version:
version = version.split('+')
version = ''.join((version[0], ' (+', version[1].split('.')[0], ')'))
# The full version, including alpha/beta/rc tags.
release = randomgen.__version__


# -- General configuration ---------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down
1 change: 0 additions & 1 deletion github_deploy_key_bashtage_core_prng.enc

This file was deleted.

0 comments on commit 5114fa2

Please sign in to comment.