Mercurial > repos > guerler > hhblits
comparison lib/python3.8/site-packages/setuptools/command/register.py @ 1:64071f2a4cf0 draft default tip
Deleted selected files
| author | guerler |
|---|---|
| date | Mon, 27 Jul 2020 03:55:49 -0400 |
| parents | 9e54283cc701 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:9e54283cc701 | 1:64071f2a4cf0 |
|---|---|
| 1 from distutils import log | |
| 2 import distutils.command.register as orig | |
| 3 | |
| 4 from setuptools.errors import RemovedCommandError | |
| 5 | |
| 6 | |
| 7 class register(orig.register): | |
| 8 """Formerly used to register packages on PyPI.""" | |
| 9 | |
| 10 def run(self): | |
| 11 msg = ( | |
| 12 "The register command has been removed, use twine to upload " | |
| 13 + "instead (https://pypi.org/p/twine)" | |
| 14 ) | |
| 15 | |
| 16 self.announce("ERROR: " + msg, log.ERROR) | |
| 17 | |
| 18 raise RemovedCommandError(msg) |
