HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/mysqlsh/lib/python3.8/site-packages/setuptools/command/upload.py
from setuptools.dist import Distribution
from setuptools.errors import RemovedCommandError

from distutils import log
from distutils.command import upload as orig


class upload(orig.upload):
    """Formerly used to upload packages to PyPI."""

    distribution: Distribution  # override distutils.dist.Distribution with setuptools.dist.Distribution

    def run(self):
        msg = (
            "The upload command has been removed, use twine to upload "
            "instead (https://pypi.org/p/twine)"
        )

        self.announce("ERROR: " + msg, log.ERROR)
        raise RemovedCommandError(msg)