관리-도구
편집 파일: requirements.cpython-311.pyc
� �܋f� � �� � d dl mZmZ d dlmZ d dlmZmZ d dlm Z d dl mZ ddlm Z mZmZmZ G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � ZdS )� )�Any�Optional)�SpecifierSet)�NormalizedName�canonicalize_name)�install_req_drop_extras)�InstallRequirement� )� Candidate�CandidateLookup�Requirement�format_namec � � e Zd Zdeddfd�Zdefd�Zdefd�Zdefd�Z de defd �Ze defd �� � Ze defd�� � Zdefd�Zdefd �Zdedefd�ZdS )�ExplicitRequirement� candidate�returnNc � � || _ d S �N�r ��selfr s �g/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/resolution/resolvelib/requirements.py�__init__zExplicitRequirement.__init__ s � �"����� c �* � t | j � � S r )�strr �r s r �__str__zExplicitRequirement.__str__ s � ��4�>�"�"�"r c �0 � | j j � d| j �d�S �N�(�))� __class__�__name__r r s r �__repr__zExplicitRequirement.__repr__ s � ��.�)�?�?�D�N�?�?�?�?r c �* � t | j � � S r )�hashr r s r �__hash__zExplicitRequirement.__hash__ s � ��D�N�#�#�#r �otherc �P � t |t � � sdS | j |j k S �NF)� isinstancer r �r r) s r �__eq__zExplicitRequirement.__eq__ s) � ��%�!4�5�5� ��5��~���0�0r c � � | j j S r )r �project_namer s r r0 z ExplicitRequirement.project_name s � � �~�*�*r c � � | j j S r )r �namer s r r2 zExplicitRequirement.name# s � � �~�"�"r c �4 � | j � � � S r )r �format_for_errorr s r r4 z$ExplicitRequirement.format_for_error( s � ��~�.�.�0�0�0r c � � | j d fS r r r s r �get_candidate_lookupz(ExplicitRequirement.get_candidate_lookup+ s � ��~�t�#�#r c � � || j k S r r r s r �is_satisfied_byz#ExplicitRequirement.is_satisfied_by. s � ��D�N�*�*r )r$ � __module__�__qualname__r r r r r% �intr( r �boolr. �propertyr r0 r2 r4 r r6 r8 � r r r r sT � � � � � �#�)� #�� #� #� #� #�#�� #� #� #� #�@�#� @� @� @� @�$�#� $� $� $� $�1�C� 1�D� 1� 1� 1� 1� �+�n� +� +� +� �X�+� �#�c� #� #� #� �X�#�1�#� 1� 1� 1� 1�$�o� $� $� $� $�+�� +�t� +� +� +� +� +� +r r c �� � e Zd Zdeddfd�Zedefd�� � Zdefd�Zdefd�Z de defd �Zde fd �Zedefd�� � Zedefd�� � Zdefd �Zdefd�Zdedefd�ZdS )�SpecifierRequirement�ireqr Nc � � |j � J d� � �|| _ d | _ d | _ t d� | j j D � � � � | _ d S )N�This is a link, not a specifierc 3 �4 K � | ]}t |� � V � �d S r �r ��.0�es r � <genexpr>z0SpecifierRequirement.__init__.<locals>.<genexpr>8 �+ � � � � Q� Q�!�!2�1�!5�!5� Q� Q� Q� Q� Q� Qr )�link�_ireq�_equal_cache�_hash� frozenset�extras�_extras�r rA s r r zSpecifierRequirement.__init__3 sV � ��y� � �"C� � � ��� �+/���$(�� � � Q� Q�t�z�?P� Q� Q� Q�Q�Q����r c �^ � | j �| j S t | j � � | _ | j S r �rM r rL r s r �_equalzSpecifierRequirement._equal: �- � ���(��$�$��� �O�O���� � r c �4 � t | j j � � S r )r rL �reqr s r r zSpecifierRequirement.__str__B s � ��4�:�>�"�"�"r c �T � | j j � dt | j j � � �d�S r )r# r$ r rL rX r s r r% zSpecifierRequirement.__repr__E s* � ��.�)�D�D�C�� ��,?�,?�D�D�D�Dr r) c �Z � t |t � � st S | j |j k S r )r, r@ �NotImplementedrU r- s r r. zSpecifierRequirement.__eq__H s* � ��%�!5�6�6� "�!�!��{�e�l�*�*r c �^ � | j �| j S t | j � � | _ | j S r �rN r'