OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : 3 TSe @ 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 Zd d Zdd Z dd Z dS )uploadzupload binary package to PyPIsignssign files to upload using gpg identity=iGPG identity used to sign filesc C s, t j| d| _d| _d| _d| _d | _d S )N r F)r initialize_optionsusernamepassword show_responser identity)self r /usr/lib64/python3.6/upload.pyr s zupload.initialize_optionsc C sv t j| | jr | j r td| j }|i krX|d | _|d | _|d | _|d | _ | j rr| j jrr| 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 configr r r r ( s zupload.finalize_optionsc C s> | j jsd}t|x$| j jD ]\}}}| j||| qW d 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 &