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_docs.pyo

�
b-�Qc@s2dZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZyddlmZWn!ek
r�ddlmZnXddlmZmZmZmZejd	kZerd
ZndZdd
�Zdefd��YZdS(spupload_docs

Implements a Distutils 'upload_docs' subcommand (upload documentation to
PyPI's pythonhosted.org).
i����N(tstandard_b64encode(titer_entry_points(tlog(tDistutilsOptionError(tupload(thttplibturlparsetunicodet	iteritemst3tsurrogateescapetstrictsutf-8cCs#t|t�r|j|t�S|S(N(t
isinstanceRtencodeterrors(tstencoding((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pytb&stupload_docscBs{eZdZdddejfddgZejZd�Zd	efgZ	d
�Z
d�Zd�Zd
�Z
d�ZRS(sUpload documentation to PyPIsrepository=trsurl of repository [default: %s]s
show-responses&display full response text from serversupload-dir=sdirectory to uploadcCs1|jdkr-xtdd�D]}tSWndS(Nsdistutils.commandstbuild_sphinx(t
upload_dirtNoneRtTrue(tselftep((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt
has_sphinx9sRcCs#tj|�d|_d|_dS(N(Rtinitialize_optionsRRt
target_dir(R((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR@s
	cCs�tj|�|jdkrs|j�rF|jd�}|j|_q�|jd�}tj	j
|jd�|_n|jd�|j|_|j
d|j�dS(NRtbuildtdocsRsUsing upload directory %s(Rtfinalize_optionsRRRtget_finalized_commandtbuilder_target_dirRtostpathtjoint
build_basetensure_dirnametannounce(RRR((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyREs

c
Cs�tj|d�}z�|j|j�x�tj|j�D]�\}}}||jkrs|rstd|j��nxj|D]b}tjj||�}|t	|j�j
tjj�}tjj||�}	|j||	�qzWq8WWd|j
�XdS(Ntws'no files found in upload directory '%s'(tzipfiletZipFiletmkpathRR"twalkRR#R$tlentlstriptseptwritetclose(
Rtfilenametzip_filetroottdirstfilestnametfulltrelativetdest((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pytcreate_zipfileSs"
"cCs�x!|j�D]}|j|�q
Wtj�}|jjj�}tjj	|d|�}z|j
|�|j|�Wdtj
|�XdS(Ns%s.zip(tget_sub_commandstrun_commandttempfiletmkdtemptdistributiontmetadatatget_nameR"R#R$R;tupload_filetshutiltrmtree(Rtcmd_namettmp_dirR7R3((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pytrunds
cCsZt|d�}|j�}|j�|jj}idd6|j�d6tjj|�|fd6}t	|j
d|j�}t|�}t
jd(kr�|jd�}nd	|}d
}t	d�t	|�}	|	t	d�}
g}xt|�D]�\}}
d
|}t|
�tg�kr.|
g}
nx�|
D]�}t|�tkrl|d|d7}|d}nt	|�}|j|	�|jt	|��|jt	d��|j|�|r5|dt	d�kr5|jt	d��q5q5Wq�W|j|
�|jt	d��t	d�j|�}|jd|jtj�t|j�\}}}}}}|dkr�tj|�}n.|dkr�tj|�}ntd|��d}tj}yu|j�|jd|�|j dd|�|j dt!t"|���|j d|�|j#�|j$|�Wn>t%j&k
rrt
j'�d}|jt!|�tj(�dSX|j)�}|j*dkr�|jd |j*|j+ftj�nz|j*d!kr|j,d"�}|dkr�d#|j�}n|jd$|tj�n#|jd%|j*|j+ftj(�|j.rVd&d'|j�d&d'fGHndS()Ntrbt
doc_uploads:actionR7tcontentt:itasciisBasic s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s*
Content-Disposition: form-data; name="%s"s; filename="%s"iis

i����s
s
tsSubmitting documentation to %sthttpthttpssunsupported schema tPOSTsContent-types multipart/form-data; boundary=%ssContent-lengtht
Authorizationi�sServer response (%s): %si-tLocationshttps://pythonhosted.org/%s/sUpload successful. Visit %ssUpload failed (%s): %st-iK(i(/topentreadR1R@RARBR"R#tbasenameRtusernametpasswordRtsystversion_infotdecodeRttypettupletappendR$R't
repositoryRtINFORRtHTTPConnectiontHTTPSConnectiontAssertionErrortconnectt
putrequestt	putheadertstrR-t
endheaderstsendtsocketterrortexc_infotERRORtgetresponsetstatustreasont	getheaderRt
show_response(RR2tfRKtmetatdatatcredentialstauthtboundarytsep_boundarytend_boundarytbodytkeytvaluesttitletvaluetschematnetlocturltparamstqueryt	fragmentstconntloglevelteRtlocation((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRCrs�









!	
	




	N(s
show-responseNs&display full response text from server(supload-dir=Nsdirectory to upload(t__name__t
__module__tdescriptionRtDEFAULT_REPOSITORYRtuser_optionstboolean_optionsRtsub_commandsRRR;RHRC(((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR,s
							(t__doc__R"RkR)R>RZRDtbase64Rt
pkg_resourcesRt	distutilsRtdistutils.errorsRtdistutils.command.uploadRtImportErrortsetuptools.command.uploadtsetuptools.compatRRRRtversiont_IS_PYTHON3RRR(((sB/usr/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt<module>s*
"	

Zerion Mini Shell 1.0