diff options
author | Paul Ganssle <paul@ganssle.io> | 2019-10-31 11:25:57 -0400 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2019-11-02 15:10:29 -0400 |
commit | f413f95e95b34b26d9ed9d9c43b3e4b3d30caecc (patch) | |
tree | b064d6fa23466fcfd560cc513a661d6f5e38392e /setuptools/errors.py | |
parent | 6ac7b4ee036ef8e6954198689d214e8ee9b29118 (diff) | |
download | python-setuptools-git-f413f95e95b34b26d9ed9d9c43b3e4b3d30caecc.tar.gz |
Remove "upload" and "register" commands.
The upload and register commands were deprecated over a year ago, in
July 2018 (PR GH-1410, discussed in issue GH-1381). It is time to
actively remove them in favor of twine.
Diffstat (limited to 'setuptools/errors.py')
-rw-r--r-- | setuptools/errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/setuptools/errors.py b/setuptools/errors.py new file mode 100644 index 00000000..2701747f --- /dev/null +++ b/setuptools/errors.py @@ -0,0 +1,16 @@ +"""setuptools.errors + +Provides exceptions used by setuptools modules. +""" + +from distutils.errors import DistutilsError + + +class RemovedCommandError(DistutilsError, RuntimeError): + """Error used for commands that have been removed in setuptools. + + Since ``setuptools`` is built on ``distutils``, simply removing a command + from ``setuptools`` will make the behavior fall back to ``distutils``; this + error is raised if a command exists in ``distutils`` but has been actively + removed in ``setuptools``. + """ |