From ab01896e71075e3e59178136ecb1c6b5a00890f0 Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 8 Jun 2019 20:20:45 +0800 Subject: [PATCH] Build: Fix regex of version in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4ab3d60..039cdcc 100644 --- a/setup.py +++ b/setup.py @@ -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.")