Skip to content

Commit

Permalink
handle version in docs automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Saul committed Sep 10, 2018
1 parent ade904e commit 58cd3e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@

# -- Project information -----------------------------------------------------

from ripser import __version__

project = u'Ripser.py'
copyright = u'2018, (Documentation) Christopher Tralie and Nathaniel Saul'
author = u'Christopher Tralie and Nathaniel Saul'

# The short X.Y version
version = u'0.3'
version = __version__
# The full version, including alpha/beta/rc tags
release = u'0.3.0'
release = __version__


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


import re
VERSIONFILE="persim/_version.py"
VERSIONFILE="ripser/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
Expand Down

0 comments on commit 58cd3e4

Please sign in to comment.