3 ig @sddlZddlZddlmZddlmZddlmZmZddl m Z ddl m Z m Z ddlmZddlmZdd lmZdd lmZejeZeeeed fed d dZeedddZeedddZejddeedddZ dS)N)Message) FeedParser)OptionalTuple) pkg_resources) specifiersversion) Requirement) Distribution)NoneMetadataError) display_path.)requires_python version_inforeturncCs4|dkr dStj|}tjdjtt|}||kS)a Check if the given Python version matches a "Requires-Python" specifier. :param version_info: A 3-tuple of ints representing a Python major-minor-micro version to check (e.g. `sys.version_info[:3]`). :return: `True` if the given Python version satisfies the requirement. Otherwise, return `False`. :raises InvalidSpecifier: If `requires_python` has an invalid format. NT.)r SpecifierSetrparsejoinmapstr)r rrequires_python_specifierpython_versionrs"