File "upload.cpython-38.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python38/lib64/python3.8/distutils/command/__pycache__/upload.cpython-38.pyc
File size: 4.84 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
U
ifY @ s d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m
Z
ddlmZ ddl
mZmZ ddlmZ ddlmZ dd lmZ G d
d deZdS )zm
distutils.command.upload
Implements the Distutils 'upload' subcommand (upload package to a package
index).
N)standard_b64encode)urlopenRequest HTTPError)urlparse)DistutilsErrorDistutilsOptionError)
PyPIRCCommand)spawn)logc @ sJ e Zd ZdZejddg Zejdg Zdd Zdd Zd d
Z dd Z
d
S )uploadzupload binary package to PyPI)signszsign files to upload using gpg)z identity=izGPG identity used to sign filesr
c C s, t | d| _d| _d| _d| _d | _d S )N r F)r initialize_optionsusernamepassword
show_responser
identity)self r =/opt/alt/python38/lib64/python3.8/distutils/command/upload.pyr s
zupload.initialize_optionsc C sr t | | jr| jstd| }|i krV|d | _|d | _|d | _|d | _ | jsn| j
jrn| j
j| _d S )Nz.Must use --sign for --identity to have meaningr r
repositoryrealm)r finalize_optionsr r
r Z_read_pypircr r r r distribution)r Zconfigr r r r ( s
zupload.finalize_optionsc C s: | j jsd}t|| j jD ]\}}}| ||| qd S )NzHMust create and upload files in one command (e.g. setup.py sdist upload))r Z
dist_filesr upload_file)r msgcommand pyversionfilenamer r r run: s
z
upload.runc C s t | j\}}}}}} |s"|s"| r0td| j |dkrDtd| | jr|ddd|g}
| jrnd| jg|
dd<