OwlCyberSecurity - MANAGER
Edit File: packaging.cpython-312.pyc
� "��g^ � �" � d dl Z d dlZd dlZd dlmZmZmZmZ d dlm Z m Z d dlmZ ede � Z ej e� Z e j$ d�� dee d eed f defd�� Z e j$ d �� de defd�� Zde defd�Zy)� N)�NewType�Optional�Tuple�cast)� specifiers�version��Requirement�NormalizedExtra� )�maxsize�requires_python�version_info.�returnc � � | �yt j | � }t j dj t t |� � � }||v S )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 �SpecifierSetr �parse�join�map�str)r r �requires_python_specifier�python_versions �L/opt/hc_python/lib/python3.12/site-packages/pip/_internal/utils/packaging.py�check_requires_pythonr sH � � ��� *� 7� 7�� H���]�]�3�8�8�C��\�,B�#C�D�N��6�6�6� i � req_stringc � � t | � S )z5Construct a packaging.Requirement object with cachingr )r s r �get_requirementr &