| 1234567891011121314151617 | from distutils import logfrom distutils.command import upload as origfrom setuptools.errors import RemovedCommandErrorclass upload(orig.upload):    """Formerly used to upload packages to PyPI."""    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)
 |