def splitUp(pred):
    """Parse a single version comparison.

    Return (comparison string, StrictVersion)
    """
    res = re_splitComparison.match(pred)
    if not res:
        raise ValueError("bad package restriction syntax: %r" % pred)
    comp, verStr = res.groups()
    with version.suppress_known_deprecation():
        other = version.StrictVersion(verStr)
    return (comp, other)
Parse a single version comparison.

    Return (comparison string, StrictVersion)
    
product/gradle-plugin/src/main/python/setuptools/_distutils/versionpredicate.py