2biPSrSSKrSSKJrJrJr SSKJr SSKJ r "SS5r g)z`Represents a wheel file and provides access to the various parts of the name that have meaning. N)DictIterableList)Tag)InvalidWheelFilenamec\rSrSrSr\R "S\R5rS\ SS4Sjr S\ \ 4Sjr S \ \ S\4S jrS \ \ S \\ \4S\4S jrS \\ S\4S jrSrg)Wheel z A wheel filez^(?P(?P[^\s-]+?)-(?P[^\s-]*?)) ((-(?P\d[^-]*?))?-(?P[^\s-]+?)-(?P[^\s-]+?)-(?P[^\s-]+?) \.whl|\.dist-info)$filenamereturnNc URRU5nU(d[US35eXlUR S5R SS5UlUR S5R SS5UlUR S5UlUR S5RS5Ul UR S 5RS5Ul UR S 5RS5Ul URVVVs1sH5o0RH"o@RHn[X4U5iM M$ M7 snnnUlg s snnnf) zH :raises InvalidWheelFilename: when the filename is invalid for a wheel z is not a valid wheel filename.name_-verbuildpyver.abiplatN) wheel_file_rematchrr groupreplacerversion build_tagsplit pyversionsabisplatsr file_tags)selfr wheel_infoxyzs ڌ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/models/wheel.py__init__Wheel.__init__s''--h7 &(3R'ST T $$V,44S#> "''.66sC@ #))'2$**7399#>$$U+11#6 %%f-33C8 #'// "1Q99ajjCaLjL9L/  s0Wheel.get_formatted_file_tags...s9.3c#hh.s)sortedr!)r"s r'get_formatted_file_tagsWheel.get_formatted_file_tags,s9$..999tagscr^[U4Sj[U555$![a [5ef=f)aReturn 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. c3P># UHupUTR;dMUv M g7fr,)r!)r.itr"s r'r0*Wheel.support_index_min..>s Modadnn9Los& &)next enumerate StopIteration ValueErrorr"r6s` r'support_index_minWheel.support_index_min0s4 MioMM M ,  s!6tag_to_prioritycB^[U4SjUR55$)aXReturn 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. c3<># UHoT;dM TUv M g7fr,)r.r/rCs r'r00Wheel.find_most_preferred_tag..Ss! ,:S_>T OC Ns  )minr!)r"r6rCs `r'find_most_preferred_tagWheel.find_most_preferred_tagBs#" ,0NN   r5cBURRU5(+$)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! isdisjointr@s r' supportedWheel.supportedWs >>,,T222r5)rrr!r rr rr)__name__ __module__ __qualname____firstlineno____doc__recompileVERBOSErr-r(rr3rintrArrIrboolrM__static_attributes__rFr5r'r r sJJ  M   ,:c:d3iC$ I 04S#X  *3hsm33r5r ) rSrTtypingrrrpip._vendor.packaging.tagsrpip._internal.exceptionsrr rFr5r'r]s' ''*9P3P3r5