register.py 468 B

123456789101112131415161718
  1. from distutils import log
  2. import distutils.command.register as orig
  3. from setuptools.errors import RemovedCommandError
  4. class register(orig.register):
  5. """Formerly used to register packages on PyPI."""
  6. def run(self):
  7. msg = (
  8. "The register command has been removed, use twine to upload "
  9. + "instead (https://pypi.org/p/twine)"
  10. )
  11. self.announce("ERROR: " + msg, log.ERROR)
  12. raise RemovedCommandError(msg)