7i<ddlZddlZddlZddlmZmZmZmZddlm Z m Z ddl m Z ede ZejeZdee deedfd efd Zej*d d e d e fdZde d efdZy)N)NewTypeOptionalTuplecast) specifiersversion RequirementNormalizedExtrarequires_python version_info.returnc|ytj|}tjdj t t |}||vS)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. T.)r SpecifierSetrparsejoinmapstr)r r requires_python_specifierpython_versions f/mnt/ssd/data/python-lab/ChefSystem/venv/lib/python3.12/site-packages/pip/_internal/utils/packaging.pycheck_requires_pythonrsH * 7 7 H]]388C\,B#CDN 6 66i)maxsize req_stringct|S)z5Construct a packaging.Requirement object with cachingr )rs rget_requirementr%s z ""rextrachtttjdd|j S)aDConvert an arbitrary string to a standard 'extra' name Any runs of non-alphanumeric characters are replaced with a single '_', and the result is always lowercased. This function is duplicated from ``pkg_resources``. Note that this is not the same to either ``canonicalize_name`` or ``_egg_link_name``. z[^A-Za-z0-9.-]+_)rr resublower)rs r safe_extrar%0s( (93!F!L!L!N OOr) functoolsloggingr"typingrrrrpip._vendor.packagingrr"pip._vendor.packaging.requirementsr rr getLogger__name__loggerintboolr lru_cacherr%rrr2s 115:+S1   8 $7c]727S/7 7.S!## #"# Pc Po Pr