def parse_requirement_file(filename): from pdm.models.pip_shims import install_req_from_parsed_requirement finder = get_finder([]) ireqs = [ install_req_from_parsed_requirement(pr) for pr in parse_requirements(filename, finder.session, finder) ] return ireqs, finder
def parse_requirement_file( filename: str, ) -> Tuple[List[InstallRequirement], PackageFinder]: from pdm.models.pip_shims import install_req_from_parsed_requirement finder = get_finder([]) ireqs = [ install_req_from_parsed_requirement(pr) for pr in parse_requirements(filename, finder.session, finder) ] return ireqs, finder