%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/_vendor/packaging/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/_vendor/packaging/__pycache__/metadata.cpython-312.pyc

�


_�d
@�
�F�ddlZddlZddlZddlZddlZddlZddlZddlmZm	Z	m
Z
mZmZm
Z
ejdk\rddlmZnej rddlmZn	ddlmZGd�ded	�
�Zhd�Zhd�Zd
ede	efd�Zd
e	edeeeffd�Zdej2j4deeefdefd�Zidd�dd�dd�dd�dd�dd�dd�dd �d!d!�d"d"�d#d#�d$d%�d&d'�d(d(�d)d)�d*d+�d,d-�d.d/d0d1d2d3d4d5d6d7d8d9��Zd
eeefdeeeee	efffd:�Zy#e$r
Gd�d�ZY��wxYw);�N)�Dict�List�Optional�Tuple�Union�cast)��)�	TypedDictc��eZdZd�Zy)rc��y)N�)�_args�_kwargss  �G/usr/lib/python3/dist-packages/setuptools/_vendor/packaging/metadata.py�__init_subclass__zTypedDict.__init_subclass__s���N)�__name__�
__module__�__qualname__rrrrrrs��rrc��eZdZUdZeed<eed<eed<eeed<eed<eed<eeed<eed	<eed
<eed<eed<eeed
<eed<eeed<eeed<eeed<eeed<eed<eed<eeed<eeed<eeed<eed<eeed<eeefed<eed<eeed<eeed<y)�RawMetadataaqA dictionary of raw core metadata.

    Each field in core metadata maps to a key of this dictionary (when data is
    provided). The key is lower-case and underscores are used instead of dashes
    compared to the equivalent core metadata field. Any core metadata field that
    can be specified multiple times or can hold multiple values in a single
    field have a key with a plural name.

    Core metadata fields that can be specified multiple times are stored as a
    list or dict depending on which is appropriate for the field. Any fields
    which hold multiple values in a single field are stored as a list.

    �metadata_version�name�version�	platforms�summary�description�keywords�	home_page�author�author_email�license�supported_platforms�download_url�classifiers�requires�provides�	obsoletes�
maintainer�maintainer_email�
requires_dist�
provides_dist�obsoletes_dist�requires_python�requires_external�project_urls�description_content_type�provides_extra�dynamicN)rrr�__doc__�str�__annotations__rrrrrrrs������

�I�
�L��C�y��
�L����3�i���N��K���
�L��c��"����c����3�i���3�i���C�y���O�����9����9����I�����C�y� ��s�C�x�.� �"�!���I���#�Y�rrF)�total>rr!r#rrr r*rr"r%r/r+rr2>r4r(r'r)rr&r-r,r.r3r0r$�data�returnc�f�|jd�D�cgc]}|j���c}Scc}w)zCSplit a string of comma-separate keyboards into a list of keywords.�,)�split�strip)r9�ks  r�_parse_keywordsr@�s$��#�z�z�#��/�!�A�G�G�I�/�/��/s�.c��i}|D]s}|jdd�D�cgc]}|j���}}|jdgtddt	|�z
�z�|\}}||vrtd��|||<�u|Scc}w)z?Parse a list of label/URL string pairings separated by a comma.r<��r�z duplicate labels in project urls)r=r>�extend�max�len�KeyError)r9�urls�pair�p�parts�label�urls       r�_parse_project_urlsrO�s���
�D�� ��$%)�J�J�s�A�$6�7�q�����7��7�
���b�T�S��A��E�
�N�3�4�5��
��s��D�=��=�>�>���U��A �D�K��!8s�A=�msg�sourcec��t|t�r|j�}|S|jd��}	|jdd�S#t$rtd��wxYw)zGet the body of the message.T��decode�utf8�strictzpayload in an invalid encoding)�
isinstancer6�get_payloadrT�UnicodeDecodeError�
ValueError)rPrQ�payload�bpayloads    r�_get_payloadr]�sb���&�#�����(�����/�/��/�6��	?��?�?�6�8�4�4��!�	?��=�>�>�	?�s�A�Ar!zauthor-emailr"�
classifierr&rzdescription-content-typer2zdownload-urlr%r4z	home-pager rr#r*zmaintainer-emailr+zmetadata-versionrrr)zobsoletes-distr.�platformrr1r(r-r3r'r,r0r/rr$r)zproject-urlr(z
provides-distzprovides-extrar'z
requires-distzrequires-externalzrequires-pythonrzsupported-platformrc	���i}i}t|t�rHtjj	tj
j��j|�}nGtjjtj
j��j|�}t|j��D�]�}|j�}|j|�}g}d}|D]�}t|tjjtf�sJ�t|tjj�r�g}	tjj!|�D]-\}
}	|
j#dd�d}|	j'|
|f��/|j'ttjj)|	�����|j'|���|s|||<��#t*j-|�}|�|||<��A|t.vrt1|�dk(r
|d||<��a|t2vr|||<��p|d	k(r!t1|�dk(rt5|d�||<���|d
k(r	t7|�||<���|||<���	t;||�}
|
rfd|vrCt=t|j?d��}|jAdg�jC||
g�nd|vr|dj'|
�n|
|d<	t=tJ|�|fS#t$$rd}d}Y���wxYw#t8$r	|||<Y��`wxYw#tD$rB|jAdg�j'|jGt|tH����Y��wxYw)
a�Parse a distribution's metadata.

    This function returns a two-item tuple of dicts. The first dict is of
    recognized fields from the core metadata specification. Fields that can be
    parsed and translated into Python's built-in types are converted
    appropriately. All other fields are left as-is. Fields that are allowed to
    appear multiple times are stored as lists.

    The second dict contains all other fields from the metadata. This includes
    any unrecognized fields. It also includes any fields which are expected to
    be parsed into a built-in type but were not formatted appropriately. Finally,
    any fields that are expected to appear only once but are repeated are
    included in this dict.

    )�policyTrUrV�latin1FrBrrr1rrS)&rWr6�email�parser�Parserra�compat32�parsestr�BytesParser�
parsebytes�	frozenset�keys�lower�get_all�header�Header�
decode_headerrTrY�append�make_header�_EMAIL_TO_RAW_MAPPING�get�_STRING_FIELDSrG�_LIST_STRING_FIELDSr@rOrHr]r�pop�
setdefaultrErZrX�bytesr)r9�raw�unparsed�parsedr�headers�value�valid_encoding�h�chunks�bin�encoding�raw_namer[�description_headers               r�parse_emailr��sK�� =?�C�%'�H��$������$�$�E�L�L�,A�,A�$�B�K�K�D�Q�����)�)����1F�1F�)�G�R�R�SW�X��
�&�+�+�-�(�t#���z�z�|��
�.�.��&�������#	 �A��a�%�,�,�"5�"5�s�!;�<�<�<��!�U�\�\�0�0�1�=?��%*�\�\�%?�%?��%B�	3�M�C��*��
�
�6�8�4�$*���M�M�3��/�2�	3����S����!9�!9�&�!A�B�C����Q��G#	 �P�"�H�T�N��(�,�,�T�2����#�H�T�N���~�%�#�e�*��/�!�!�H�C��M��,�
,�!�C��M���
#��E�
�a��+�E�!�H�5�C��M���
'�
'� 3�E� :��H�
�#�H�T�N�it#�t-��v�t�,�����#�%)�#�s�w�w�}�/E�%F�"��#�#�M�2�6�=�=�'��1���(�*���'�.�.�w�7�%,��M�"���S�!�8�+�+��Q.�/�#+��).��/��J�
'�!&����
'���
����M�2�.�5�5����j��u�&=��>�	
�
�s7�#K8�L�2L!�8
L		�L		�L�L�!AM,�+M,)�email.feedparserrc�email.header�
email.message�email.parser�email.policy�sys�typingrrrrrr�version_infor�
TYPE_CHECKING�typing_extensions�ImportErrorrrurvr6r@rO�message�Messageryr]rsr�rrr�<module>r�s�������
�
�;�;����v�� �
���/�	�3�<�)�5�<�F��"
�� 0�#�0�$�s�)�0�
%�d�3�i�%�D��c��N�%�P?�e�m�m�+�+�?�U�5�#�:�5F�?�3�?�:��h���N���-���=�	�
� :���N�
��y������
���y���,���*���*���F����� �&�!�"��#�$"��$�&��$�,�(��/��9��@m,�e�E�3�J�'�m,�E�+�t�C��c��N�?S�2S�,T�m,��s�	�
�
�	�s�D�D �D 

Zerion Mini Shell 1.0