Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/setuptools/_distutils/command/__pycache__/ |
Upload File : |
o �_�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)� md5_digest� sha256_digest�blake2_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 �F/usr/lib/python3/dist-packages/setuptools/_distutils/command/upload.pyr ) s zupload.initialize_optionsc C sz t �| � | jr| jstd��| �� }|i kr+|d | _|d | _|d | _|d | _ | js9| j jr;| j j| _d S d S 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 js d}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 "