Graybyt3 Was Here
Linux cloud.locucionar.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
Apache
91.191.211.241
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
setuptools
/
_distutils
/
command
/
__pycache__
[ HOME ]
Exec
Submit
upload.cpython-38.pyc
U +�a� � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZm Z ddl mZ ddlm Z mZ ddlmZ ddlmZ dd lmZ eed d�eedd�eedd�d �ZG dd� de�ZdS )zm distutils.command.upload Implements the Distutils 'upload' subcommand (upload package to a package index). � N)�standard_b64encode)�urlopen�Request� HTTPError)�urlparse)�DistutilsError�DistutilsOptionError)� PyPIRCCommand)�spawn)�log�md5�sha256�blake2b)Z md5_digestZ sha256_digestZblake2_256_digestc @ sJ e Zd ZdZejddg Zejdg Zdd� Zdd� Zd d � Z dd� Z d S )�uploadzupload binary package to PyPI)�sign�szsign 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_options�username�password� show_responser �identity)�self� r �L/tmp/pip-install-1bd_1mtk/setuptools/setuptools/_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 � repository�realm)r �finalize_optionsr r r �_read_pypircr r r r �distribution)r �configr r r r 1 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 � dist_filesr �upload_file)r �msg�command� pyversion�filenamer r r �runC s z upload.runc "