Skip to content

Commit

Permalink
Read version number from scot
Browse files Browse the repository at this point in the history
  • Loading branch information
mbillingr committed Sep 21, 2015
1 parent 739e7ed commit 50bb1cb
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,18 @@
# built documents.
#
# The short X.Y version.
version = '0.1'
#version = '0.1'
# The full version, including alpha/beta/rc tags.
release = '0.1.0'
#release = '0.1.0'

version = 'n/a'
release = 'n/a'

from scot import __version__ as release

_vn = release.split('.')

version = '.'.join(_vn[:-1])

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 50bb1cb

Please sign in to comment.