| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib64/python3.7/distutils/command/__pycache__/ |
Upload File : |
B
� f] � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m
Z
ddlmZ ddl
mZmZ ddlmZ ddlmZ dd lmZ G d
d� 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)�logc @ 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 �=/opt/alt/python37/lib64/python3.7/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 ( s
zupload.finalize_optionsc C s>