§
a>v„«]4ã ól — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm
Z
ddlmZ G d„ d¦ « Zd S )
z`Represents a wheel file and provides access to the various parts of the
name that have meaning.
é )Úannotations)ÚIterable)ÚTag)ÚInvalidWheelFilename)Úparse_wheel_filenamec ó: — e Zd ZdZdd„Zdd„Zdd„Zdd„Zdd„ZdS )ÚWheelzA wheel fileÚfilenameÚstrÚreturnÚNonec óä — || _ t |¦ « }n-# t $ r }t |j d ¦ « d ‚d }~ww xY w|\ | _ }| _ | _ t |¦ « | _ d S )Nr )
r
r Ú_PackagingInvalidWheelFilenamer ÚargsÚnameÚ build_tagÚ file_tagsr Úversion)Úselfr
Ú
wheel_infoÚeÚ_versions úl/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/models/wheel.pyÚ__init__zWheel.__init__ sz € Ø ˆŒ
ð <Ý-¨hÑ7Ô7ˆJˆJøÝ-ð <ð <ð <Ý& q¤v¨a¤yÑ1Ô1°tÐ;øøøøð <øøøð ?IÑ;ˆŒ 8˜Tœ^¨T¬^ݘ8‘}”}ˆŒˆˆs ‰ ™
A£>¾Aú list[str]c ó> — t d„ | j D ¦ « ¦ « S )z4Return the wheel's tags as a sorted list of strings.c 3 ó4 K — | ]}t |¦ « V — Œd S ©N)r )Ú.0Útags r ú z0Wheel.get_formatted_file_tags.." s( è è € Ð9Ð9 3•c˜#‘h”hÐ9Ð9Ð9Ð9Ð9Ð9ó )Úsortedr )r s r Úget_formatted_file_tagszWheel.get_formatted_file_tags s! € åÐ9Ð9¨$¬.Ð9Ñ9Ô9Ñ9Ô9Ð9r" Útagsú list[Tag]Úintc óŽ ‡ — t ˆ fd„t |¦ « D ¦ « ¦ « S # t $ r t ¦ « ‚w xY w)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 ó4 •K — | ]\ }}|‰j v ¯|V — Œd S r )r )r ÚiÚtr s €r r! z*Wheel.support_index_min..2 s3 øè è € ÐMÐM™d˜a ¸¸d¼nÐ9LÐ9L˜Ð9LÐ9LÐ9LÐ9LÐMÐMr" )ÚnextÚ enumerateÚ
StopIterationÚ
ValueError©r r% s ` r Úsupport_index_minzWheel.support_index_min$ sV ø€ ð ÝÐMÐMÐMÐM¥i°¡o¤oÐMÑMÔMÑMÔMÐMøÝð ð ð Ý‘,”,Ðð øøøs ƒ'+ «AÚtag_to_priorityúdict[Tag, int]c óD ‡— t ˆfd„| j D ¦ « ¦ « S )a¨ 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 ó0 •K — | ]}|‰v ¯‰| V — Œd S r © )r r r2 s €r r! z0Wheel.find_most_preferred_tag..G s; øè è € ð
ð
Ø%(¸cÀ_Ð>TÐ>TˆO˜CÔ Ð>TÐ>TÐ>TÐ>Tð
ð
r" )Úminr )r r% r2 s `r Úfind_most_preferred_tagzWheel.find_most_preferred_tag6 s? ø€ õ" ð
ð
ð
ð
Ø,0¬Nð
ñ
ô
ñ
ô
ð
r" ú
Iterable[Tag]Úboolc ó8 — | j |¦ « S )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 Ú
isdisjointr0 s r Ú supportedzWheel.supportedK s € ð
”>×,Ò,¨TÑ2Ô2Ð2Ð2r" N)r
r r r
)r r )r% r&