Skip to content

Commit 73e1df1

Browse files
committed
fix sphinx version lookup problem due to versioneer switch
1 parent 859e9b0 commit 73e1df1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/sphinx/source/conf.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,13 @@ def __getattr__(cls, name):
7777
# The version info for the project you're documenting, acts as replacement for
7878
# |version| and |release|, also used in various other places throughout the
7979
# built documents.
80-
# Get the version from the version file
81-
version_file = os.path.join(os.path.dirname(__file__),
82-
'../../../pvlib/version.py')
83-
with open(version_file, 'r') as f:
84-
exec(f.read())
80+
81+
import pvlib
8582

8683
# The short X.Y version.
87-
version = __version__
84+
version = '%s' % (pvlib.__version__)
8885
# The full version, including alpha/beta/rc tags.
89-
release = __version__
86+
release = version
9087

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

0 commit comments

Comments
 (0)