AlkantarClanX12

Your IP : 3.15.228.171


Current Path : /opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/command/__pycache__/upload.cpython-33.pyc

�
��f�c@sdZddlTddlmZddlmZddlmZddlZddl	Z	ddl
Z
ddlZddlZddl
mZddlmZmZmZdd	lmZejd
kr�ddlmZnddlmZGdd
�d
e�ZdS(u`distutils.command.upload

Implements the Distutils 'upload' subcommand (upload package to PyPI).i(u*(u
PyPIRCCommand(uspawn(ulogN(ustandard_b64encode(uurlopenuRequestu	HTTPError(uurlparseu2.5(umd5cBsm|EeZdZdZejddgZejdgZdd	�Zd
d�Zdd
�Z	dd�Z
dS(uuploaduupload binary package to PyPIusignususign files to upload using gpgu	identity=uiuGPG identity used to sign filescCs>tj|�d|_d|_d|_d|_d|_dS(NuiF(	u
PyPIRCCommanduinitialize_optionsuusernameupasswordu
show_responseuFalseusignuNoneuidentity(uself((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyuinitialize_options#s
				uupload.initialize_optionscCs�tj|�|jr/|jr/td��n|j�}|ikr~|d|_|d|_|d|_|d|_	n|jr�|j
jr�|j
j|_ndS(Nu.Must use --sign for --identity to have meaninguusernameupasswordu
repositoryurealm(u
PyPIRCCommandufinalize_optionsuidentityusignuDistutilsOptionErroru_read_pypircuusernameupasswordu
repositoryurealmudistribution(uselfuconfig((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyufinalize_options+s



uupload.finalize_optionscCsR|jjstd��nx0|jjD]"\}}}|j|||�q(WdS(Nu'No dist file created in earlier command(udistributionu
dist_filesuDistutilsOptionErroruupload_file(uselfucommandu	pyversionufilename((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyurun=su
upload.runc$Cs�t|j�\}}}}}}	|s3|s3|	rItd|j��n|dIkrhtd|��n|jr�ddd|g}
|jr�d|jg|
d	d	�<nt|
d
|j�nt|d�}z|j�}Wd|j	�X|j
j}
idd
6dd6|
j�d6|
j
�d6tjj|�|fd6|d6|d6t|�j�d6dd6|
j�d6|
j�d6|
j�d6|
j�d6|
j�d6|
j�d6|
j�d6|
j�d6|
j�d 6|
j�d!6|
j�d"6|
j�d#6|
j�d$6}d%}|d&krRt j!�\}}}|rwd'||f}qwn%|d(krwd)t j d*d+�}n||d,<|jr�tjj|�d-t|d-d�j�f|d.<n|j"d/|j#j$d0�}d1t%|�j&d0�}d2}d3|j$d0�}|d4}t'j(�}x|j)�D]�\}}d5|}t*|�t*g�krl|g}nx�|D]�}t*|�t+kr�|d6|d77}|d+}nt,|�j$d8�}|j-|�|j-|j$d8��|j-d9�|j-|�|rs|dJd�d:krs|j-d;�qsqsWq2W|j-|�|j-d;�|j.�}|j/d<||jft0j1�id=|d>6t,t2|��d?6|d@6}t3|jdA|dB|�}y%t4|�}|j5�}|j6} Wn{t7j8k
r(}!z"|j/t,|!�t0j9�dSWYdd}!~!Xn7t:k
r^}!z|!j;}|!j6} WYdd}!~!XnX|dCkr�|j/dD|| ft0j1�n|j/dE|| ft0j9�|j<r�|j=|�}"dFj>dGdH|"dGdHf�}#|j/|#t0j1�ndS(KNuIncompatible url %suhttpuhttpsuunsupported schema ugpgu
--detach-signu-au--local-useriudry_runurbufile_uploadu:actionu1uprotcol_versionunameuversionucontentufiletypeu	pyversionu
md5_digestu1.0umetadata_versionusummaryu	home_pageuauthoruauthor_emailulicenseudescriptionukeywordsuplatformuclassifiersudownload_urluprovidesurequiresu	obsoletesuu	bdist_rpmubuilt for %s %su
bdist_dumbubuilt for %suterseiucommentu.ascu
gpg_signatureu:uasciiuBasic u3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--u*
Content-Disposition: form-data; name="%s"u; filename="%s"iuutf-8s

s
s
uSubmitting %s to %su multipart/form-data; boundary=%suContent-typeuContent-lengthu
Authorizationudatauheadersi�uServer response (%s): %suUpload failed (%s): %su
u-iK(uhttpuhttpsi����(?uurlparseu
repositoryuAssertionErrorusignuidentityuspawnudry_runuopenureaducloseudistributionumetadatauget_nameuget_versionuosupathubasenameumd5u	hexdigestuget_descriptionuget_urluget_contactuget_contact_emailuget_licenceuget_long_descriptionuget_keywordsu
get_platformsuget_classifiersuget_download_urluget_providesuget_requiresu
get_obsoletesuplatformudistuusernameupassworduencodeustandard_b64encodeudecodeuiouBytesIOuitemsutypeutupleustruwriteugetvalueuannounceuloguINFOulenuRequestuurlopenugetcodeumsgusocketuerroruERRORu	HTTPErrorucodeu
show_responseu_read_pypi_responseujoin($uselfucommandu	pyversionufilenameuschemaunetlocuurluparamsuqueryu	fragmentsugpg_argsufucontentumetaudataucommentudistuversionuidu	user_passuauthuboundaryusep_boundaryuend_boundaryubodyukeyuvalueutitleuheadersurequesturesultustatusureasonueutextumsg((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyuupload_fileCs�!			















	#








 
	
	

	 uupload.upload_fileN(usignususign files to upload using gpg(u	identity=uiuGPG identity used to sign files(u__name__u
__module__u__qualname__udescriptionu
PyPIRCCommanduuser_optionsuboolean_optionsuinitialize_optionsufinalize_optionsurunuupload_file(u
__locals__((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyuuploads
uupload(u__doc__udistutils.errorsudistutils.coreu
PyPIRCCommandudistutils.spawnuspawnu	distutilsulogusysuosuiousocketuplatformubase64ustandard_b64encodeuurllib.requestuurlopenuRequestu	HTTPErroruurllib.parseuurlparseuversionumd5uhashlibuupload(((u=/opt/alt/python33/lib64/python3.3/distutils/command/upload.pyu<module>s