1j | d Z ddlZddlmZmZmZ ddlmZ ddlm Z
ddlmZ ddlm Z ddl
mZ G d d ZdS )
z`Represents a wheel file and provides access to the various parts of the
name that have meaning.
N)DictIterableList)Tag)InvalidWheelFilename)parse_wheel_filename)
deprecatedc e Zd ZdZ ej dej ZdeddfdZ de
e fdZde
e de
fd Zde
e d
eee
f de
fdZdee defdZdS )
WheelzA wheel filez^(?P(?P[^\s-]+?)-(?P[^\s-]*?))
((-(?P\d[^-]*?))?-(?P[^\s-]+?)-(?P[^\s-]+?)-(?P[^\s-]+?)
\.whl|\.dist-info)$filenamereturnNc F j | }|st | d | _ | d dd _ | d }d|v rc t | n<# t $ r/}t d|d|j
d d d
dd
Y d}~nd}~ww xY w| dd }| _ | d _ | d
d _ | d
d _ | d
d _ fd j D _ dS )zX
:raises InvalidWheelFilename: when the filename is invalid for a wheel
z is not a valid wheel filename.name_-verzWheel 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)z25.1i2 )reasonreplacementgone_inissueNbuildpyver.abiplatc Z h | ]'}j D ]}j D ]}t ||| (S )abisplatsr ).0xyzselfs l/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/pip/_internal/models/wheel.py z!Wheel.__init__..B s\
49
67dj
IJC1aLL
)
wheel_file_rematchr r groupreplacer r PackagingInvalidWheelNamer argsversion build_tagsplit
pyversionsr r file_tags)r$ r
wheel_info_versiones ` r% __init__zWheel.__init__ s '--h77
U&('S'S'STTT
$$V,,44S#>> ##E**(??
$X....,
+( + +6!9+ + +
0 #
''S11H#))'22$**73399#>>$$U++11#66 %%f--33C88
"&/
s ?B
C%CCc > 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)str)r tags r% z0Wheel.get_formatted_file_tags..H s( 993c#hh999999r' )sortedr2 )r$ s r% get_formatted_file_tagszWheel.get_formatted_file_tagsF s! 99$.999999r' tagsc t fdt | 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 r9 )r2 )r itr$ s r% r<