diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-19 03:57:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 03:57:17 (GMT) |
commit | 2072c80d061fc879dd51ce67dbd5ed672b92a9cd (patch) | |
tree | 7bf1921a8c488ec82e282dee14d1b8009c6a54d5 /Lib/distutils/command/upload.py | |
parent | 19b7f6694af56a1c9fdc0f1f9fc09ae48439ab4c (diff) | |
download | cpython-2072c80d061fc879dd51ce67dbd5ed672b92a9cd.zip cpython-2072c80d061fc879dd51ce67dbd5ed672b92a9cd.tar.gz cpython-2072c80d061fc879dd51ce67dbd5ed672b92a9cd.tar.bz2 |
Improve error message for "setup.py upload" without dist files (GH-21060)
(cherry picked from commit 08a6926b2584040fe3c3f06263b0b5f1fbbdc24c)
Co-authored-by: Éric Araujo <merwok@netwok.org>
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) |