Your IP : 3.15.223.129


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyc

�
�Rec@s3dZddlmZddlZddlmZddlZddlZddlZddl	m
Z
mZddlm
Z
mZmZddlmZdd	lmZmZdd
lmZmZeje�Zde
fd��YZd
e
fd��YZde
fd��YZde
fd��YZdddgZdZ dZ!ej"d�Z#ej"d�Z$ddddddd d!d"d#d$fZ%ddddd%ddd d!d"d#d$d&d'd(d)d*fZ&d(d)d*d&d'fZ'ddddd%ddd d!d"d#d+d,d$d&d'd-d.d/d0d1d2fZ(d/d0d1d-d2d+d,d.fZ)ddddd%ddd d!d"d#d+d,d$d&d'd-d.d/d0d1d2d3d4d5d6d7fZ*d3d7d4d5d6fZ+e*d8d*d)fZ,d8fZ-e.�Z/e/j0e%�e/j0e&�e/j0e(�e/j0e*�e/j0e,�ej"d9�Z1d:�Z2d;�Z3d<�e/D�Z4d=�e4j5�D�Z6d0d-d/fZ7d1fZ8dfZ9dd&d(d*d)d-d/d0d2d.d%d5d7d6fZ:d.fZ;d fZ<d"d+ddfZ=e>�Z?ej"d>�Z@eAd?�ZBd@e>fdA��YZCdBZDdCZEdDZFdEe>fdF��YZGdS(Gu�Implementation of the Metadata for Python packages PEPs.

Supports all metadata formats (1.0, 1.1, 1.2, 1.3/2.1 and withdrawn 2.0).
i����(tunicode_literalsN(tmessage_from_filei(tDistlibExceptiont__version__(tStringIOtstring_typest	text_type(t	interpret(textract_by_keyt
get_extras(t
get_schemetPEP440_VERSION_REtMetadataMissingErrorcBseZdZRS(uA required metadata is missing(t__name__t
__module__t__doc__(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRstMetadataConflictErrorcBseZdZRS(u>Attempt to read or write metadata fields that are conflictual.(R
RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR st MetadataUnrecognizedVersionErrorcBseZdZRS(u Unknown metadata version number.(R
RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR$stMetadataInvalidErrorcBseZdZRS(uA metadata value is invalid(R
RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR(suMetadatauPKG_INFO_ENCODINGuPKG_INFO_PREFERRED_VERSIONuutf-8u1.1u

       \|u	
        uMetadata-VersionuNameuVersionuPlatformuSummaryuDescriptionuKeywordsu	Home-pageuAuthoruAuthor-emailuLicenseuSupported-Platformu
ClassifieruDownload-URLu	ObsoletesuProvidesuRequiresu
MaintaineruMaintainer-emailuObsoletes-DistuProject-URLu
Provides-Distu
Requires-DistuRequires-PythonuRequires-ExternaluPrivate-VersionuObsoleted-ByuSetup-Requires-Distu	ExtensionuProvides-ExtrauDescription-Content-Typeu"extra\s*==\s*("([^"]+)"|'([^']+)')cCsd|dkrtS|dkr tS|dkr0tS|dkrDttS|dkrTtSt|��dS(Nu1.0u1.1u1.2u1.3u2.1u2.0(u1.3u2.1(t_241_FIELDSt_314_FIELDSt_345_FIELDSt_566_FIELDSt_426_FIELDSR(tversion((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_version2fieldlistpsc
Cs#d�}g}xB|j�D]4\}}|gddfkrCqn|j|�qWddddddg}xm|D]e}|tkr�d|kr�|jd�tjd	|�n|tkr�d|kr�|jd�tjd
|�n|tkr!d|kr!|jd�tjd|�n|t	krYd|krY|jd�tjd|�n|t	kr�d|kr�|d
kr�|jd�tjd|�q�n|t
krsd|krs|jd�tjd|�qsqsWt|�dkr�|dSt|�dkr'tjd|�td��nd|ko?||t
�}d|koZ||t�}d|kou||t�}d|ko�||t�}	t|�t|�t|�t|	�dkr�td��n|r|r|r|	rt|krtSn|rdS|rdS|rdSdS(u5Detect the best version depending on the fields used.cSs%x|D]}||krtSqWtS(N(tTruetFalse(tkeystmarkerstmarker((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_has_marker�s
uUNKNOWNu1.0u1.1u1.2u1.3u2.0u2.1uRemoved 1.0 due to %suRemoved 1.1 due to %suRemoved 1.2 due to %suRemoved 1.3 due to %suDescriptionuRemoved 2.1 due to %suRemoved 2.0 due to %siiu)Out of options - unknown metadata set: %suUnknown metadata setu,You used incompatible 1.1/1.2/2.0/2.1 fieldsN(titemstNonetappendRtremovetloggertdebugRRRRtlenRt_314_MARKERSt_345_MARKERSt_566_MARKERSt_426_MARKERStinttPKG_INFO_PREFERRED_VERSION(
tfieldsRRtkeytvaluetpossible_versionstis_1_1tis_1_2tis_2_1tis_2_0((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt
_best_version~s`	






0cCs+i|]!}||j�jdd��qS(u-u_(tlowertreplace(t.0tname((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pys
<dictcomp>�s	cCsi|]\}}||�qS(((R8tattrtfield((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pys
<dictcomp>�s	u[^A-Za-z0-9.]+cCsG|r9tjd|�}tjd|jdd��}nd||fS(uhReturn the distribution name with version.

    If for_filename is true, return a filename-escaped form.u-u u.u%s-%s(t	_FILESAFEtsubR7(R9Rtfor_filename((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_get_name_and_version�s!tLegacyMetadatacBs4eZdZddddd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zed
�Zd�Zd�Zd�Zd�Zed�Zed�Zdd�Zd�Zed�Zed�Zed�Zd�Zd�Zd�Zd�Z d�Z!d�Z"RS( uoThe legacy metadata of a release.

    Supports versions 1.0, 1.1, 1.2, 2.0 and 1.3/2.1 (auto-detected). You can
    instantiate the class with one of these arguments (or none):
    - *path*, the path to a metadata file
    - *fileobj* give a file-like object with metadata as content
    - *mapping* is a dict-like object
    - *scheme* is a version scheme name
    udefaultcCs�|||gjd�dkr-td��ni|_g|_d|_||_|dk	rm|j|�nB|dk	r�|j|�n&|dk	r�|j	|�|j
�ndS(Niu'path, fileobj and mapping are exclusive(tcountR!t	TypeErrort_fieldstrequires_filest
_dependenciestschemetreadt	read_filetupdatetset_metadata_version(tselftpathtfileobjtmappingRF((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__init__�s				
cCst|j�|jd<dS(NuMetadata-Version(R5RC(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRJscCs|jd||f�dS(Nu%s: %s
(twrite(RKRMR9R/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_write_fieldscCs
|j|�S(N(tget(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__getitem__scCs|j||�S(N(tset(RKR9R/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__setitem__scCsA|j|�}y|j|=Wntk
r<t|��nXdS(N(t
_convert_nameRCtKeyError(RKR9t
field_name((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__delitem__s

cCs%||jkp$|j|�|jkS(N(RCRV(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__contains__scCs8|tkr|S|jdd�j�}tj||�S(Nu-u_(t_ALL_FIELDSR7R6t_ATTR2FIELDRR(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRVscCs |tks|tkrgSdS(NuUNKNOWN(t_LISTFIELDSt_ELEMENTSFIELD(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_default_value%scCs3|jdkrtjd|�Stjd|�SdS(Nu1.0u1.1u
(u1.0u1.1(tmetadata_versiont_LINE_PREFIX_PRE_1_2R=t_LINE_PREFIX_1_2(RKR/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_remove_line_prefix*scCs$|tkr||St|��dS(N(R\tAttributeError(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__getattr__0scCst|d|d|�S(uhReturn the distribution name with version.

        If filesafe is true, return a filename-escaped form.uNameuVersion(R?(RKtfilesafe((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytget_fullname;scCs|j|�}|tkS(u+return True if name is a valid metadata key(RVR[(RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytis_fieldAscCs|j|�}|tkS(N(RVR](RKR9((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytis_multi_fieldFscCs;tj|ddd�}z|j|�Wd|j�XdS(u*Read the metadata values from a file path.urtencodinguutf-8N(tcodecstopenRHtclose(RKtfilepathtfp((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRGJscCst|�}|d|jd<x�tD]�}||kr<q$n|tkr�|j|�}|tkr�|dk	r�g|D]}t|jd��^qv}n|j	||�q$||}|dk	r$|dkr$|j	||�q$q$W|j
�}|r�|n|d|d<dS(u,Read the metadata values from a file object.umetadata-versionuMetadata-Versionu,uUNKNOWNuDescriptionN(RRCR[R]tget_allt_LISTTUPLEFIELDSR!ttupletsplitRTtget_payload(RKtfileobtmsgR;tvaluesR/tbody((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRHRs
+
cCs>tj|ddd�}z|j||�Wd|j�XdS(u&Write the metadata fields to filepath.uwRjuutf-8N(RkRlt
write_fileRm(RKRntskip_unknownRo((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRPnscCs<|j�x+t|d�D]}|j|�}|rT|dgdgfkrTqn|tkr�|j||dj|��qn|tkr�|dkr�|jdkr�|jdd�}q�|jdd	�}n|g}n|t	krg|D]}dj|�^q�}nx!|D]}|j|||�qWqWd
S(u0Write the PKG-INFO format data to a file object.uMetadata-VersionuUNKNOWNu,uDescriptionu1.0u1.1u
u	
        u	
       |N(u1.0u1.1(
RJRRRR^RQtjoinR]R`R7Rq(RKt
fileobjectRzR;RwR/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRyvs$
%
cs��fd�}|sn^t|d�rRxL|j�D]}||||�q4Wn$x!|D]\}}|||�qYW|r�x*|j�D]\}}|||�q�WndS(u�Set metadata values from the given iterable `other` and kwargs.

        Behavior is like `dict.update`: If `other` has a ``keys`` method,
        they are looped over and ``self[key]`` is assigned ``other[key]``.
        Else, ``other`` is an iterable of ``(key, value)`` iterables.

        Keys that don't match a metadata field or that have an empty value are
        dropped.
        cs2|tkr.|r.�j�j|�|�ndS(N(R\RTRV(R.R/(RK(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_set�sukeysN(thasattrRR (RKtothertkwargsR}tktv((RKs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRI�s
cCs|j|�}|tks'|dkr�t|ttf�r�t|t�rwg|jd�D]}|j�^q\}q�g}nF|tkr�t|ttf�r�t|t�r�|g}q�g}nt	j
tj�r�|d}t
|j�}|tkrR|d	k	rRx�|D];}|j|jd�d�st	jd|||�qqWq�|tkr�|d	k	r�|j|�s�t	jd|||�q�q�|tkr�|d	k	r�|j|�s�t	jd|||�q�q�n|tkr|dkr|j|�}qn||j|<d	S(
u"Control then set a metadata field.uPlatformu,uNameu;iu$'%s': '%s' is not valid (field '%s')u.'%s': '%s' is not a valid version (field '%s')uDescriptionN(RVR^t
isinstancetlistRrRRststripR]R$tisEnabledFortloggingtWARNINGR
RFt_PREDICATE_FIELDSR!tis_valid_matchertwarningt_VERSIONS_FIELDStis_valid_constraint_listt_VERSION_FIELDStis_valid_versiont_UNICODEFIELDSRcRC(RKR9R/R�tproject_nameRF((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRT�s@+		

		cCs|j|�}||jkr@|tkr<|j|�}n|S|tkr]|j|}|S|tkr�|j|}|dkr�gSg}xE|D]=}|tkr�|j|�q�|j|d|df�q�W|S|t	kr|j|}t
|t�r|jd�Sn|j|S(uGet a metadata field.iiu,N(
RVRCt_MISSINGR_R�R]R!RqR"R^R�RRs(RKR9tdefaultR/trestval((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRR�s.



csu|j�gg}}x*dD]"}||kr|j|�qqW|rx|gkrxddj|�}t|��nx*dD]"}||kr|j|�qqW|ddkr�||fSt|j���fd	�}x�t|ft�jft	�j
ffD]b\}}xS|D]K}	|j|	d
�}
|
d
k	r||
�r|jd
|	|
f�qqWqW||fS(ukCheck if the metadata is compliant. If strict is True then raise if
        no Name or Version are provideduNameuVersionumissing required metadata: %su, u	Home-pageuAuthoruMetadata-Versionu1.2cs5x.|D]&}�j|jd�d�stSqWtS(Nu;i(R�RsRR(R/R�(RF(s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytare_valid_constraintss
uWrong value for '%s': %s(uNameuVersion(u	Home-pageuAuthorN(
RJR"R{RR
RFR�R�R�R�R�RRR!(RKtstricttmissingtwarningsR:RvR�R-t
controllerR;R/((RFs�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytcheck�s2




	
"cCs�|j�t|d�}i}xx|D]p}|sC||jkr't|}|dkrj||||<q�g||D]}dj|�^qu||<q'q'W|S(uReturn fields as a dict.

        Field names will be converted to use the underscore-lowercase style
        instead of hyphen-mixed case (i.e. home_page instead of Home-page).
        This is as per https://www.python.org/dev/peps/pep-0566/#id17.
        uMetadata-Versionuproject_urlu,(RJRRCt_FIELD2ATTRR{(RKtskip_missingR-tdataRXR.tu((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyttodict s


1cCsN|ddkr:x'dD]}||kr||=qqWn|dc|7<dS(NuMetadata-Versionu1.1u	ObsoletesuRequiresuProvidesu
Requires-Dist(u	ObsoletesuRequiresuProvides((RKtrequirementsR;((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytadd_requirements7s

cCstt|d��S(NuMetadata-Version(R�R(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRBsccs x|j�D]}|Vq
WdS(N(R(RKR.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__iter__EscCs!g|j�D]}||^q
S(N(R(RKR.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRwIscCs'g|j�D]}|||f^q
S(N(R(RKR.((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR LscCsd|jj|j|jfS(Nu
<%s %s %s>(t	__class__R
R9R(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt__repr__OsN(#R
RRR!RORJRQRSRURYRZRVR_RcReRRgRhRiRGRHRPRyRIRTR�RRR�R�R�RR�RwR R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR@�s>																	,,					upydist.jsonu
metadata.jsonuMETADATAtMetadatacBs�eZdZejd�Zejdej�ZeZ	ejd�Z
dZdeZ
idId6dJd6dKd	6Zd
ZdZiedLfd6edMfd6e	dNfd6e
dOfd	6ZdPZdQdQdQdd�ZedR�ZdQefZdQefZi
defd6defd6ed6ed6ed6defd6ed6ed6ed6ed 6d!efd"6dSd$6dTd6Z[[d&�ZdQd'�Zd(�Zed)��Z ed*��Z!e!j"d+��Z!dQdQd,�Z#ed-��Z$ed.��Z%e%j"d/��Z%d0�Z&d1�Z'd2�Z(d3�Z)i
d4d6d5d6d6dU6d9d	6d:d;6d<dV6d@dW6dCdX6d#d$6d!dY6Z*dE�Z+dQdQe,e-dF�Z.dG�Z/dH�Z0RS(Zu�
    The metadata of a release. This implementation uses 2.0 (JSON)
    metadata where possible. If not possible, it wraps a LegacyMetadata
    instance which handles the key-value metadata format.
    u
^\d+(\.\d+)*$u!^[0-9A-Z]([0-9A-Z_.-]*[0-9A-Z])?$u	.{1,2047}u2.0udistlib (%s)unameuversionulegacyusummaryuqname version license summary description author author_email keywords platform home_page classifiers download_urluwextras run_requires test_requires build_requires dev_requires provides meta_requires obsoleted_by supports_environmentsumetadata_versionu_legacyu_datauschemeudefaultcCs�|||gjd�dkr-td��nd|_d|_||_|dk	r�y|j||�||_Wq�tk
r�td|d|�|_|j	�q�Xn�d}|r�t
|d��}|j�}WdQXn|r�|j�}n|dkri|jd6|j
d6|_n�t|t�s?|jd�}ny)tj|�|_|j|j|�Wn9tk
r�td	t|�d|�|_|j	�nXdS(
Niu'path, fileobj and mapping are exclusiveRNRFurbumetadata_versionu	generatoruutf-8RM(RAR!RBt_legacyt_dataRFt_validate_mappingRR@tvalidateRlRGtMETADATA_VERSIONt	GENERATORR�Rtdecodetjsontloadst
ValueErrorR(RKRLRMRNRFR�tf((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRO�s>			



ulicenseukeywordsu
Requires-Disturun_requiresuSetup-Requires-Distubuild_requiresudev_requiresu
test_requiresu
meta_requiresuProvides-Extrauextrasumodulesu
namespacesuexportsucommandsu
ClassifieruclassifiersuDownload-URLu
source_urluMetadata-Versionc
Cs�tj|d�}tj|d�}||kr�||\}}|jr�|dkrs|dkrgdn|�}q�|jj|�}q�|dkr�dn|�}|dkr�|jj||�}q�t�}|}|jjd�}	|	r�|dkr|	jd	|�}q�|dkrH|	jd
�}	|	r�|	j||�}q�q�|	jd�}	|	sr|jjd�}	n|	r�|	j||�}q�n||kr�|}q�nQ||kr�tj||�}n0|jr�|jj|�}n|jj|�}|S(
Nucommon_keysumapped_keysucommandsuexportsumodulesu
namespacesuclassifiersu
extensionsupython.commandsupython.detailsupython.exports(ucommandsuexportsumodulesu
namespacesuclassifiers(tobjectt__getattribute__R�R!RRR�(
RKR.tcommontmappedtlktmakertresultR/tsentineltd((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR��sF				cCso||jkrk|j|\}}|p.|j|krk|j|�}|shtd||f��qhqkndS(Nu.'%s' is an invalid value for the '%s' property(tSYNTAX_VALIDATORSRFtmatchR(RKR.R/RFtpatternt
exclusionstm((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt_validate_value�scCs�|j||�tj|d�}tj|d�}||kr||\}}|jr~|dkrnt�n||j|<q�|d
kr�||j|<q�|jjdi�}|dkr�||d	<q�|dkr�|jd
i�}|||<q�|jdi�}|||<n�||kr4tj|||�nn|dkr|t	|t
�r||j�}|rp|j�}qyg}q|n|jr�||j|<n
||j|<dS(Nucommon_keysumapped_keysucommandsuexportsumodulesu
namespacesuclassifiersu
extensionsupython.commandsupython.detailsupython.exportsukeywords(ucommandsuexportsumodulesu
namespacesuclassifiers(
R�R�R�R�R!tNotImplementedErrorR�t
setdefaultt__setattr__R�RR�Rs(RKR.R/R�R�R�t_R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR��s>			


	cCst|j|jt�S(N(R?R9RR(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytname_and_version#scCsd|jr|jd}n|jjdg�}d|j|jf}||kr`|j|�n|S(Nu
Provides-Distuprovidesu%s (%s)(R�R�R�R9RR"(RKR�ts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytprovides's	cCs*|jr||jd<n
||jd<dS(Nu
Provides-Distuprovides(R�R�(RKR/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�2s	c
CsL|jr|}n6g}t|p$g|j�}x�|D]�}d|kr^d|kr^t}nZd|krst}n|jd�|k}|r�|jd�}|r�t||�}q�n|r7|j|d�q7q7WxodD]g}d|}	|	|kr�|j|	�|jjd|g�}|j|j	|d	|d
|��q�q�W|S(u�
        Base method to get dependencies, given a set of extras
        to satisfy and an optional environment context.
        :param reqts: A list of sometimes-wanted dependencies,
                      perhaps dependent on extras and environment.
        :param extras: A list of optional components being requested.
        :param env: An optional environment for marker evaluation.
        uextrauenvironmenturequiresubuildudevutestu:%s:u%s_requirestextrastenv(ubuildudevutest(
R�R	R�RRRRtextendR#R�tget_requirements(
RKtreqtsR�R�R�R�tincludeRR.te((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�9s0			
		


cCs|jr|j�S|jS(N(R�t_from_legacyR�(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt
dictionarycs	
cCs)|jrt�nt|j|j�SdS(N(R�R�RR�tDEPENDENCY_KEYS(RK((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytdependenciesis		cCs&|jrt�n|jj|�dS(N(R�R�R�RI(RKR/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�ps		c	Cs�|jd�|jkr$t��ng}xH|jj�D]7\}}||kr:||krq|j|�qqq:q:W|r�ddj|�}t|��nx-|j�D]\}}|j|||�q�WdS(Numetadata_versionuMissing metadata items: %su, (	RRR�RtMANDATORY_KEYSR R"R{RR�(	RKRNRFR�R.R�RvR�R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�wscCs`|jrF|jjt�\}}|s-|r\tjd||�q\n|j|j|j�dS(Nu#Metadata: missing: %s, warnings: %s(R�R�RR$R�R�R�RF(RKR�R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR��s		cCs6|jr|jjt�St|j|j�}|SdS(N(R�R�RRR�t
INDEX_KEYS(RKR�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR��s	c
Cs3|jr|jst�i|jd6|jd6}|jjt�}xFdD]>}||krL|dkrsd	}n|}||||<qLqLW|jd
g�}|dgkr�g}n||d<ddf}xE|D]=\}}||kr�||r�i||d6g||<q�q�W|j|d<i}i}	|S(Numetadata_versionu	generatorunameuversionulicenseusummaryudescriptionu
classifieruclassifiersuKeywordsuukeywordsu
requires_disturun_requiresusetup_requires_distubuild_requiresurequiresuprovides(unameuversionulicenseusummaryudescriptionu
classifier(u
requires_disturun_requires(usetup_requires_distubuild_requires(	R�R�tAssertionErrorR�R�R�RRRR�(
RKR�tlmdR�tnktkwRtoktauthort
maintainer((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR��s2


		
	
uNameuVersionuLicenseu
extensionsupython.detailsuSummaryuDescriptionudescriptionu	Home-pageupython.projectuproject_urlsuHomeuAuthorucontactsiuAuthor-emailuemailcCsQd�}|jr|js"t�t�}|j}x�|jj�D]�\}}t|t�s||kr�||||<q�qD|}t}x=|D]5}y||}Wq�t	t
fk
r�t}Pq�Xq�W|rD|||<qDqDW||j|j
�}	||j|j�}
|jr-t|j�|d<nt|	�|d<t|
�|d<|S(NcSs�t�}x�|D]�}|jd�}|jd�}|d}x�|D]�}|ri|ri|j|�qEd}|r�d|}n|r�|r�d||f}q�|}n|jdj||f��qEWqW|S(Nuextrauenvironmenturequiresuu
extra == "%s"u(%s) and %su;(RTRRtaddR{(tentriesR�R�textraR�trlisttrR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pytprocess_entries�s"	



	$uProvides-Extrau
Requires-DistuSetup-Requires-Dist(R�R�R�R@tLEGACY_MAPPINGR R�RrRRWt
IndexErrorRtrun_requirest
meta_requirestbuild_requirestdev_requiresR�tsorted(RKR�R�tnmdR�R�R�tfoundR�tr1tr2((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt
_to_legacy�s2			
		c
Cs||gjd�dkr*td��n|j�|r�|jrO|j}n|j�}|rw|j|d|�q|j|d|�n�|jr�|j�}n	|j	}|r�t
j||dtdddt�n@t
j|dd	��)}t
j||dtdddt�WdQXdS(
Niu)Exactly one of path and fileobj is neededRztensure_asciitindentit	sort_keysuwuutf-8(RAR!R�R�R�R�RPRyR�R�R�tdumpRRkRl(RKRLRMtlegacyRzt	legacy_mdR�R�((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyRP�s&
			
cCs�|jr|jj|�n�|jjdg�}d}x0|D](}d|kr>d|kr>|}Pq>q>W|dkr�i|d6}|jd|�n*t|d�t|�B}t|�|d<dS(Nurun_requiresuenvironmentuextraurequiresi(R�R�R�R�R!tinsertRTR�(RKR�R�talwaystentrytrset((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�s	

cCs;|jpd}|jpd}d|jj|j||fS(Nu	(no name)u
no versionu<%s %s %s (%s)>(R9RR�R
R`(RKR9R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�s(((ulegacy((ulegacy(ulegacy(ulegacy(u_legacyu_datauschemeN(unameuversionulicenseukeywordsusummary(uDownload-URLN(uMetadata-VersionN(u
extensionsupython.detailsulicense(u
extensionsupython.projectuproject_urlsuHome(u
extensionsupython.projectucontactsiuname(u
extensionsupython.projectucontactsiuemail(u
extensionsupython.detailsuclassifiers(1R
RRtretcompiletMETADATA_VERSION_MATCHERtItNAME_MATCHERRtVERSION_MATCHERtSUMMARY_MATCHERR�RR�R�R�R�R�t	__slots__R!RORTtcommon_keysR�t	none_listtdictt	none_dicttmapped_keysR�R�R�tpropertyR�R�tsetterR�R�R�R�R�R�R�R�R�RRRPR�R�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyR�Ys�




	,




	+
	'*					
	2	(HRt
__future__RRktemailRR�R�R�tRRtcompatRRRRRtutilRR	RR
Rt	getLoggerR
R$RRRRt__all__tPKG_INFO_ENCODINGR,R�RbRaRRR'RR(RR*RR)RTR[RItEXTRA_RERR5R\R R�R�R�R�R]RqR^R�R�R�R<RR?R@tMETADATA_FILENAMEtWHEEL_METADATA_FILENAMEtLEGACY_METADATA_FILENAMER�(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/distlib/metadata.pyt<module>	s�																	
		




		J									
�i

?>