Skip to content

Commit

Permalink
Merge pull request #15 from frispete/master
Browse files Browse the repository at this point in the history
Don't include comma in _parse_setup_py regexp
  • Loading branch information
saschpe committed Apr 5, 2015
2 parents 030fcef + 2c2c727 commit 367eda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py2pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ def _parse_setup_py(file, data):
match = re.search("ext_modules", contents)
if match:
data["is_extension"] = True
match = re.search("scripts\s*=\s*(\[.*?\]),", contents, flags=re.DOTALL)
match = re.search("scripts\s*=\s*(\[.*?\])", contents, flags=re.DOTALL)
if match:
data["scripts"] = eval(match.group(1))
match = re.search("test_suite\s*=\s*(.*)", contents)
if match:
data["test_suite"] = eval(match.group(1))
match = re.search("install_requires\s*=\s*(\[.*?\]),", contents, flags=re.DOTALL)
match = re.search("install_requires\s*=\s*(\[.*?\])", contents, flags=re.DOTALL)
if match:
data["install_requires"] = eval(match.group(1))
match = re.search("extras_require\s*=\s*(\{.*?\}),", contents, flags=re.DOTALL)
match = re.search("extras_require\s*=\s*(\{.*?\})", contents, flags=re.DOTALL)
if match:
data["extras_require"] = eval(match.group(1))

Expand Down

0 comments on commit 367eda8

Please sign in to comment.