(requirements)
Yield Requires-Dist: strings for parsed requirements strings.
Yield Requires-Dist: strings for parsed requirements strings.
Yield Requires - Dist : strings for parsed requirements strings .
def convert_requirements(requirements):
    """Yield Requires-Dist: strings for parsed requirements strings."""
    for req in requirements:
        parsed_requirement = pkg_resources.Requirement.parse(req)
        spec = requires_to_requires_dist(parsed_requirement)
        extras = ",".join(sorted(parsed_requirement.extras))
        if extras:
            extras = "[%s]" % extras
        yield (parsed_requirement.project_name + extras + spec)
def convert_requirements ( requirements ) : for req in requirements : parsed_requirement = pkg_resources . Requirement . parse ( req ) spec = requires_to_requires_dist ( parsed_requirement ) extras = "," . join ( sorted ( parsed_requirement . extras ) ) if extras : extras = "[%s]" % extras yield ( parsed_requirement . project_name + extras + spec )