Server IP : 149.255.58.128 / Your IP : 216.73.216.112
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib64/python3.9/distutils/command/__pycache__//upload.cpython-39.pyc
a
�DOg� � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZmZ ddlmZ dd lmZ dd
lmZ eedd�eedd�eed
d�d�ZG dd� de�ZdS )zm
distutils.command.upload
Implements the Distutils 'upload' subcommand (upload package to a package
index).
� N)�standard_b64encode)� HTTPError)�urlopen�Request)�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 �0/usr/lib64/python3.9/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 Z_read_pypircr r r r �distribution)r Zconfigr r r r 2 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 �msg�command� pyversion�filenamer r r �runD s
z
upload.runc "