File "upload_docs.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyc
File size: 8.54 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


Rec@sdZddlmZddlmZddlmZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZmZddlmZd	d
lmZdZdefd
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(tuploadcCs%tjrdnd}|jd|S(Ntsurrogateescapetstrictsutf-8(RtPY3tencode(tsterrors((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_encodestupload_docscBseZdZdZdddejfddgZejZd	Zd
efgZ	dZ
dZd
ZdZ
edZedZdZRS(shttps://pypi.python.org/pypi/sUpload documentation to PyPIsrepository=trsurl of repository [default: %s]s
show-responses&display full response text from serversupload-dir=sdirectory to uploadcCs1|jdkr-xtddD]}tSWndS(Nsdistutils.commandstbuild_sphinx(t
upload_dirtNoneRtTrue(tselftep((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/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((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR6s
	cCstj||jdkrs|jrF|jd}|j|_q|jd}tj	j
|jd|_n|jd|j|_d|j
krtjdn|jd|jdS(NRtbuildtdocsRspypi.python.orgs3Upload_docs command is deprecated. Use RTD instead.sUsing upload directory %s(Rtfinalize_optionsRRRtget_finalized_commandtbuilder_target_dirRtostpathtjoint
build_basetensure_dirnamet
repositoryRtwarntannounce(RRR((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyR;s

cCstj|d}z|j|jxtj|jD]\}}}||jkry|ryd}t||jnxj|D]b}tjj||}|t	|jj
tjj}	tjj|	|}
|j||
qWq8WWd|j
XdS(Ntws'no files found in upload directory '%s'(tzipfiletZipFiletmkpathRRtwalkRR R!tlentlstriptseptwritetclose(Rtfilenametzip_filetroottdirstfilesttmpltnametfulltrelativetdest((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pytcreate_zipfileKs"
"cCsx!|jD]}|j|q
Wtj}|jjj}tjj	|d|}z|j
||j|Wdtj
|XdS(Ns%s.zip(tget_sub_commandstrun_commandttempfiletmkdtemptdistributiontmetadatatget_nameRR R!R;tupload_filetshutiltrmtree(Rtcmd_namettmp_dirR7R2((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pytrun[s
ccs|\}}d|}t|ts1|g}nx|D]x}t|trl|d|d7}|d}nt|}|Vt|VdV|V|r8|ddkr8dVq8q8WdS(	Ns*
Content-Disposition: form-data; name="%s"s; filename="%s"iis

is
s
(t
isinstancetlistttupleR(titemtsep_boundarytkeytvaluesttitletvalue((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_build_partis


cCsd}d|}|d}|df}tj|jd|}t||j}tjj|}tj||}	d|jd}
dj	|	|
fS(	s=
        Build up the MIME payload for the POST data
        s3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--s
RMs multipart/form-data; boundary=%stasciit(
t	functoolstpartialRRtmaptitemst	itertoolstchaint
from_iterabletdecodeR!(tclstdatatboundaryRMtend_boundaryt	end_itemstbuildertpart_groupstpartst
body_itemstcontent_type((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt_build_multipart}s

		cCst|d}|j}WdQX|jj}idd6|jd6tjj||fd6}t|j	d|j
}t|}tj
r|jd}nd|}|j|\}}	d	|j}
|j|
tjtjj|j\}}}
}}}|r|r|s%t|d
krCtj|}n.|dkratj|}ntd|d
}yw|j|jd|
|	}|jd||jdtt||jd||j |j!|Wn0t"j#k
r }|jt|tj$dSX|j%}|j&dkrhd|j&|j'f}
|j|
tjn|j&dkr|j(d}|dkrd|j}nd|}
|j|
tjn)d|j&|j'f}
|j|
tj$|j*rdd|jddfGHndS(Ntrbt
doc_uploads:actionR7tcontentt:RSsBasic sSubmitting documentation to %sthttpthttpssunsupported schema RTtPOSTsContent-typesContent-lengtht
AuthorizationisServer response (%s): %si-tLocationshttps://pythonhosted.org/%s/sUpload successful. Visit %ssUpload failed (%s): %st-iK(+topentreadR@RARBRR tbasenameRtusernametpasswordRRR
R\RgR$R&RtINFORtparseturlparsetAssertionErrorRtHTTPConnectiontHTTPSConnectiontconnectt
putrequestt	putheadertstrR,t
endheaderstsendtsocketterrortERRORtgetresponsetstatustreasont	getheaderRt
show_response(RR1tfRjtmetaR^tcredentialstauthtbodytcttmsgtschematnetlocturltparamstqueryt	fragmentstconnRfteRtlocation((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRCsb
	

'


	N(s
show-responseNs&display full response text from server(supload-dir=Nsdirectory to upload(t__name__t
__module__tDEFAULT_REPOSITORYtdescriptionRRtuser_optionstboolean_optionsRtsub_commandsRRR;RHtstaticmethodRRtclassmethodRgRC(((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyRs"
							(t__doc__tbase64Rt	distutilsRtdistutils.errorsRRRR(R>RDRYRUtsetuptools.externRtsetuptools.extern.six.movesRRt
pkg_resourcesRRRR(((s/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload_docs.pyt<module>s