ok

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyc

�
0��`c@s�dZddlmZddlmZddlmZddlZddlZddl	Z	ddl
Z
ddlZddlm
Z
ddlmZmZddlmZd	d
lmZe
jr�dndZd
d�Zdefd��YZdS(spupload_docs

Implements a Distutils 'upload_docs' subcommand (upload documentation to
PyPI's pythonhosted.org).
i����(tstandard_b64encode(tlog(tDistutilsOptionErrorN(tsix(thttp_clientturllib(titer_entry_pointsi(tuploadtsurrogateescapetstrictsutf-8cCs&t|tj�r"|j|t�S|S(N(t
isinstanceRt	text_typetencodeterrors(tstencoding((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pytbstupload_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((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt
has_sphinx/sRcCs#tj|�d|_d|_dS(N(Rtinitialize_optionsRRt
target_dir(R((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR6s
	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((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR;s

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((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pytcreate_zipfileIs"
"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_dirR6R2((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pytrunZs
cCs^t|d�}|j�}|j�|jj}idd6|j�d6tjj|�|fd6}t	|j
d|j�}t|�}t
jr�|jd�}nd|}d	}t	d
�t	|�}	|	t	d�}
g}xt
j|�D]�\}}
d|}t|
t�s"|
g}
nx�|
D]�}t|�tkr`|d
|d7}|d}nt	|�}|j|	�|jt	|��|jt	d��|j|�|r)|dt	d�kr)|jt	d��q)q)Wq�W|j|
�|jt	d��t	d�j|�}|jd|jtj�tjj|j�\}}}}}}|rq|rq|swt�|dkr�tj |�}n.|dkr�tj!|�}ntd|��d}y{|j"�|j#d|�d|}|j$d|�|j$dt%t&|���|j$d|�|j'�|j(|�Wn0t)j*k
rv}|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+�|j1rZd%d&|j�d%d&fGHndS('Ntrbt
doc_uploads:actionR6tcontentt:tasciisBasic s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s*
Content-Disposition: form-data; name="%s"s; filename="%s"iis

i����s
s
tsSubmitting documentation to %sthttpthttpssunsupported schema tPOSTs multipart/form-data; boundary=%ssContent-typesContent-lengtht
Authorizationi�sServer response (%s): %si-tLocationshttps://pythonhosted.org/%s/sUpload successful. Visit %ssUpload failed (%s): %st-iK(2topentreadR0R?R@RAR!R"tbasenameRtusernametpasswordRRtPY3tdecodet	iteritemsR
tlistttypettupletappendR#R&t
repositoryRtINFORtparseturlparsetAssertionErrorRtHTTPConnectiontHTTPSConnectiontconnectt
putrequestt	putheadertstrR,t
endheaderstsendtsocketterrortERRORtgetresponsetstatustreasont	getheaderRt
show_response(RR1tfRJtmetatdatatcredentialstauthtboundarytsep_boundarytend_boundarytbodytkeytvaluesttitletvaluetschematnetlocturltparamstqueryt	fragmentstconntcontent_typeteRtlocation((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRBhs�

	







'






	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:RGRB(((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR#s
							(t__doc__tbase64Rt	distutilsRtdistutils.errorsRR!RmR(R=RCtsetuptools.externRtsetuptools.extern.six.movesRRt
pkg_resourcesRRRYR
RR(((sO/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt<module>s

Zerion Mini Shell 1.0