HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/packaging.cpython-37.pyc
B

L��g<�@s�ddlZddlZddlZddlmZmZmZmZddlm	Z	m
Z
ddlmZede
�Ze�e�Zee
eedfed�dd	�Zejd
d�e
ed�d
d��Ze
ed�dd�ZdS)�N)�NewType�Optional�Tuple�cast)�
specifiers�version)�Requirement�NormalizedExtra.)�requires_python�version_info�returncCs4|dkrdSt�|�}t�d�tt|���}||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�SpecifierSetr�parse�join�map�str)r
r�requires_python_specifier�python_version�r�A/tmp/pip-unpacked-wheel-hv55ucu3/pip/_internal/utils/packaging.py�check_requires_pythons

ri)�maxsize)�
req_stringrcCst|�S)z5Construct a packaging.Requirement object with caching)r)rrrr�get_requirement%sr)�extrarcCsttt�dd|����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	�re�sub�lower)rrrr�
safe_extra0s	r )�	functools�loggingr�typingrrrrZpip._vendor.packagingrrZ"pip._vendor.packaging.requirementsrrr	�	getLogger�__name__�logger�int�boolr�	lru_cacherr rrrr�<module>s