Ë
    ˜šãj�  ã                   óP  — d Z ddlZddlZddlZ ej
                  dej                  «      Z ej
                  d«      Z ej
                  d«      Z	d„ Z
ej                  ej                  ej                  ej                  ej                  ej                   dœZ G d„ d	«      Zdad
„ Zy)zBModule for parsing and testing package version predicate strings.
é    Nz'(?i)^\s*([a-z_]\w*(?:\.[a-z_]\w*)*)(.*)z^\s*\((.*)\)\s*$z%^\s*(<=|>=|<|>|!=|==)\s*([^\s,]+)\s*$c                 ó$  — t         j                  | «      }|st        d| z  «      ‚|j                  «       \  }}t        j
                  j                  «       5  t        j
                  j                  |«      }ddd«       ||fS # 1 sw Y   |fS xY w)zVParse a single version comparison.

    Return (comparison string, StrictVersion)
    z"bad package restriction syntax: %rN)Úre_splitComparisonÚmatchÚ
ValueErrorÚgroupsÚ	distutilsÚversionÚsuppress_known_deprecationÚStrictVersion)ÚpredÚresÚcompÚverStrÚothers        úq/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/setuptools/_distutils/versionpredicate.pyÚsplitUpr      sƒ   € ô
 ×
"Ñ
" 4Ó
(€CÙÜÐ=ÀÑDÓEÐEØ—:‘:“<�L€Dˆ&Ü	×	Ñ	×	5Ñ	5Ó	7ñ 8Ü×!Ñ!×/Ñ/°Ó7ˆ÷8à�%ˆ=Ð÷8à�%ˆ=Ðús   Á BÂB)ú<z<=z==ú>z>=z!=c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚVersionPredicatea¼  Parse and test package version predicates.

    >>> v = VersionPredicate('pyepat.abc (>1.0, <3333.3a1, !=1555.1b3)')

    The `name` attribute provides the full dotted name that is given::

    >>> v.name
    'pyepat.abc'

    The str() of a `VersionPredicate` provides a normalized
    human-readable version of the expression::

    >>> print(v)
    pyepat.abc (> 1.0, < 3333.3a1, != 1555.1b3)

    The `satisfied_by()` method can be used to determine with a given
    version number is included in the set described by the version
    restrictions::

    >>> v.satisfied_by('1.1')
    True
    >>> v.satisfied_by('1.4')
    True
    >>> v.satisfied_by('1.0')
    False
    >>> v.satisfied_by('4444.4')
    False
    >>> v.satisfied_by('1555.1b3')
    False

    `VersionPredicate` is flexible in accepting extra whitespace::

    >>> v = VersionPredicate(' pat( ==  0.1  )  ')
    >>> v.name
    'pat'
    >>> v.satisfied_by('0.1')
    True
    >>> v.satisfied_by('0.2')
    False

    If any version numbers passed in do not conform to the
    restrictions of `StrictVersion`, a `ValueError` is raised::

    >>> v = VersionPredicate('p1.p2.p3.p4(>=1.0, <=1.3a1, !=1.2zb3)')
    Traceback (most recent call last):
      ...
    ValueError: invalid version number '1.2zb3'

    It the module or package name given does not conform to what's
    allowed as a legal module or package name, `ValueError` is
    raised::

    >>> v = VersionPredicate('foo-bar')
    Traceback (most recent call last):
      ...
    ValueError: expected parenthesized list: '-bar'

    >>> v = VersionPredicate('foo bar (12.21)')
    Traceback (most recent call last):
      ...
    ValueError: expected parenthesized list: 'bar (12.21)'

    c                 óô  — |j                  «       }|st        d«      ‚t        j                  |«      }|st        d|z  «      ‚|j	                  «       \  | _        }|j                  «       }|r€t        j                  |«      }|st        d|z  «      ‚|j	                  «       d   }|j                  d«      D �cg c]  }t        |«      ‘Œ c}| _	        | j                  st        d|z  «      ‚yg | _	        yc c}w )z*Parse a version predicate string.
        zempty package restrictionzbad package name in %rzexpected parenthesized list: %rr   ú,zempty parenthesized list in %rN)
Ústripr   Úre_validPackager   r   ÚnameÚre_parenÚsplitr   r   )ÚselfÚversionPredicateStrr   ÚparenÚstrÚaPreds         r   Ú__init__zVersionPredicate.__init__b   së   € ð 2×7Ñ7Ó9ÐÙ"ÜÐ8Ó9Ð9Ü×%Ñ%Ð&9Ó:ˆÙÜÐ5Ð8KÑKÓLÐLØ Ÿ<™<›>ÑˆŒ	�5Ø—‘“ˆÙÜ—N‘N 5Ó)ˆEÙÜ Ð!BÀUÑ!JÓKÐKØ—,‘,“. Ñ#ˆCØ58·Y±Y¸s³^ÖD¨Eœ �ÒDˆDŒIØ—9’9Ü Ð!AØ#6ñ"7ó 8ð 8ð ð ˆD�Iùò Es   Â8C5c                 óà   — | j                   rQ| j                   D ��cg c]  \  }}|dz   t        |«      z   ‘Œ }}}| j                  dz   dj                  |«      z   dz   S | j                  S c c}}w )Nú z (z, ú))r   r!   r   Újoin)r   ÚcondÚverÚseqs       r   Ú__str__zVersionPredicate.__str__}   sb   € Ø�9Š9Ø:>¿)¹)×D©Y¨T°3�4˜#‘:¤ C£Ó(ÐDˆCÑDØ—9‘9˜tÑ# d§i¡i°£nÑ4°sÑ:Ð:à—9‘9Ðùó Es   œA*c                 óN   — | j                   D ]  \  }}t        |   ||«      rŒ y y)zÏTrue if version is compatible with all the predicates in self.
        The parameter version must be acceptable to the StrictVersion
        constructor.  It may be either a string or StrictVersion.
        FT)r   Úcompmap)r   r	   r(   r)   s       r   Úsatisfied_byzVersionPredicate.satisfied_by„   s1   € ð
 Ÿ™ò 	‰IˆD�#Ü˜4‘= ¨#Õ.Ùð	ð ó    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r#   r+   r.   © r/   r   r   r   !   s   „ ñ>ò@ò6ór/   r   c                 ó¸  — t         €$t        j                  dt        j                  «      a | j	                  «       } t         j                  | «      }|st        d| z  «      ‚|j                  d«      xs d}|rFt        j                  j                  «       5  t        j                  j                  |«      }ddd«       |j                  d«      |fS # 1 sw Y   ŒxY w)a9  Return the name and optional version number of a provision.

    The version number, if given, will be returned as a `StrictVersion`
    instance, otherwise it will be `None`.

    >>> split_provision('mypkg')
    ('mypkg', None)
    >>> split_provision(' mypkg( 1.2 ) ')
    ('mypkg', StrictVersion ('1.2'))
    Nz=([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(?:\s*\(\s*([^)\s]+)\s*\))?$z"illegal provides specification: %ré   é   )Ú_provision_rxÚreÚcompileÚASCIIr   r   r   Úgroupr   r	   r
   r   )ÚvalueÚmr)   s      r   Úsplit_provisionr?   ‘   s·   € ô ÐÜŸ
™
ØLÜ�H‰Hóˆð �K‰K‹M€EÜ×Ñ˜EÓ"€AÙÜÐ=ÀÑEÓFÐFØ
�'‰'�!‹*Ò
˜€CÙ
Ü×Ñ×9Ñ9Ó;ñ 	7Ü×#Ñ#×1Ñ1°#Ó6ˆC÷	7à�7‰7�1‹:�sˆ?Ð÷	7ð 	7ús   Â CÃC)r3   r9   Údistutils.versionr   Úoperatorr:   r;   r   r   r   r   ÚltÚleÚeqÚgtÚgeÚner-   r   r8   r?   r4   r/   r   ú<module>rH      s¢   ðñã 	Û Û ð �"—*‘*ÐGØ‡H�Hó€ð ˆ2�:‰:Ð)Ó*€Ø�R—Z‘ZÐ HÓIÐ òð —‘ 8§;¡;°h·k±kØ—‘ 8§;¡;°h·k±kñC€÷kñ kð\ €ór/   