zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
U
H=®dÔ
ã@sTdZddlZddlmZddlmZddlmZer@ddlm    Z    Gdd„de
ƒZ dS)    z`Represents a wheel file and provides access to the various parts of the
name that have meaning.
éN)ÚTag)ÚInvalidWheelFilename)ÚMYPY_CHECK_RUNNING)ÚListc@s>eZdZdZe dej¡Zdd„Zdd„Z    dd„Z
d    d
„Z d S) ÚWheelz A wheel filez^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
        ((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
        \.whl|\.dist-info)$cs¨ˆj |¡}|std |¡ƒ‚|ˆ_| d¡ dd¡ˆ_| d¡ dd¡ˆ_| d¡ˆ_    | d¡ 
d¡ˆ_ | d    ¡ 
d¡ˆ_ | d
¡ 
d¡ˆ_ ‡fd d „ˆj Dƒˆ_d S)zX
        :raises InvalidWheelFilename: when the filename is invalid for a wheel
        z!{} is not a valid wheel filename.ÚnameÚ_ú-ÚverÚbuildÚpyverÚ.ÚabiÚplatcs0h|](}ˆjD]}ˆjD]}t|||ƒ’qqqS©)ÚabisÚplatsr)Ú.0ÚxÚyÚz©ÚselfrúQD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/models/wheel.pyÚ    <setcomp>.s ÿz!Wheel.__init__.<locals>.<setcomp>N)Ú wheel_file_reÚmatchrÚformatÚfilenameÚgroupÚreplacerÚversionÚ    build_tagÚsplitÚ
pyversionsrrÚ    file_tags)rrÚ
wheel_inforrrÚ__init__s ÿ 
ÿzWheel.__init__cCstdd„|jDƒƒS)z4Return the wheel's tags as a sorted list of strings.css|]}t|ƒVqdS©N)Ústr©rÚtagrrrÚ    <genexpr>6sz0Wheel.get_formatted_file_tags.<locals>.<genexpr>)Úsortedr%rrrrÚget_formatted_file_tags3szWheel.get_formatted_file_tagscst‡fdd„|jDƒƒS)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.
        c3s |]}|ˆkrˆ |¡VqdSr()Úindexr*©Útagsrrr,Fsz*Wheel.support_index_min.<locals>.<genexpr>)Úminr%©rr1rr0rÚsupport_index_min8szWheel.support_index_mincCs|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%Ú
isdisjointr3rrrÚ    supportedHszWheel.supportedN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚreÚcompileÚVERBOSErr'r.r4r6rrrrrsür) r:r;Úpip._vendor.packaging.tagsrÚpip._internal.exceptionsrÚpip._internal.utils.typingrÚtypingrÚobjectrrrrrÚ<module>s