diff options
author | Éric Araujo <merwok@netwok.org> | 2018-02-18 23:14:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 23:14:54 (GMT) |
commit | 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c (patch) | |
tree | 211d7e0944594400c73c48877c21ea29d233771b /Lib/distutils/command/upload.py | |
parent | 3fb813d2c67fe28cc98ae51e53a6890294b6e423 (diff) | |
download | cpython-08a6926b2584040fe3c3f06263b0b5f1fbbdc24c.zip cpython-08a6926b2584040fe3c3f06263b0b5f1fbbdc24c.tar.gz cpython-08a6926b2584040fe3c3f06263b0b5f1fbbdc24c.tar.bz2 |
Improve error message for "setup.py upload" without dist files (#21060)
Diffstat (limited to 'Lib/distutils/command/upload.py')
-rw-r--r-- | Lib/distutils/command/upload.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py index f7752f9..32dda35 100644 --- a/Lib/distutils/command/upload.py +++ b/Lib/distutils/command/upload.py @@ -57,7 +57,8 @@ class upload(PyPIRCCommand): def run(self): if not self.distribution.dist_files: - msg = "No dist file created in earlier command" + msg = ("Must create and upload files in one command " + "(e.g. setup.py sdist upload)") raise DistutilsOptionError(msg) for command, pyversion, filename in self.distribution.dist_files: self.upload_file(command, pyversion, filename) |