diff options
| author | Paul Ganssle <pganssle@users.noreply.github.com> | 2018-07-09 09:24:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-09 09:24:10 -0400 |
| commit | 54ce65990c26ff68750ae682b6bacd5eed7d56ba (patch) | |
| tree | d68cac2542e4820a9387827c109b7a60873757b7 /setuptools/command/upload.py | |
| parent | 510c3c64bd32e7c3870001e5e7a56ca5e387e797 (diff) | |
| parent | 7edce73432363808834c001bbda05944eff5caa0 (diff) | |
| download | python-setuptools-git-54ce65990c26ff68750ae682b6bacd5eed7d56ba.tar.gz | |
Merge pull request #1410 from di/deprecate-upload-and-register
Deprecate upload and register commands
Diffstat (limited to 'setuptools/command/upload.py')
| -rw-r--r-- | setuptools/command/upload.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index a44173a9..72f24d8f 100644 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -1,4 +1,5 @@ import getpass +from distutils import log from distutils.command import upload as orig @@ -8,6 +9,16 @@ class upload(orig.upload): in a variety of different ways. """ + def run(self): + try: + orig.upload.run(self) + finally: + self.announce( + "WARNING: Uploading via this command is deprecated, use twine " + "to upload instead (https://pypi.org/p/twine/)", + log.WARN + ) + def finalize_options(self): orig.upload.finalize_options(self) self.username = ( |
