Commit 0f6eb255 authored by Stefan Behnel's avatar Stefan Behnel

fix version extraction in Sphinx build

parent c14df60d
...@@ -55,7 +55,7 @@ copyright = '2011, Stefan Behnel, Robert Bradshaw, Dag Sverre Seljebotn, Greg Ew ...@@ -55,7 +55,7 @@ copyright = '2011, Stefan Behnel, Robert Bradshaw, Dag Sverre Seljebotn, Greg Ew
release = '0.15' release = '0.15'
try: try:
_match_version = re.compile(r'^\s*_*version\s*_*\s*=\s*["\']([^"\']+)["\'].*').match _match_version = re.compile(r'^\s*_*version\s*_*\s*=\s*["\']([^"\']+)["\'].*').match
with open(os.path.join(os.path.dirname(__file__), '..', 'Cython', '__init__.py')) as _f: with open(os.path.join(os.path.dirname(__file__), '..', 'Cython', 'Shadow.py')) as _f:
for line in _f: for line in _f:
_m = _match_version(line) _m = _match_version(line)
if _m: if _m:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment