Skip to content

Commit 64a156b

Browse files
committed
Fix version detector
1 parent 0ea172d commit 64a156b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def _get_version_info():
2828
if line:
2929
line = line.strip()
3030
version = re.search(
31-
r"^__version__ = '"
31+
r'^__version__ = "'
3232
r"(?P<major>\d+)"
3333
r"\.(?P<minor>\d+)"
3434
r"\.(?P<patch>\d+)"
35-
r"(?P<tag>.*)?'$",
35+
r'(?P<tag>.*)?"$',
3636
line,
3737
re.M,
3838
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def _get_version():
1515
for line in fp.readlines():
1616
if line:
1717
line = line.strip()
18-
version = re.findall(r"^__version__ = '([^']+)'$", line, re.M)
18+
version = re.findall(r'^__version__ = "([^"]+)"$', line, re.M)
1919
if version:
2020
return version[0]
2121
except IndexError:

0 commit comments

Comments
 (0)