summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2018-02-18 18:14:54 -0500
committerGitHub <noreply@github.com>2018-02-18 18:14:54 -0500
commitf59e08fa002c62b8a9a36eed4e068d471585e565 (patch)
tree313d7a3d97f264ab58a92d7c8a9d3ba924ebcc8a
parentb3168e5e01e79300b17c1791eed97c4733fa7a49 (diff)
downloadpython-setuptools-git-f59e08fa002c62b8a9a36eed4e068d471585e565.tar.gz
Improve error message for "setup.py upload" without dist files (#21060)
-rw-r--r--command/upload.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command/upload.py b/command/upload.py
index f7752f9d..32dda359 100644
--- a/command/upload.py
+++ b/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)