ó
    tch»  ã                   ót   • S r SSKrSSKJrJrJr  SSKJr  SSKJ	r
  SSKJr  SSKJ	r	  SSKJr   " S S	5      rg)
z`Represents a wheel file and provides access to the various parts of the
name that have meaning.
é    N)ÚDictÚIterableÚList)ÚTag)ÚInvalidWheelFilename)Úparse_wheel_filename)Ú
deprecatedc                   óÎ   • \ rS rSrSr\R                  " S\R                  5      rS\	SS4S jr
S\\	   4S jrS	\\   S\4S
 jrS	\\   S\\\4   S\4S jrS	\\   S\4S jrSrg)ÚWheelé   zA wheel filez¨^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]*?))
        ((-(?P<build>\d[^-]*?))?-(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>[^\s-]+?)
        \.whl|\.dist-info)$ÚfilenameÚreturnNc                 óh  • U R                   R                  U5      nU(       d  [        U S35      eXl        UR	                  S5      R                  SS5      U l        UR	                  S5      nSU;   a   [        U5        UR                  SS5      nX0l        UR	                  S5      U l        UR	                  S5      R                  S5      U l        UR	                  S5      R                  S5      U l        UR	                  S5      R                  S5      U l        U R                   VVVs1 s H5  oPR                    H"  o`R                     H  n[#        XVU5      iM     M$     M7     snnnU l        g! [         a,  n[        SU< SUR                  S    S	3S
SSS9   SnAGN%SnAff = fs  snnnf )zH
:raises InvalidWheelFilename: when the filename is invalid for a wheel
z is not a valid wheel filename.ÚnameÚ_Ú-ÚverzWheel filename zU is not correctly normalised. Future versions of pip will raise the following error:
r   z

zvto rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata)z25.1iŠ2  )ÚreasonÚreplacementÚgone_inÚissueNÚbuildÚpyverÚ.ÚabiÚplat)Úwheel_file_reÚmatchr   r   ÚgroupÚreplacer   r   ÚPackagingInvalidWheelNamer	   ÚargsÚversionÚ	build_tagÚsplitÚ
pyversionsÚabisÚplatsr   Ú	file_tags)Úselfr   Ú
wheel_infoÚ_versionÚeÚxÚyÚzs           Úc/var/www/djangovue.mamus.xyz/django/venv/lib/python3.13/site-packages/pip/_internal/models/wheel.pyÚ__init__ÚWheel.__init__   s†  € ð ×'Ñ'×-Ñ-¨hÓ7ˆ
ÞÜ&¨(¨Ð3RÐ'SÓTÐTØ ŒØ×$Ñ$ VÓ,×4Ñ4°S¸#Ó>ˆŒ	Ø×#Ñ# EÓ*ˆØ�(‹?ðÜ$ XÔ.ð"  ×'Ñ'¨¨SÓ1ˆHàŒØ#×)Ñ)¨'Ó2ˆŒØ$×*Ñ*¨7Ó3×9Ñ9¸#Ó>ˆŒØ×$Ñ$ UÓ+×1Ñ1°#Ó6ˆŒ	Ø×%Ñ% fÓ-×3Ñ3°CÓ8ˆŒ
ð #'§/¢/õ
Ú"1˜Q¿9½9°aÏjÍjÈŒC��aŽLÉj‰L¹9‰L¡/ó
ˆ�øô3 -ó Üà)¨(©ð 6SàŸ6™6 !™9˜+ Tð+ð
0ð #Ø÷ð ûðüô2
s   Á5E4 Ä-<F-Å4
F*Å>!F%Æ%F*c                 ó:   • [        S U R                   5       5      $ )z4Return the wheel's tags as a sorted list of strings.c              3   ó8   #   • U  H  n[        U5      v •  M     g 7f©N)Ústr)Ú.0Útags     r1   Ú	<genexpr>Ú0Wheel.get_formatted_file_tags.<locals>.<genexpr>H   s   é € Ð9ª. 3”c˜#—h�hª.ùs   ‚)Úsortedr)   )r*   s    r1   Úget_formatted_file_tagsÚWheel.get_formatted_file_tagsF   s   € äÑ9¨$¯.ª.Ó9Ó9Ð9ó    Útagsc                 ór   ^ •  [        U 4S j[        U5       5       5      $ ! [         a    [        5       ef = f)aœ  Return the lowest index that one of the wheel's file_tag combinations
achieves in the given list of supported tags.

For example, if there are 8 supported tags and one of the file tags
is first in the list, then return 0.

:param tags: the PEP 425 tags to check the wheel against, in order
    with most preferred first.

:raises ValueError: If none of the wheel's file tags match one of
    the supported tags.
c              3   óP   >#   • U  H  u  pUTR                   ;   d  M  Uv •  M     g 7fr6   )r)   )r8   ÚiÚtr*   s      €r1   r:   Ú*Wheel.support_index_min.<locals>.<genexpr>X   s    øé € ÐM¢o™d˜a¸¸d¿n¹nÑ9LŸ™¢oùs   ƒ&�	&)ÚnextÚ	enumerateÚStopIterationÚ
ValueError©r*   r@   s   ` r1   Úsupport_index_minÚWheel.support_index_minJ   s4   ø€ ð	ÜÔM¤i°¤oÓMÓMÐMøÜó 	Ü“,Ðð	ús   ƒ! ¡6Útag_to_priorityc                 óB   ^• [        U4S jU R                   5       5      $ )aX  Return the priority of the most preferred tag that one of the wheel's file
tag combinations achieves in the given list of supported tags using the given
tag_to_priority mapping, where lower priorities are more-preferred.

This is used in place of support_index_min in some cases in order to avoid
an expensive linear scan of a large list of tags.

:param tags: the PEP 425 tags to check the wheel against.
:param tag_to_priority: a mapping from tag to priority of that tag, where
    lower is more preferred.

:raises ValueError: If none of the wheel's file tags match one of
    the supported tags.
c              3   ó<   >#   • U  H  oT;   d  M
  TU   v •  M     g 7fr6   © )r8   r9   rM   s     €r1   r:   Ú0Wheel.find_most_preferred_tag.<locals>.<genexpr>m   s!   øé € ð 
Ú,: SÀ_Ñ>TÓ ˆO˜CÖ ªNùs   ƒ	�)Úminr)   )r*   r@   rM   s     `r1   Úfind_most_preferred_tagÚWheel.find_most_preferred_tag\   s#   ø€ ô" ô 
Ø,0¯NªNó
ó 
ð 	
r?   c                 óB   • U R                   R                  U5      (       + $ )z~Return whether the wheel is compatible with one of the given tags.

:param tags: the PEP 425 tags to check the wheel against.
)r)   Ú
isdisjointrJ   s     r1   Ú	supportedÚWheel.supportedq   s   € ð
 —>‘>×,Ñ,¨TÓ2Ô2Ð2r?   )r'   r$   r)   r   r   r(   r&   r#   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚreÚcompileÚVERBOSEr   r7   r2   r   r=   r   ÚintrK   r   rS   r   ÚboolrW   Ú__static_attributes__rP   r?   r1   r   r      sœ   † Ùà—J’Jð	ð 	�
‰
ó	€Mð(
 ð (
¨ô (
ðT:¨¨c©ô :ð d¨3¡ið °Cô ð$
Ø˜‘Ið
Ø04°S¸#°X±ð
à	ô
ð*3˜h s™mð 3°÷ 3r?   r   )r]   r^   Útypingr   r   r   Úpip._vendor.packaging.tagsr   Úpip._vendor.packaging.utilsr   r!   r   Úpip._internal.exceptionsÚpip._internal.utils.deprecationr	   r   rP   r?   r1   Ú<module>ri      s4   ðñó 
ß 'Ñ 'å *õõ =å 9Ý 6÷d3ò d3r?   