ok

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //usr/lib/python2.7/site-packages/setuptools/command/upload.pyo

�
b-�Qc@s�dZddlTddlmZddlmZddlmZyddlm	Z	Wn!e
k
rwddl	m	Z	nXddlZddlZddl
Z
ddlZddlZddlmZmZmZmZd	efd
��YZdS(s`distutils.command.upload

Implements the Distutils 'upload' subcommand (upload package to PyPI).i����(t*(tCommand(tspawn(tlog(tmd5N(turlparsetStringIOthttplibtConfigParsertuploadcBsceZdZdZdddefdddgZddgZd
�Zd�Zd�Z	d�Z
RS(supload binary package to PyPIshttps://pypi.python.org/pypisrepository=trsurl of repository [default: %s]s
show-responses&display full response text from servertsigntsssign files to upload using gpgs	identity=tisGPG identity used to sign filescCs:d|_d|_d|_d|_t|_d|_dS(Nti(tusernametpasswordt
repositoryt
show_responsetFalseRtNonetidentity(tself((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pytinitialize_options&s					cCs&|jr"|jr"td��ndtjkr
tjjtjdd�}tjj|�r
|jd|�t	j	idd6dd6dd6�}|j
|�|js�|jd	d�|_n|j
s�|jd	d�|_
n|js|jd	d�|_qq
n|js"|j|_ndS(
Ns.Must use --sign for --identity to have meaningtHOMEs.pypircsUsing PyPI login from %sRRRRsserver-login(RRtDistutilsOptionErrortostenvirontpathtjointexiststannounceRtreadRtgetRRtDEFAULT_REPOSITORY(Rtrctconfig((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pytfinalize_options.s(	

				cCsR|jjstd��nx0|jjD]"\}}}|j|||�q(WdS(Ns'No dist file created in earlier command(tdistributiont
dist_filesRtupload_file(Rtcommandt	pyversiontfilename((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pytrunEsc Cs/|jrSddd|g}|jr=d|jg|dd+nt|d|j�nt|d�}|j�}|j�tjj	|�}d}|d	kr�|j
j�r�d
tjdd�}nid
d6dd6|j
j
�d6|j
j�d6||fd6|d6|d6t|�j�d6}	|dkrctj�\}
}}|
r�d|
|f}q�n%|dkr�dtjdd�}n||	d<|jr�t|d�}
tjj	|�d|
j�f|	d<|
j�ndtj|jd|j�j�}d }d!|}|d"}tj�}x�|	j�D]�\}}t|�tg�krh|g}nx�|D]�}t|�tkr�d#|d$}|d}nd}t|�}|j|�|jd%|�|j|�|jd&�|j|�|ro|d'd(kro|jd)�qoqoWq8W|j|�|jd)�|j�}|jd*||jft j!�t"|j�\}}}}}}|d+kr�t#j$|�}n.|d,kr�t#j%|�}nt&d-|��d}	t j!}yu|j'�|j(d.|�|j)d/d0|�|j)d1tt*|���|j)d2|�|j+�|j,|�Wn>t-j.k
r�t/j0�d}|jt|�t j1�dSX|j2�}|j3d3kr�|jd4|j3|j4ft j!�n#|jd5|j3|j4ft j1�|j5r+d6d7|j�d6d7fGHndS(8Ntgpgs
--detach-signs-as--local-useritdry_runtrbRt	bdist_eggsbuilt on %stterseitfile_uploads:actiont1tprotocol_versiontnametversiontcontenttfiletypeR*t
md5_digestt	bdist_rpmsbuilt for %s %st
bdist_dumbsbuilt for %stcomments.asct
gpg_signaturesBasic t:s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s;filename="%s"is*
Content-Disposition: form-data; name="%s"s

i����s
s
sSubmitting %s to %sthttpthttpssunsupported schema tPOSTsContent-types multipart/form-data; boundary=%ssContent-lengtht
Authorizationi�sServer response (%s): %ssUpload failed (%s): %st-iK(6RRRR.topenR tcloseRRtbasenameR&thas_ext_modulestplatformtget_nametget_versionRt	hexdigesttdisttbase64tencodestringRRtstripRtitemsttypettupletstrtwritetgetvalueRRRtINFORRtHTTPConnectiontHTTPSConnectiontAssertionErrortconnectt
putrequestt	putheadertlent
endheaderstsendtsocketterrortsystexc_infotERRORtgetresponsetstatustreasonR( RR)R*R+tgpg_argstfR7RFR<tdataRLR6tidtasc_filetauthtboundarytsep_boundarytend_boundarytbodytkeytvaluetfntschematnetlocturltparamstqueryt	fragmentsR?tloglevelteR
((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyR(Ks�			



	&
'









 !	
	


	N(s
show-responseNs&display full response text from server(ssignRssign files to upload using gpg(s	identity=R
sGPG identity used to sign files(t__name__t
__module__tdescriptionR"Rtuser_optionstboolean_optionsRR%R,R((((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyR	s
				(t__doc__tdistutils.errorstdistutils.coreRtdistutils.spawnRt	distutilsRthashlibRtImportErrorRRbR`RHRMtsetuptools.compatRRRRR	(((s=/usr/lib/python2.7/site-packages/setuptools/command/upload.pyt<module>s

"

Zerion Mini Shell 1.0