diff --git a/setup.py b/setup.py index 87f4ad2..714a7b1 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def get_version(): version_file = os.path.join(current_dir, name, "__init__.py") with io.open(version_file, encoding="utf-8") as f: - return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1) + return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M)[1] # What packages are required for this module to be executed?