Skip to content

Commit

Permalink
fix sphinx version lookup problem due to versioneer switch
Browse files Browse the repository at this point in the history
  • Loading branch information
wholmgren committed Apr 20, 2016
1 parent 859e9b0 commit 73e1df1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/sphinx/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,13 @@ def __getattr__(cls, name):
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
# Get the version from the version file
version_file = os.path.join(os.path.dirname(__file__),
'../../../pvlib/version.py')
with open(version_file, 'r') as f:
exec(f.read())

import pvlib

# The short X.Y version.
version = __version__
version = '%s' % (pvlib.__version__)
# The full version, including alpha/beta/rc tags.
release = __version__
release = version

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

0 comments on commit 73e1df1

Please sign in to comment.