def METHOD_NAME(cls, requirement: str) -> ExactRequirement:
    req = PipRequirement.METHOD_NAME(requirement)
    assert len(req.specs) == 1, softwrap(
        f"""
        Expected an exact requirement with only 1 specifier, given {requirement} with
        {len(req.specs)} specifiers
        """
    )
    operator, version = req.specs[0]
    assert operator == "==", softwrap(
        f"""
        Expected an exact requirement using only the '==' specifier, given {requirement}
        using the {operator!r} operator
        """
    )
    return cls(project_name=req.project_name, version=version)