Commit f59e08fa authored by Éric Araujo's avatar Éric Araujo Committed by GitHub

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

parent b3168e5e
......@@ -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)
......
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