Unverified Kaydet (Commit) 08a6926b authored tarafından Éric Araujo's avatar Éric Araujo Kaydeden (comit) GitHub

Improve error message for "setup.py upload" without dist files (#21060)

üst 3fb813d2
......@@ -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)
......
Rewrite confusing message from setup.py upload from
"No dist file created in earlier command" to the more helpful
"Must create and upload files in one command".
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment