Update requirements

pull/25756/head
Paulus Schoutsen 2019-08-07 10:35:24 -07:00
parent 0f8f4f4b54
commit a20c631410
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ def core_requirements():
"""Gather core requirements out of setup.py."""
with open("setup.py") as inp:
reqs_raw = re.search(r"REQUIRES = \[(.*?)\]", inp.read(), re.S).group(1)
return re.findall(r"'(.*?)'", reqs_raw)
return [x[1] for x in re.findall(r"(['\"])(.*?)\1", reqs_raw)]
def gather_recursive_requirements(domain, seen=None):