Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/setuptools/command/register.py @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
| author | shellac |
|---|---|
| date | Mon, 22 Mar 2021 18:12:50 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4f3585e2f14b |
|---|---|
| 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) |
