Return a list of requirements and links by parsing the provided requirements file.
(requirements_file_path)
| 67 | |
| 68 | |
| 69 | def 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 | |
| 84 | def apply_vagrant_workaround(): |
nothing calls this directly
no outgoing calls
no test coverage detected