mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Update requirements
This commit is contained in:
parent
0f8f4f4b54
commit
a20c631410
@ -215,7 +215,7 @@ def core_requirements():
|
|||||||
"""Gather core requirements out of setup.py."""
|
"""Gather core requirements out of setup.py."""
|
||||||
with open("setup.py") as inp:
|
with open("setup.py") as inp:
|
||||||
reqs_raw = re.search(r"REQUIRES = \[(.*?)\]", inp.read(), re.S).group(1)
|
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):
|
def gather_recursive_requirements(domain, seen=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user