MCPcopy Create free account
hub / github.com/StackStorm/st2 / fetch_requirements

Function fetch_requirements

scripts/dist_utils_old.py:69–81  ·  view source on GitHub ↗

Return a list of requirements and links by parsing the provided requirements file.

(requirements_file_path)

Source from the content-addressed store, hash-verified

67
68
69def fetch_requirements(requirements_file_path):
70 """
71 Return a list of requirements and links by parsing the provided requirements file.
72 """
73 links = []
74 reqs = []
75 for req in parse_requirements(requirements_file_path, session=False):
76 # Note: req.url was used before 9.0.0 and req.link is used in all the recent versions
77 link = getattr(req, "link", getattr(req, "url", None))
78 if link:
79 links.append(str(link))
80 reqs.append(str(req.req))
81 return (reqs, links)
82
83
84def apply_vagrant_workaround():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected