Skip to content

Commit

Permalink
Fix version detector
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 29, 2020
1 parent 0ea172d commit 64a156b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def _get_version_info():
if line:
line = line.strip()
version = re.search(
r"^__version__ = '"
r'^__version__ = "'
r"(?P<major>\d+)"
r"\.(?P<minor>\d+)"
r"\.(?P<patch>\d+)"
r"(?P<tag>.*)?'$",
r'(?P<tag>.*)?"$',
line,
re.M,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _get_version():
for line in fp.readlines():
if line:
line = line.strip()
version = re.findall(r"^__version__ = '([^']+)'$", line, re.M)
version = re.findall(r'^__version__ = "([^"]+)"$', line, re.M)
if version:
return version[0]
except IndexError:
Expand Down

0 comments on commit 64a156b

Please sign in to comment.