LAMPCAE/extlib/Python/Lib/site-packages/setuptools/command/upload.py

18 lines
462 B
Python
Raw Normal View History

from distutils import log
2024-03-20 08:12:44 +00:00
from distutils.command import upload as orig
from setuptools.errors import RemovedCommandError
2024-03-20 08:12:44 +00:00
class upload(orig.upload):
"""Formerly used to upload packages to PyPI."""
2024-03-20 08:12:44 +00:00
def run(self):
msg = (
"The upload command has been removed, use twine to upload "
+ "instead (https://pypi.org/p/twine)"
2024-03-20 08:12:44 +00:00
)
self.announce("ERROR: " + msg, log.ERROR)
raise RemovedCommandError(msg)