404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.191.189.164: ~ $
3

�Qg��@s�ddlZddlZddlZddlZddlmZddlmZmZm	Z	ddl
mZddlm
Z
mZddlmZddlmZddlmZGd	d
�d
e�ZdS)�N)�standard_b64encode)�urlopen�Request�	HTTPError)�urlparse)�DistutilsError�DistutilsOptionError)�
PyPIRCCommand)�spawn)�logc@sJeZdZdZejddgZejdgZdd	�Zd
d�Zdd
�Z	dd�Z
dS)�uploadzupload binary package to PyPI�sign�s�sign files to upload using gpg�	identity=�i�GPG identity used to sign filescCs,tj|�d|_d|_d|_d|_d|_dS)N�rF)r	�initialize_options�username�password�
show_responser
�identity)�self�r�0/usr/lib64/python3.6/distutils/command/upload.pyr s
zupload.initialize_optionscCsvtj|�|jr |jr td��|j�}|ikrX|d|_|d|_|d|_|d|_	|jrr|j
jrr|j
j|_dS)Nz.Must use --sign for --identity to have meaningrr�
repository�realm)r	�finalize_optionsrr
rZ_read_pypircrrrr�distribution)r�configrrrr(s




zupload.finalize_optionscCs>|jjsd}t|��x$|jjD]\}}}|j|||�qWdS)NzHMust create and upload files in one command (e.g. setup.py sdist upload))rZ
dist_filesr�upload_file)r�msg�command�	pyversion�filenamerrr�run:s
z
upload.runc&)Cs^t|j�\}}}}}}	|s"|s"|	r0td|j��|d2krDtd|��|jr|ddd|g}
|jrnd|jg|
d	d	�<t|
|jd
�t|d�}z|j�}Wd|j	�X|j
j}
dd
|
j�|
j
�tjj|�|f||tj|�j�d|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j�|
j �d�}ytj!|�j�}WnPt"k
�r�}z2d|}|j#|t$j%�ddl&m'}|��s|�WYdd}~Xn
X||d<d}|dk�r�t(j)�\}}}|�r�d||f}n|dk�r�dt(j(dd�}||d<|j�rtjj|�dt|dd�j�f|d<|j*d|j+j,d�}d t-|�j.d�}d!}d"|j,d�}|d#}t/j0�}x�|j1�D]�\}}d$|}t2|t3��s�|g}xr|D]j}t4|�t5k�r�|d%|d7}|d}nt6|�j,d&�}|j7|�|j7|j,d&��|j7d'�|j7|��q�W�qjW|j7|�|j8�}d(||jf}|j#|t$j%�d)|t6t9|��|d*�} t:|j|| d+�}!yt;|!�}"|"j<�}#|"j=}$Wnft>k
�r�}z|j?}#|j=}$WYdd}~Xn8t@k
�r�}z|j#t6|�t$jA��WYdd}~XnX|#d,k�r8|j#d-|#|$ft$j%�|jB�rZ|jC|"�}%d.jDd/d0|%d/d0f�}|j#|t$j%�n"d1|#|$f}|j#|t$jA�tE|��dS)3NzIncompatible url %s�http�httpszunsupported schema Zgpgz
--detach-signz-az--local-user�)�dry_run�rbZfile_upload�1z1.0)z:actionZprotocol_version�name�version�contentZfiletyper$Z
sha256_digestZmetadata_versionZsummaryZ	home_pageZauthorZauthor_email�license�description�keywords�platformZclassifiersZdownload_urlZprovidesZrequiresZ	obsoletesz#calculating md5 checksum failed: %sr)�
get_fips_modeZ
md5_digestrZ	bdist_rpmzbuilt for %s %sZ
bdist_dumbzbuilt for %s�)Zterse�commentz.ascZ
gpg_signature�:�asciizBasic z3--------------GHSKFJDLGDS7543FJKLFHRE75642756743254s
--s--
z+
Content-Disposition: form-data; name="%s"z; filename="%s"zutf-8s

zSubmitting %s to %sz multipart/form-data; boundary=%s)zContent-typezContent-lengthZ
Authorization)�data�headers��zServer response (%s): %s�
�-�KzUpload failed (%s): %s)r'r()Frr�AssertionErrorr
rr
r*�open�read�closerZmetadataZget_nameZget_version�os�path�basename�hashlibZsha256Z	hexdigestZget_descriptionZget_urlZget_contactZget_contact_emailZget_licenceZget_long_descriptionZget_keywordsZ
get_platformsZget_classifiersZget_download_urlZget_providesZget_requiresZ
get_obsoletesZmd5�
ValueErrorZannouncer�INFOZ_hashlibr4r3�distrr�encoder�decode�io�BytesIO�items�
isinstance�list�type�tuple�str�write�getvalue�lenrrZgetcoder"r�code�OSErrorZERRORrZ_read_pypi_response�joinr)&rr#r$r%ZschemaZnetlocZurlZparamsZqueryZ	fragmentsZgpg_args�fr/�metar9Zdigest�er"r4r6rIr.�idZ	user_passZauth�boundaryZsep_boundaryZend_boundaryZbody�key�value�titler:Zrequest�resultZstatus�reason�textrrrr!Bs�













zupload.upload_fileN)r
rr)rrr)�__name__�
__module__�__qualname__r1r	Zuser_optionsZboolean_optionsrrr&r!rrrrrsr)rCrLr3rF�base64rZurllib.requestrrrZurllib.parserZdistutils.errorsrrZdistutils.corer	Zdistutils.spawnr
Z	distutilsrrrrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 535 B 0644
__init__.cpython-36.opt-2.pyc File 426 B 0644
__init__.cpython-36.pyc File 535 B 0644
bdist.cpython-36.opt-1.pyc File 3.69 KB 0644
bdist.cpython-36.opt-2.pyc File 3.5 KB 0644
bdist.cpython-36.pyc File 3.69 KB 0644
bdist_dumb.cpython-36.opt-1.pyc File 3.66 KB 0644
bdist_dumb.cpython-36.opt-2.pyc File 3.46 KB 0644
bdist_dumb.cpython-36.pyc File 3.66 KB 0644
bdist_msi.cpython-36.opt-1.pyc File 19.22 KB 0644
bdist_msi.cpython-36.opt-2.pyc File 17.71 KB 0644
bdist_msi.cpython-36.pyc File 19.3 KB 0644
bdist_rpm.cpython-36.opt-1.pyc File 12.7 KB 0644
bdist_rpm.cpython-36.opt-2.pyc File 12.39 KB 0644
bdist_rpm.cpython-36.pyc File 12.76 KB 0644
bdist_wininst.cpython-36.opt-1.pyc File 8.11 KB 0644
bdist_wininst.cpython-36.opt-2.pyc File 7.97 KB 0644
bdist_wininst.cpython-36.pyc File 8.17 KB 0644
build.cpython-36.opt-1.pyc File 3.97 KB 0644
build.cpython-36.opt-2.pyc File 3.89 KB 0644
build.cpython-36.pyc File 3.97 KB 0644
build_clib.cpython-36.opt-1.pyc File 4.85 KB 0644
build_clib.cpython-36.opt-2.pyc File 4.31 KB 0644
build_clib.cpython-36.pyc File 4.85 KB 0644
build_ext.cpython-36.opt-1.pyc File 16.17 KB 0644
build_ext.cpython-36.opt-2.pyc File 14.26 KB 0644
build_ext.cpython-36.pyc File 16.17 KB 0644
build_py.cpython-36.opt-1.pyc File 10.21 KB 0644
build_py.cpython-36.opt-2.pyc File 9.03 KB 0644
build_py.cpython-36.pyc File 10.27 KB 0644
build_scripts.cpython-36.opt-1.pyc File 4.23 KB 0644
build_scripts.cpython-36.opt-2.pyc File 3.85 KB 0644
build_scripts.cpython-36.pyc File 4.23 KB 0644
check.cpython-36.opt-1.pyc File 5.1 KB 0644
check.cpython-36.opt-2.pyc File 4.55 KB 0644
check.cpython-36.pyc File 5.1 KB 0644
clean.cpython-36.opt-1.pyc File 2.13 KB 0644
clean.cpython-36.opt-2.pyc File 2.05 KB 0644
clean.cpython-36.pyc File 2.13 KB 0644
config.cpython-36.opt-1.pyc File 10.07 KB 0644
config.cpython-36.opt-2.pyc File 6.83 KB 0644
config.cpython-36.pyc File 10.07 KB 0644
install.cpython-36.opt-1.pyc File 13.9 KB 0644
install.cpython-36.opt-2.pyc File 12.87 KB 0644
install.cpython-36.pyc File 13.9 KB 0644
install_data.cpython-36.opt-1.pyc File 2.27 KB 0644
install_data.cpython-36.opt-2.pyc File 2.13 KB 0644
install_data.cpython-36.pyc File 2.27 KB 0644
install_egg_info.cpython-36.opt-1.pyc File 2.92 KB 0644
install_egg_info.cpython-36.opt-2.pyc File 2.25 KB 0644
install_egg_info.cpython-36.pyc File 2.92 KB 0644
install_headers.cpython-36.opt-1.pyc File 1.68 KB 0644
install_headers.cpython-36.opt-2.pyc File 1.52 KB 0644
install_headers.cpython-36.pyc File 1.68 KB 0644
install_lib.cpython-36.opt-1.pyc File 5.05 KB 0644
install_lib.cpython-36.opt-2.pyc File 4.5 KB 0644
install_lib.cpython-36.pyc File 5.05 KB 0644
install_scripts.cpython-36.opt-1.pyc File 2.14 KB 0644
install_scripts.cpython-36.opt-2.pyc File 2.01 KB 0644
install_scripts.cpython-36.pyc File 2.14 KB 0644
register.cpython-36.opt-1.pyc File 8.21 KB 0644
register.cpython-36.opt-2.pyc File 6.98 KB 0644
register.cpython-36.pyc File 8.21 KB 0644
sdist.cpython-36.opt-1.pyc File 12.8 KB 0644
sdist.cpython-36.opt-2.pyc File 9.69 KB 0644
sdist.cpython-36.pyc File 12.8 KB 0644
upload.cpython-36.opt-1.pyc File 5.17 KB 0644
upload.cpython-36.opt-2.pyc File 5.05 KB 0644
upload.cpython-36.pyc File 5.17 KB 0644