Skip to content

Commit

Permalink
Set version string using module
Browse files Browse the repository at this point in the history
  • Loading branch information
DPeterK committed Jan 27, 2016
1 parent ba01c93 commit f375210
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import sys
import os

import cf_units

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -55,10 +57,11 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
current_version = cf_units.__version__
# The short X.Y version.
version = '1.0'
version = current_version.split('+')[0]
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = current_version

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

0 comments on commit f375210

Please sign in to comment.