Server IP : 111.118.215.189 / Your IP : 216.73.216.126 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib64/python3.6/distutils/command/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 �i�g� � @ 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 � Zd d� Zdd � Z dd� Z dS )�uploadzupload binary package to PyPI�sign�s�sign files to upload using gpg� identity=�i�GPG identity used to sign filesc C s, t j| � d| _d| _d| _d| _d | _d S )N� r F)r �initialize_options�username�password� 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 � repository�realm)r �finalize_optionsr r r Z_read_pypircr r r r �distribution)r �configr r r r ( s zupload.finalize_optionsc C s>