def _is_package_versioned(package: str) -> bool:
    """Check if the package has a version."""
    return ('==' in package
            and package not in ['pkg-resources==0.0.0', 'pkg_resources==0.0.0']
            and '-e ' not in package
            )