Skip to content

Commit 3287eb9

Browse files
committed
Adapt Sphinx config to autogenerated version info
Addresses the remaining part for issue #86.
1 parent 0816136 commit 3287eb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_version():
5454
try:
5555
import re
5656
# From http://stackoverflow.com/a/3619714/17498
57-
cached_version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
57+
cached_version = re.search(r"^version = ['\"]([^'\"]*)['\"]",
5858
cached_version_line, re.M).group(1)
5959
except:
6060
raise RuntimeError("Unable to find version in %s" % version_file)

0 commit comments

Comments
 (0)