MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //usr/lib/mysqlsh/lib/python3.9/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)