We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d6ff0 commit ddbe854Copy full SHA for ddbe854
docs/conf.py
@@ -8,7 +8,7 @@
8
sys.path.insert(0, os.path.abspath('..'))
9
10
with open(os.path.abspath('../setup.py'), 'rt') as f:
11
- _m = re.search(r'''version=(?P<q>'|")(?P<ver>[\d\.]+)(?P=q)''', f.read())
+ _m = re.search(r'''VERSION\s*=\s*(?P<q>'|")(?P<ver>[\d\.]+)(?P=q)''', f.read())
12
if not _m:
13
raise RuntimeError('unable to read the version from setup.py')
14
version = _m.group('ver')
0 commit comments