ok

Mini Shell

Direktori : /opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyo

�
�2{Yc@s�dZddlmZddlZddlmZddlZddlZddlZddl	m
Z
mZddlm
Z
mZmZddlmZdd	lmZmZdd
lmZmZeje�Zde
fd��YZd
e
fd��YZde
fd��YZde
fd��YZdddgZdZ dZ!ej"d�Z#dddddddd d!d"d#fZ$ddddd$dddd d!d"d#d%d&d'd(d)fZ%d'd(d)d%d&fZ&ddddd$dddd d!d"d*d+d#d%d&d,d-d.d/d0d1fZ'd.d/d0d,d1d*d+d-fZ(ddddd$dddd d!d"d*d+d#d%d&d,d-d.d/d0d1d2d3d4d5d6fZ)d2d6d3d4d5fZ*e+�Z,e,j-e$�e,j-e%�e,j-e'�e,j-e)�ej"d7�Z.d8�Z/d9�Z0idd:6dd;6dd<6dd=6d$d>6dd?6dd@6ddA6d dB6d!dC6d"dD6d*dE6d+dF6d#dG6d%dH6d&dI6d,dJ6d.dK6d/dL6d4dM6d0dN6d1dO6d)dP6d(dQ6d'dR6d-dS6d2dT6d3dU6d5dV6d6dW6Z1d/d,d.fZ2d0fZ3dfZ4dd%d'd)d(d,d.d/d1d-d$d4d6d5fZ5d-fZ6dfZ7d!d*ddfZ8e9�Z:ej"dX�Z;e<dY�Z=dZe9fd[��YZ>d\Z?d]e9fd^��YZ@dS(_uImplementation of the Metadata for Python packages PEPs.

Supports all metadata formats (1.0, 1.1, 1.2, and 2.0 experimental).
i����(tunicode_literalsN(tmessage_from_filei(tDistlibExceptiont__version__(tStringIOtstring_typest	text_type(t	interpret(textract_by_keyt
get_extras(t
get_schemetPEP426_VERSION_REtMetadataMissingErrorcBseZdZRS(uA required metadata is missing(t__name__t
__module__t__doc__(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRstMetadataConflictErrorcBseZdZRS(u>Attempt to read or write metadata fields that are conflictual.(R
RR(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR st MetadataUnrecognizedVersionErrorcBseZdZRS(u Unknown metadata version number.(R
RR(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR$stMetadataInvalidErrorcBseZdZRS(uA metadata value is invalid(R
RR(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR(suMetadatauPKG_INFO_ENCODINGuPKG_INFO_PREFERRED_VERSIONuutf-8u1.1u

       \|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-Extrau"extra\s*==\s*("([^"]+)"|'([^']+)')cCsP|dkrtS|dkr tS|dkr0tS|dkr@tSt|��dS(Nu1.0u1.1u1.2u2.0(t_241_FIELDSt_314_FIELDSt_345_FIELDSt_426_FIELDSR(tversion((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_version2fieldlistfsc	Csd�}g}xB|j�D]4\}}|gddfkrCqn|j|�qWddddg}x�|D]�}|tkr�d|kr�|jd�n|tkr�d|kr�|jd�n|tkr�d|kr�|jd�n|tkrmd|krm|jd�qmqmWt|�dkr1|dSt|�dkrRt	d	��nd|koj||t
�}d|ko�||t�}d|ko�||t�}t
|�t
|�t
|�dkr�t	d
��n|r|r|rt|krtSn|r
dS|rdSdS(u5Detect the best version depending on the fields used.cSs%x|D]}||krtSqWtS(N(tTruetFalse(tkeystmarkerstmarker((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_has_markerts
uUNKNOWNu1.0u1.1u1.2u2.0iiuUnknown metadata setu(You used incompatible 1.1/1.2/2.0 fieldsN(titemstNonetappendRtremoveRRRtlenRt_314_MARKERSt_345_MARKERSt_426_MARKERStinttPKG_INFO_PREFERRED_VERSION(	tfieldsRRtkeytvaluetpossible_versionstis_1_1tis_1_2tis_2_0((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt
_best_versionrsB	
&umetadata_versionunameuversionuplatformusupported_platformusummaryudescriptionukeywordsu	home_pageuauthoruauthor_emailu
maintainerumaintainer_emailulicenseu
classifierudownload_urluobsoletes_distu
provides_distu
requires_distusetup_requires_disturequires_pythonurequires_externalurequiresuprovidesu	obsoletesuproject_urluprivate_versionuobsoleted_byu	extensionuprovides_extrau[^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	_FILESAFEtsubtreplace(tnameRtfor_filename((sM/opt/alt/python33/lib/python3.3/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( uaThe legacy metadata of a release.

    Supports versions 1.0, 1.1 and 1.2 (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(tselftpathtfileobjtmappingR=((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__init__�s				
cCst|j�|jd<dS(NuMetadata-Version(R0R:(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRAscCs|jd||f�dS(Nu%s: %s
(twrite(RBRDR4R+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_write_field
scCs
|j|�S(N(tget(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__getitem__
scCs|j||�S(N(tset(RBR4R+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__setitem__scCsA|j|�}y|j|=Wntk
r<t|��nXdS(N(t
_convert_nameR:tKeyError(RBR4t
field_name((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__delitem__s

cCs%||jkp$|j|�|jkS(N(R:RM(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__contains__scCs8|tkr|S|jdd�j�}tj||�S(Nu-u_(t_ALL_FIELDSR3tlowert_ATTR2FIELDRI(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRMscCs |tks|tkrgSdS(NuUNKNOWN(t_LISTFIELDSt_ELEMENTSFIELD(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_default_value$scCstjd|�S(Nu
(t_LINE_PREFIXR2(RBR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_remove_line_prefix)scCs$|tkr||St|��dS(N(RTtAttributeError(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__getattr__,scCst|d|d|�S(uhReturn the distribution name with version.

        If filesafe is true, return a filename-escaped form.uNameuVersion(R6(RBtfilesafe((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytget_fullname7scCs|j|�}|tkS(u+return True if name is a valid metadata key(RMRR(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytis_field=scCs|j|�}|tkS(N(RMRU(RBR4((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytis_multi_fieldBscCs;tj|ddd�}z|j|�Wd|j�XdS(u*Read the metadata values from a file path.urtencodinguutf-8N(tcodecstopenR?tclose(RBtfilepathtfp((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR>FscCs�t|�}|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
�dS(u,Read the metadata values from a file object.umetadata-versionuMetadata-Versionu,uUNKNOWNN(RR:RRRUtget_allt_LISTTUPLEFIELDSR ttupletsplitRKRA(RBtfileobtmsgtfieldtvaluesR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR?Ns
+
cCs>tj|ddd�}z|j||�Wd|j�XdS(u&Write the metadata fields to filepath.uwR`uutf-8N(RaRbt
write_fileRc(RBRdtskip_unknownRe((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRGdscCs|j�xt|d�D]�}|j|�}|rT|dgdgfkrTqn|tkr�|j||dj|��qn|tkr�|dkr�|jdd�}n|g}n|tkr�g|D]}dj|�^q�}nx!|D]}|j|||�q�WqWdS(u0Write the PKG-INFO format data to a file object.uMetadata-VersionuUNKNOWNu,uDescriptionu
u	
       |N(	RARRIRVRHtjoinRUR3Rg(RBt
fileobjectRoRlRmR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRnls 
%
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(RTRKRM(R*R+(RB(sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_set�sukeysN(thasattrRR(RBtothertkwargsRrtktv((RBsM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR@�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%r: %r is not valid (field %r)u(%r: %r is not a valid version (field %r)uDescriptionN(RMRVt
isinstancetlistRhRRitstripRUtloggertisEnabledFortloggingtWARNINGR
R=t_PREDICATE_FIELDSR tis_valid_matchertwarningt_VERSIONS_FIELDStis_valid_constraint_listt_VERSION_FIELDStis_valid_versiont_UNICODEFIELDSRYR:(RBR4R+Rwtproject_nameR=((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRK�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(
RMR:t_MISSINGRWR�RUR RgR!RVRxRRi(RBR4tdefaultR+trestval((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRI�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�RiRR(R+Rw(R=(sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytare_valid_constraintss
uWrong value for %r: %s(uNameuVersion(u	Home-pageuAuthorN(
RAR!RpRR
R=RR�R�R�R�RIR (RBtstricttmissingtwarningstattrRkR�R)t
controllerRlR+((R=sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytcheck�s2




	
"c	Cs�|j�d4d5d6d7d8d9d:d;d<d=d>d?d@f
}i}x;|D]3\}}|sf||jkrD||||<qDqDW|ddkr#dAdBdCdDdEdFdGdHf}x�|D]l\}}|s�||jkr�|d&kr�||||<qg||D]}d,j|�^q�||<q�q�Wn`|dd-kr�dIdJdKf}x>|D]3\}}|sk||jkrI||||<qIqIWn|S(Lu�Return 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).
        umetadata_versionuMetadata-VersionunameuNameuversionuVersionusummaryuSummaryu	home_pageu	Home-pageuauthoruAuthoruauthor_emailuAuthor-emailulicenseuLicenseudescriptionuDescriptionukeywordsuKeywordsuplatformuPlatformu
classifieru
Classifierudownload_urluDownload-URLu1.2u
requires_distu
Requires-Disturequires_pythonuRequires-Pythonurequires_externaluRequires-Externalu
provides_distu
Provides-Distuobsoletes_distuObsoletes-Distuproject_urluProject-URLu
maintaineru
Maintainerumaintainer_emailuMaintainer-emailu,u1.1uprovidesuProvidesurequiresuRequiresu	obsoletesu	Obsoletes(umetadata_versionuMetadata-Version(unameuName(uversionuVersion(usummaryuSummary(u	home_pageu	Home-page(uauthoruAuthor(uauthor_emailuAuthor-email(ulicenseuLicense(udescriptionuDescription(ukeywordsuKeywords(uplatformuPlatform(u
classifieru
Classifier(udownload_urluDownload-URL(u
requires_distu
Requires-Dist(urequires_pythonuRequires-Python(urequires_externaluRequires-External(u
provides_distu
Provides-Dist(uobsoletes_distuObsoletes-Dist(uproject_urluProject-URL(u
maintaineru
Maintainer(umaintainer_emailuMaintainer-email(uprovidesuProvides(urequiresuRequires(u	obsoletesu	Obsoletes(RAR:Rp(	RBtskip_missingtmapping_1_0tdataR*ROtmapping_1_2tutmapping_1_1((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyttodictsP
		4	cCsN|ddkr:x'dD]}||kr||=qqWn|dc|7<dS(NuMetadata-Versionu1.1u	ObsoletesuRequiresuProvidesu
Requires-Dist(u	ObsoletesuRequiresuProvides((RBtrequirementsRl((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytadd_requirementsNs

cCstt|d��S(NuMetadata-Version(RyR(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRYsccs x|j�D]}|Vq
WdS(N(R(RBR*((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__iter__\scCs!g|j�D]}||^q
S(N(R(RBR*((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRm`scCs'g|j�D]}|||f^q
S(N(R(RBR*((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRcscCsd|jj|j|jfS(Nu
<%s %s %s>(t	__class__R
R4R(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt__repr__fsN(#R
RRR RFRARHRJRLRPRQRMRWRYR[RR]R^R_R>R?RGRnR@RKR�RIR�R�R�RR�RmRR�(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR7�s>																	,,;					upydist.jsontMetadatacBs�eZdZejd�Zejdej�ZeZ	ejd�Z
dZdeZ
id>d6d?d6d@d	6Zd
ZdZiedAfd6edBfd6e	dCfd6e
dDfd	6ZdEZdFdFdFdd�ZedG�ZdFefZdFefZi
defd6defd6ed6ed6ed6defd6ed6ed6ed6ed 6d!efd"6dHd$6dId6Z[[d&�ZdFd'�Zd(�Zed)��Z ed*��Z!e!j"d+��Z!dFdFd,�Z#ed-��Z$ed.��Z%e%j"d/��Z%d0�Z&d1�Z'd2�Z(d3�Z)id4d6d5d6d6d6d7d	6d8d96d!d"6Z*d:�Z+dFdFe,e-d;�Z.d<�Z/d=�Z0RS(Ju�
    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 exclusiveRER=urbumetadata_versionu	generatoruutf-8RD(R8R R9t_legacyt_dataR=t_validate_mappingRR7tvalidateRbR>tMETADATA_VERSIONt	GENERATORRxRtdecodetjsontloadst
ValueErrorR(RBRCRDRER=R�tf((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRF�s>			



ulicenseukeywordsu
Requires-Disturun_requiresuSetup-Requires-Distubuild_requiresudev_requiresu
test_requiresu
meta_requiresuProvides-Extrauextrasumodulesu
namespacesuexportsucommandsu
ClassifieruclassifiersuDownload-URLu
source_urluMetadata-VersioncCstj|d�}tj|d�}||kr�||\}}|jr�|dkrs|dkrgdn|�}q�|jj|�}q|dkr�dn|�}|jj||�}nQ||kr�tj||�}n0|jr�|jj|�}n|jj|�}|S(Nucommon_keysumapped_keys(tobjectt__getattribute__R�R RIR�(RBR*tcommontmappedtlktmakertresultR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR��s 		cCso||jkrk|j|\}}|p.|j|krk|j|�}|shtd||f��qhqkndS(Nu*%r is an invalid value for the %r property(tSYNTAX_VALIDATORSR=tmatchR(RBR*R+R=tpatternt
exclusionstm((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt_validate_value�scCs"|j||�tj|d�}tj|d�}||kr�||\}}|jr~|dkrnt�n||j|<q||j|<n�||kr�tj|||�nn|dkr�t|t	�r�|j
�}|r�|j�}q�g}q�n|jr||j|<n
||j|<dS(Nucommon_keysumapped_keysukeywords(R�R�R�R�R tNotImplementedErrorR�t__setattr__RxRRzRi(RBR*R+R�R�R�t_((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR��s*			cCst|j|jt�S(N(R6R4RR(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytname_and_versionscCsd|jr|jd}n|jjdg�}d|j|jf}||kr`|j|�n|S(Nu
Provides-Distuprovidesu%s (%s)(R�R�t
setdefaultR4RR!(RBR�ts((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytprovidess	cCs*|jr||jd<n
||jd<dS(Nu
Provides-Distuprovides(R�R�(RBR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�%s	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�RRIRtextendR"R�tget_requirements(
RBtreqtsR�R�R�tdtincludeRR*te((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�,s0			
		


cCs|jr|j�S|jS(N(R�t_from_legacyR�(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt
dictionaryVs	
cCs)|jrt�nt|j|j�SdS(N(R�R�RR�tDEPENDENCY_KEYS(RB((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytdependencies\s		cCs&|jrt�n|jj|�dS(N(R�R�R�R@(RBR+((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�cs		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, (	RIR�RtMANDATORY_KEYSRR!RpRR�(	RBRER=R�R*R�RkRvRw((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�jscCs`|jrF|jjt�\}}|s-|r\tjd||�q\n|j|j|j�dS(Nu#Metadata: missing: %s, warnings: %s(R�R�RR{R�R�R�R=(RBR�R�((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�xs		cCs6|jr|jjt�St|j|j�}|SdS(N(R�R�RRR�t
INDEX_KEYS(RBR�((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR��s	c
Csi|jd6|jd6}|jjt�}xFdD]>}||kr3|dkrZd	}n|}||||<q3q3W|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�R�R�RRIR�(
RBR�tlmdRvtnktkwRtoktauthort
maintainer((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR��s0


		
	
uNameuVersionuLicenseuSummaryuDescriptionudescriptioncCs�d�}t�}|j}x:|jj�D])\}}||kr+||||<q+q+W||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;(RKRItaddRp(tentriesR�R�textraR�trlisttrR((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pytprocess_entries�s"	



	$uProvides-Extrau
Requires-DistuSetup-Requires-Dist(
R7R�tLEGACY_MAPPINGRtrun_requirest
meta_requirestbuild_requirestdev_requiresR�tsorted(RBR�R�tnmdR�R�tr1tr2((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt
_to_legacy�s				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 neededRotensure_asciitindentit	sort_keysuwuutf-8(R8R R�R�R�R�RGRnR�R�R�tdumpRRaRb(RBRCRDtlegacyRot	legacy_mdR�R�((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyRG�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 tinsertRKR�(RBR�R�talwaystentrytrset((sM/opt/alt/python33/lib/python3.3/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)>(R4RR�R
tmetadata_version(RBR4R((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR��s(((ulegacy((ulegacy(ulegacy(ulegacy(u_legacyu_datauschemeN(unameuversionulicenseukeywordsusummary(uDownload-URLN(uMetadata-VersionN(1R
RRtretcompiletMETADATA_VERSION_MATCHERtItNAME_MATCHERRtVERSION_MATCHERtSUMMARY_MATCHERR�RR�R�R�R�R�t	__slots__R RFRKtcommon_keysRyt	none_listtdictt	none_dicttmapped_keysR�R�R�tpropertyR�R�tsetterR�R�R�R�R�R�R�R�R�RRRGR�R�(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyR�ns�




	,




	
	*					
	%	(ARt
__future__RRatemailRR�R}R�tRRtcompatRRRRRtutilRR	RR
Rt	getLoggerR
R{RRRRt__all__tPKG_INFO_ENCODINGR(R�RXRRR$RR%RR&RKRRR@tEXTRA_RERR0RTRR�R�RURgRVR�R�R�R1RR6R7tMETADATA_FILENAMER�(((sM/opt/alt/python33/lib/python3.3/site-packages/pip/_vendor/distlib/metadata.pyt<module>	s�																		



		8
									
��

Zerion Mini Shell 1.0