-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
teach distutils "upload" to exit with code != 0 when error occurs #65921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This patch teaches distutils/command/upload.py to return a non-zero exit code when uploading fails. Currently a zero error code is returned (specifically, no Exception is raised by upload.run(...)) regardless of the HTTP response from the server or any socket error during that conversation. Should be applied against tip. Thanks. |
The attached file is a patch for backporting this fix to 2.7.7. |
Thanks you for the patch. It may be good to add a unit test for this. |
Here is the patch against hg tip. |
Here is the patch against hg 2.7. |
I will submit patches with tests as soon as the before & after tests finish. |
Here is the patch against tip, including a new test case. |
Here is the patch against 2.7, including a new test case. |
If you'd like me to change anything about the test case please let me know. |
I've got the contrib form bit now. |
Thank you Martin. I will take a look soon at the patch. |
New changeset d86214c98a9c by Antoine Pitrou in branch '3.4': New changeset 979aaa08c067 by Antoine Pitrou in branch 'default': |
New changeset cf70f030a744 by Antoine Pitrou in branch '2.7': |
I've now committed the fix. Thank you for your contribution! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: