Skip to content

Commit

Permalink
Build: Fix regex of version in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjr0719 committed Jun 10, 2019
1 parent fbad0f7 commit ab01896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -26,7 +26,7 @@
os.path.join(project_root, "sanic_openapi", "__init__.py"), "r", "latin1"
) as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$", fp.read(), re.M)[0]
version = re.findall(r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M)[0]
except IndexError:
raise RuntimeError("Unable to determine version.")

Expand Down

0 comments on commit ab01896

Please sign in to comment.