Current Dir: /snap/core22/2437/usr/lib/python3.10/distutils/command/__pycache__/
[FILE] bdist.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_dumb.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_msi.cpython-310.pyc [ edit | delete | rename ]
[FILE] bdist_rpm.cpython-310.pyc [ edit | delete | rename ]
[FILE] build.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_clib.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_ext.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_py.cpython-310.pyc [ edit | delete | rename ]
[FILE] build_scripts.cpython-310.pyc [ edit | delete | rename ]
[FILE] check.cpython-310.pyc [ edit | delete | rename ]
[FILE] clean.cpython-310.pyc [ edit | delete | rename ]
[FILE] config.cpython-310.pyc [ edit | delete | rename ]
[FILE] install.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_data.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_egg_info.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_headers.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_lib.cpython-310.pyc [ edit | delete | rename ]
[FILE] install_scripts.cpython-310.pyc [ edit | delete | rename ]
[FILE] register.cpython-310.pyc [ edit | delete | rename ]
[FILE] sdist.cpython-310.pyc [ edit | delete | rename ]
[FILE] upload.cpython-310.pyc [ edit | delete | rename ]
[FILE] __init__.cpython-310.pyc [ edit | delete | rename ]
Viewing: /snap/core22/2437/usr/lib/python3.10/distutils/command/__pycache__/upload.cpython-310.pyc
o
��bc� � @ 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)�
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 �//usr/lib/python3.10/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! 2 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 �runD s �z
upload.runc "