ó ïRec@sudZddlZddlmZddlmZddlmZer[ddlm Z nde fd„ƒYZ dS( s`Represents a wheel file and provides access to the various parts of the name that have meaning. iÿÿÿÿN(tTag(tInvalidWheelFilename(tMYPY_CHECK_RUNNING(tListtWheelcBsGeZdZejdejƒZd„Zd„Zd„Z d„Z RS(s A wheel files^(?P(?P.+?)-(?P.*?)) ((-(?P\d[^-]*?))?-(?P.+?)-(?P.+?)-(?P.+?) \.whl|\.dist-info)$csøˆjj|ƒ}|s0tdj|ƒƒ‚n|ˆ_|jdƒjddƒˆ_|jdƒjddƒˆ_|jdƒˆ_ |jdƒj dƒˆ_ |jd ƒj dƒˆ_ |jd ƒj dƒˆ_ ‡fd †ˆj Dƒˆ_d S( sX :raises InvalidWheelFilename: when the filename is invalid for a wheel s!{} is not a valid wheel filename.tnamet_t-tvertbuildtpyvert.tabitplatcsBh|]8}ˆjD](}ˆjD]}t|||ƒ’q qqS((tabistplatsR(t.0txtytz(tself(s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys /s N(t wheel_file_retmatchRtformattfilenametgrouptreplaceRtversiont build_tagtsplitt pyversionsRRt file_tags(RRt wheel_info((Rs‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyt__init__s cCstd„|jDƒƒS(s4Return the wheel's tags as a sorted list of strings.css|]}t|ƒVqdS(N(tstr(Rttag((s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys 6s(tsortedR(R((s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pytget_formatted_file_tags3scst‡fd†|jDƒƒS(sÜ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ˆj|ƒVqdS(N(tindex(RR#(ttags(s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pys Fs(tminR(RR'((R's‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pytsupport_index_min8scCs|jj|ƒ S(sŽReturn whether the wheel is compatible with one of the given tags. :param tags: the PEP 425 tags to check the wheel against. (Rt isdisjoint(RR'((s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyt supportedHs( t__name__t __module__t__doc__tretcompiletVERBOSERR!R%R)R+(((s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyRs    ( R.R/tpip._vendor.packaging.tagsRtpip._internal.exceptionsRtpip._internal.utils.typingRttypingRtobjectR(((s‰/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/models/wheel.pyts