Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pip/_vendor/packaging/__pycache__/version.cpython-312.pyc

�

4ΜgR?�
���dZddlmZddlZddlZddlmZmZmZm	Z	m
Z
mZddlm
Z
mZmZmZgd�Ze
eeefdfZeeee
eeffZeee
ee
eefe
eeeefffdffZe
ee
edfeeeefZeeegefZGd	�d
e�Zdd�ZGd
�de�ZGd�d�ZdZeZ 	Gd�de�Z!						dd�Z"ejFd�Z$dd�Z%														dd�Z&y)zN
.. testsetup::

    from pip._vendor.packaging.version import parse, Version
�)�annotationsN)�Any�Callable�
NamedTuple�SupportsInt�Tuple�Union�)�Infinity�InfinityType�NegativeInfinity�NegativeInfinityType)�VERSION_PATTERN�parse�Version�InvalidVersion.c�J�eZdZUded<ded<ded<ded<ded<d	ed
<y)�_Version�int�epoch�tuple[int, ...]�release�tuple[str, int] | None�dev�pre�post�LocalType | None�localN)�__name__�
__module__�__qualname__�__annotations__���H/usr/local/lib/python3.12/site-packages/pip/_vendor/packaging/version.pyrr&s%���J�
��	��	��
 � ��r$rrc��t|�S)z�Parse the given version string.

    >>> parse('1.0.dev1')
    <Version('1.0.dev1')>

    :param version: The version string to parse.
    :raises InvalidVersion: When the version string is not a valid version.
    )r)�versions r%rr/s���7��r$c��eZdZdZy)rz�Raised when a version string is not a valid version.

    >>> Version("invalid")
    Traceback (most recent call last):
        ...
    packaging.version.InvalidVersion: Invalid version: 'invalid'
    N)rr r!�__doc__r#r$r%rr;s��r$rc�P�eZdZUded<dd�Zdd�Zdd�Zd
d�Zdd�Zdd�Z	d
d	�Z
y
)�_BaseVersionztuple[Any, ...]�_keyc�,�t|j�S�N)�hashr,��selfs r%�__hash__z_BaseVersion.__hash__Hs���D�I�I��r$c�`�t|t�stS|j|jkSr.��
isinstancer+�NotImplementedr,�r1�others  r%�__lt__z_BaseVersion.__lt__N�%���%��.�!�!��y�y�5�:�:�%�%r$c�`�t|t�stS|j|jkSr.r4r7s  r%�__le__z_BaseVersion.__le__T�%���%��.�!�!��y�y�E�J�J�&�&r$c�`�t|t�stS|j|jk(Sr.r4r7s  r%�__eq__z_BaseVersion.__eq__Zr=r$c�`�t|t�stS|j|jk\Sr.r4r7s  r%�__ge__z_BaseVersion.__ge__`r=r$c�`�t|t�stS|j|jkDSr.r4r7s  r%�__gt__z_BaseVersion.__gt__fr:r$c�`�t|t�stS|j|jk7Sr.r4r7s  r%�__ne__z_BaseVersion.__ne__lr=r$N��returnr)r8r+rG�bool)r8�objectrGrH)rr r!r"r2r9r<r?rArCrEr#r$r%r+r+Es+��
���&�'�'�'�&�'r$r+a�
    v?
    (?:
        (?:(?P<epoch>[0-9]+)!)?                           # epoch
        (?P<release>[0-9]+(?:\.[0-9]+)*)                  # release segment
        (?P<pre>                                          # pre-release
            [-_\.]?
            (?P<pre_l>alpha|a|beta|b|preview|pre|c|rc)
            [-_\.]?
            (?P<pre_n>[0-9]+)?
        )?
        (?P<post>                                         # post release
            (?:-(?P<post_n1>[0-9]+))
            |
            (?:
                [-_\.]?
                (?P<post_l>post|rev|r)
                [-_\.]?
                (?P<post_n2>[0-9]+)?
            )
        )?
        (?P<dev>                                          # dev release
            [-_\.]?
            (?P<dev_l>dev)
            [-_\.]?
            (?P<dev_n>[0-9]+)?
        )?
    )
    (?:\+(?P<local>[a-z0-9]+(?:[-_\.][a-z0-9]+)*))?       # local version
c��eZdZUdZej
dezdzejejz�Z	de
d<dd�Zdd�Zdd�Z
edd	��Zedd
��Zedd��Zedd��Zedd
��Zedd��Zedd��Zedd��Zedd��Zedd��Zedd��Zedd��Zedd��Zedd��Zy) ra�This class abstracts handling of a project's versions.

    A :class:`Version` instance is comparison aware and can be compared and
    sorted using the standard Python interfaces.

    >>> v1 = Version("1.0a5")
    >>> v2 = Version("1.0")
    >>> v1
    <Version('1.0a5')>
    >>> v2
    <Version('1.0')>
    >>> v1 < v2
    True
    >>> v1 == v2
    False
    >>> v1 > v2
    False
    >>> v1 >= v2
    False
    >>> v1 <= v2
    True
    z^\s*z\s*$�CmpKeyr,c��|jj|�}|std|�d���t|j	d�rt|j	d��ndt
d�|j	d�jd�D��t|j	d�|j	d	��t|j	d
�|j	d�xs|j	d��t|j	d
�|j	d��t|j	d����|_
t|jj|jj|jj|jj|jj |jj"�|_y)aCInitialize a Version object.

        :param version:
            The string representation of a version which will be parsed and normalized
            before use.
        :raises InvalidVersion:
            If the ``version`` does not conform to PEP 440 in any way then this
            exception will be raised.
        zInvalid version: '�'rrc3�2K�|]}t|����y�wr.)r��.0�is  r%�	<genexpr>z#Version.__init__.<locals>.<genexpr>�s����L�*K�Q�#�a�&�*K���r�.�pre_l�pre_n�post_l�post_n1�post_n2�dev_l�dev_nr)rrrrrrN)�_regex�searchrr�groupr�tuple�split�_parse_letter_version�_parse_local_version�_version�_cmpkeyrrrrrrr,)r1r'�matchs   r%�__init__zVersion.__init__�sR�����"�"�7�+��� �#5�g�Y�a�!@�A�A�!�/4�{�{�7�/C�#�e�k�k�'�*�+���L�%�+�+�i�*@�*F�*F�s�*K�L�L�%�e�k�k�'�&:�E�K�K��<P�Q�&����H�%�u�{�{�9�'=�'W����Y�AW��&�e�k�k�'�&:�E�K�K��<P�Q�&�u�{�{�7�';�<�	
��
���M�M����M�M�!�!��M�M����M�M����M�M����M�M���

��	r$c��d|�d�S)z�A representation of the Version that shows all internal state.

        >>> Version('1.0.0')
        <Version('1.0.0')>
        z
<Version('z')>r#r0s r%�__repr__zVersion.__repr__�s���D�6��%�%r$c�Z�g}|jdk7r|j|j�d��|jdjd�|jD���|j�1|jdjd�|jD���|j
�|jd|j
���|j�|jd|j���|j�|jd	|j���dj|�S)
zA string representation of the version that can be rounded-tripped.

        >>> str(Version("1.0a5"))
        '1.0a5'
        r�!rTc3�2K�|]}t|����y�wr.��str�rP�xs  r%rRz"Version.__str__.<locals>.<genexpr>������;�l��c�!�f�l�rS�c3�2K�|]}t|����y�wr.rlrns  r%rRz"Version.__str__.<locals>.<genexpr>�s���� :��A��Q���rSz.postz.dev�+)r�append�joinrrrrr�r1�partss  r%�__str__zVersion.__str__�s������:�:��?��L�L�D�J�J�<�q�)�*�	���S�X�X�;�d�l�l�;�;�<��8�8���L�L���� :���� :�:�;��9�9� ��L�L�5�����,�-��8�8���L�L�4����z�*�+��:�:�!��L�L�1�T�Z�Z�L�)�*��w�w�u�~�r$c�.�|jjS)zThe epoch of the version.

        >>> Version("2.0.0").epoch
        0
        >>> Version("1!2.0.0").epoch
        1
        )rcrr0s r%rz
Version.epochs���}�}�"�"�"r$c�.�|jjS)adThe components of the "release" segment of the version.

        >>> Version("1.2.3").release
        (1, 2, 3)
        >>> Version("2.0.0").release
        (2, 0, 0)
        >>> Version("1!2.0.0.post0").release
        (2, 0, 0)

        Includes trailing zeroes but not the epoch or any pre-release / development /
        post-release suffixes.
        )rcrr0s r%rzVersion.releases���}�}�$�$�$r$c�.�|jjS)aThe pre-release segment of the version.

        >>> print(Version("1.2.3").pre)
        None
        >>> Version("1.2.3a1").pre
        ('a', 1)
        >>> Version("1.2.3b1").pre
        ('b', 1)
        >>> Version("1.2.3rc1").pre
        ('rc', 1)
        )rcrr0s r%rzVersion.pre&s���}�}� � � r$c�d�|jjr|jjdSdS)z�The post-release number of the version.

        >>> print(Version("1.2.3").post)
        None
        >>> Version("1.2.3.post1").post
        1
        r
N)rcrr0s r%rzVersion.post5s*��)-�
�
�(:�(:�t�}�}�!�!�!�$�D��Dr$c�d�|jjr|jjdSdS)z�The development number of the version.

        >>> print(Version("1.2.3").dev)
        None
        >>> Version("1.2.3.dev1").dev
        1
        r
N)rcrr0s r%rzVersion.dev@s*��(,�}�}�'8�'8�t�}�}� � ��#�B�d�Br$c��|jjr,djd�|jjD��Sy)z�The local version segment of the version.

        >>> print(Version("1.2.3").local)
        None
        >>> Version("1.2.3+abc").local
        'abc'
        rTc3�2K�|]}t|����y�wr.rlrns  r%rRz Version.local.<locals>.<genexpr>Us����@�,?�q�C��F�,?�rSN)rcrrur0s r%rz
Version.localKs3���=�=����8�8�@�D�M�M�,?�,?�@�@�@�r$c�>�t|�jdd�dS)z�The public portion of the version.

        >>> Version("1.2.3").public
        '1.2.3'
        >>> Version("1.2.3+abc").public
        '1.2.3'
        >>> Version("1.2.3+abc.dev1").public
        '1.2.3'
        rsr
r)rmr`r0s r%�publiczVersion.publicYs���4�y���s�A�&�q�)�)r$c���g}|jdk7r|j|j�d��|jdjd�|jD���dj|�S)a]The "base version" of the version.

        >>> Version("1.2.3").base_version
        '1.2.3'
        >>> Version("1.2.3+abc").base_version
        '1.2.3'
        >>> Version("1!1.2.3+abc.dev1").base_version
        '1!1.2.3'

        The "base version" is the public version of the project without any pre or post
        release markers.
        rrjrTc3�2K�|]}t|����y�wr.rlrns  r%rRz'Version.base_version.<locals>.<genexpr>{rprSrq)rrtrurrvs  r%�base_versionzVersion.base_versionfs\�����:�:��?��L�L�D�J�J�<�q�)�*�	���S�X�X�;�d�l�l�;�;�<��w�w�u�~�r$c�>�|jduxs|jduS)aTWhether this version is a pre-release.

        >>> Version("1.2.3").is_prerelease
        False
        >>> Version("1.2.3a1").is_prerelease
        True
        >>> Version("1.2.3b1").is_prerelease
        True
        >>> Version("1.2.3rc1").is_prerelease
        True
        >>> Version("1.2.3dev1").is_prerelease
        True
        N)rrr0s r%�
is_prereleasezVersion.is_prereleases!���x�x�t�#�;�t�x�x�t�';�;r$c��|jduS)z�Whether this version is a post-release.

        >>> Version("1.2.3").is_postrelease
        False
        >>> Version("1.2.3.post1").is_postrelease
        True
        N)rr0s r%�is_postreleasezVersion.is_postrelease�s���y�y��$�$r$c��|jduS)z�Whether this version is a development release.

        >>> Version("1.2.3").is_devrelease
        False
        >>> Version("1.2.3.dev1").is_devrelease
        True
        N)rr0s r%�
is_devreleasezVersion.is_devrelease�s���x�x�t�#�#r$c�T�t|j�dk\r|jdSdS)zqThe first item of :attr:`release` or ``0`` if unavailable.

        >>> Version("1.2.3").major
        1
        r
r��lenrr0s r%�majorz
Version.major�s'��#&�d�l�l�"3�q�"8�t�|�|�A��?�a�?r$c�T�t|j�dk\r|jdSdS)z�The second item of :attr:`release` or ``0`` if unavailable.

        >>> Version("1.2.3").minor
        2
        >>> Version("1").minor
        0
        �r
rr�r0s r%�minorz
Version.minor��'��#&�d�l�l�"3�q�"8�t�|�|�A��?�a�?r$c�T�t|j�dk\r|jdSdS)z�The third item of :attr:`release` or ``0`` if unavailable.

        >>> Version("1.2.3").micro
        3
        >>> Version("1").micro
        0
        �r�rr�r0s r%�microz
Version.micro�r�r$N)r'rmrG�None)rGrmrF)rGr)rGr)rGz
int | None)rG�
str | None)rGrH)rr r!r)�re�compiler�VERBOSE�
IGNORECASEr\r"rfrhrx�propertyrrrrrrr�r�r�r�r�r�r�r�r#r$r%rr�sj���.�R�Z�Z��/�1�G�;�R�Z�Z�"�-�-�=W�
X�F�
�L�$
�L&��B�#��#��
%��
%��!��!��E��E��C��C������
*��
*�����0�<��<� �%��%��$��$��@��@��@��@��@��@r$c��|r>|�d}|j�}|dk(rd}n|dk(rd}n
|dvrd}n|dvrd	}|t|�fS|s|rd	}|t|�fSy)
Nr�alpha�a�beta�b)�cr�preview�rc)�rev�rr)�lowerr)�letter�numbers  r%rara�s�����>��F������
�W���F�
�v�
��F�
�.�
.��F�
�|�
#��F��s�6�{�"�"��f����s�6�{�"�"�r$z[\._-]c�R�|�%td�tj|�D��Sy)zR
    Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
    Nc3�rK�|]/}|j�s|j�n
t|����1y�wr.)�isdigitr�r)rP�parts  r%rRz'_parse_local_version.<locals>.<genexpr>�s/����
�>��!%����D�J�J�L�C��I�=�>�s�57)r_�_local_version_separatorsr`)rs r%rbrb�s4��
���
�1�7�7��>�
�
�	
�r$c��ttttjd�t|�����}|�|�	|�t
}n|�t}n|}|�t
}n|}|�t}	n|}	|�t
}
ntd�|D��}
|||||	|
fS)Nc��|dk(S)Nrr#)ros r%�<lambda>z_cmpkey.<locals>.<lambda>s��A��Fr$c3�TK�|] }t|t�r|dfnt|f���"y�w)rqN)r5rr
rOs  r%rRz_cmpkey.<locals>.<genexpr>/s,����
�NS��z�!�S�)�Q��G�0@�!�/D�D�e�s�&()r_�reversed�list�	itertools�	dropwhiler
r)rrrrrr�_release�_pre�_post�_dev�_locals           r%rdrd�s������i�)�)�*:�H�W�<M�N�O�P��H��{�t�|���"2��

�������|�#3�����{�"*�����}�/���
�NS�
�
���(�D�%��v�5�5r$)r'rmrGr)r�r�r�z str | bytes | SupportsInt | NonerGr)rr�rGr)rrrrrrrrrrrrrGrK)'r)�
__future__rr�r��typingrrrrrr	�_structuresrrr
r�__all__rrm�	LocalType�CmpPrePostDevType�CmpLocalTyperKrH�VersionComparisonMethodrr�
ValueErrorrr+�_VERSION_PATTERNrrrar�r�rbrdr#r$r%�<module>r�s����#��	�G�G�W�W�
C���%��S��/�3�&�'�	��,�(<�e�C��H�o�M�N����	�%��c�3�h���';�U�3��8�_�'L�!M�M�
N�PS�
S�T�V���
��	�#�s�(�O������
��#�F�F�#3�T�#9�:���z��	��Z��+'�+'�`��>#��	�b@�l�b@�J	 �� � @� �� �F'�B�J�J�y�1��	�;6��;6�
�;6�
 �;6�!�	;6�

 �;6��
;6��;6r$

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists