ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/distutils/command/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/thread-self/root/lib64/python2.7/distutils/command/upload.pyc

�
`цdc@s�dZddlZddlZddlZddlmZmZmZddlm	Z	ddl
Z
ddlZddl
mZddlmZddlmZddlmZdd	lmZd
efd��YZdS(s`distutils.command.upload

Implements the Distutils 'upload' subcommand (upload package to PyPI).i����N(turlopentRequestt	HTTPError(tstandard_b64encode(tmd5(tDistutilsOptionError(t
PyPIRCCommand(tspawn(tlogtuploadcBsUeZdZejddgZejdgZd�Zd�Zd	�Zd
�Z	RS(
supload binary package to PyPItsigntsssign files to upload using gpgs	identity=tisGPG identity used to sign filescCs>tj|�d|_d|_d|_t|_d|_dS(Nti(	Rtinitialize_optionstusernametpasswordt
show_responsetFalseR
tNonetidentity(tself((s0/usr/lib64/python2.7/distutils/command/upload.pyRs
				cCs�tj|�|jr/|jr/td��n|j�}|ikr~|d|_|d|_|d|_|d|_	n|jr�|j
jr�|j
j|_ndS(Ns.Must use --sign for --identity to have meaningRRt
repositorytrealm(Rtfinalize_optionsRR
Rt_read_pypircRRRRtdistribution(Rtconfig((s0/usr/lib64/python2.7/distutils/command/upload.pyR&s



cCsR|jjstd��nx0|jjD]"\}}}|j|||�q(WdS(Ns'No dist file created in earlier command(Rt
dist_filesRtupload_file(Rtcommandt	pyversiontfilename((s0/usr/lib64/python2.7/distutils/command/upload.pytrun8sc"Cstj|j�\}}}}}}	|s6|s6|	rLtd|j��n|dGkrktd|��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-�j�f|d.<nd/t"|j#d0|j$�}d1}d2|}|d3}t%j%�}x�|j&�D]�\}}t'|t(�s5|g}nx�|D]�}t'|t)�rld4|d5}|d+}nd%}|j*|�|j*d6|�|j*|�|j*d7�|j*|�|r<|d8d9kr<|j*d:�q<q<WqW|j*|�|j*d:�|j+�}|j,d;||jft-j.�id<|d=6t/t0|��d>6|d?6}t1|jd@|dA|�}yjt2|�}|j3�}|j4}|j5r�d:j6dBdCt7j�dBdCf�} |j,| t-j.�nWnTt8j9k
r
}!|j,t/|!�t-j:�dSt;k
r1}!|!j<}|!j4}nX|dDkr^|j,dE||ft-j.�n|j,dF||ft-j:�dS(HNsIncompatible url %sthttpthttpssunsupported schema tgpgs
--detach-signs-as--local-useritdry_runtrbtfile_uploads:actiont1tprotcol_versiontnametversiontcontenttfiletypeRt
md5_digests1.0tmetadata_versiontsummaryt	home_pagetauthortauthor_emailtlicensetdescriptiontkeywordstplatformtclassifierstdownload_urltprovidestrequirest	obsoletesR
t	bdist_rpmsbuilt for %s %st
bdist_dumbsbuilt for %stterseitcomments.asct
gpg_signaturesBasic t:s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s;filename="%s"is*
Content-Disposition: form-data; name="%s"s

i����s
s
sSubmitting %s to %ss multipart/form-data; boundary=%ssContent-typesContent-lengtht
Authorizationtdatatheaderst-iKi�sServer response (%s): %ssUpload failed (%s): %s(R"R#(=turlparseRtAssertionErrorR
RRR%topentreadtcloseRtmetadatatget_nametget_versiontostpathtbasenameRt	hexdigesttget_descriptiontget_urltget_contacttget_contact_emailtget_licencetget_long_descriptiontget_keywordst
get_platformstget_classifierstget_download_urltget_providestget_requirest
get_obsoletesR7tdistRRRtStringIOtitemst
isinstancetlistttupletwritetgetvaluetannounceRtINFOtstrtlenRRtgetcodetmsgRtjointrtsocketterrortERRORRtcode("RRRR tschematnetlocturltparamstqueryt	fragmentstgpg_argstfR,tmetaRDR@R`R+tidtauthtboundarytsep_boundarytend_boundarytbodytkeytvaluetfnREtrequesttresulttstatustreasonRmte((s0/usr/lib64/python2.7/distutils/command/upload.pyR>s�$			















	 









 
			&	

(ssignRssign files to upload using gpg(s	identity=RsGPG identity used to sign files(
t__name__t
__module__R5Rtuser_optionstboolean_optionsRRR!R(((s0/usr/lib64/python2.7/distutils/command/upload.pyR	s
			(t__doc__RORpR7turllib2RRRtbase64RRGt	cStringIORathashlibRtdistutils.errorsRtdistutils.coreRtdistutils.spawnRt	distutilsRR	(((s0/usr/lib64/python2.7/distutils/command/upload.pyt<module>s

Zerion Mini Shell 1.0