def split_requirement(requirement: str) -> Tuple[str, str]:
    """Split a requirement like spacy>=1.2.3 into ("spacy", ">=1.2.3")."""
    req = Requirement(requirement)
    return (req.name, str(req.specifier))
Split a requirement like spacy>=1.2.3 into ("spacy", ">=1.2.3").
spacy/util.py