ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyc

�
�/{Yc@s�dZddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddl
mZddlmZddlmZmZmZmZmZer�d	nd
Zdd�Zd
efd��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	iteritemstPY3tsurrogateescapetstrictsutf-8cCs#t|t�r|j|t�S|S(N(t
isinstanceRtencodeterrors(tstencoding((sO/opt/alt/python33/lib/python3.3/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/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyt
has_sphinx0sRcCs#tj|�d|_d|_dS(N(Rtinitialize_optionsRRt
target_dir(R((sO/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyR7s
	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/python33/lib/python3.3/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/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pytcreate_zipfileJs"
"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((sO/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pytrun[s
cCs`t|d�}|j�}|j�|jj}idd6|j�d6tjj|�|fd6}t	|j
d|j�}t|�}t
r�|jd�}nd|}d	}t	d
�t	|�}	|	t	d�}
g}x�t|�D]�\}}
d|}t|
t�r|
g}
nx�|
D]�}t|�tkrZ|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�t|j�\}}}}}}|re|re|skt�|dkr�tj|�}n.|dkr�tj|�}ntd|��d}y{|j�|j d|�d|}|j!d|�|j!dt"t#|���|j!d|�|j$�|j%|�Wn>t&j'k
rxt(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*�|j0r\d%d&|j�d%d&fGHndS('Ntrbt
doc_uploads:actionR7tcontentt: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(1topentreadR1R@RARBR"R#tbasenameRtusernametpasswordRR	tdecodeRRtlistttypettupletappendR$R't
repositoryRtINFORtAssertionErrorRtHTTPConnectiontHTTPSConnectiontconnectt
putrequestt	putheadertstrR-t
endheaderstsendtsocketterrortsystexc_infotERRORtgetresponsetstatustreasont	getheaderRt
show_response(RR2tfRKtmetatdatatcredentialstauthtboundarytsep_boundarytend_boundarytbodytkeytvaluesttitletvaluetschematnetlocturltparamstqueryt	fragmentstconntcontent_typeteRtlocation((sO/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyRCis�









!






	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(((sO/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyR#s
							(t__doc__R"RjR)R>RlRDtbase64Rt
pkg_resourcesRt	distutilsRtdistutils.errorsRtdistutils.command.uploadRtsetuptools.compatRRRRR	RRR(((sO/opt/alt/python33/lib/python3.3/site-packages/setuptools/command/upload_docs.pyt<module>s(

Zerion Mini Shell 1.0