-
Notifications
You must be signed in to change notification settings - Fork 310
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
Add helpful error message for incorrect PyPI URL #509
Conversation
Signed-off-by: Aditya Saky <aditya@saky.in>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! I've asked for some changes to make the message more accurate, plus a couple stylistic things.
Also, since this is new conditional behavior, it'd be nice to have a test for it. Unfortunately, we don't have an existing test of check_status_code
. Even though this code is in twine.utils
, I'd be inclined to test it in test_upload.py, since this is upload-specific code. That makes me wonder if check_status_code
should be moved to commands/upload.py, similar to skip_upload
.
Are you game to continue working on this?
Signed-off-by: Aditya Saky <aditya@saky.in>
Thanks for the quick review!
Yep, I looked to see where Edit: I should probably also update this docstring:
|
e7a3976
to
ec53ae8
Compare
Signed-off-by: Aditya Saky <aditya@saky.in>
@bhrutledge let me know if this looks okay and if I need to add more tests. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround! Looking good. I've got a few requests, plus some additional opportunities for testing. If you're game to continue working on it, we'd appreciate it, but we could also finish it up.
… test name and override comment Signed-off-by: Aditya Saky <aditya@saky.in>
445c092
to
d2cc71d
Compare
…repository URLs Signed-off-by: Aditya Saky <aditya@saky.in>
Signed-off-by: Aditya Saky <aditya@saky.in>
@bhrutledge I think I've mostly resolved your suggestions. Let me know about the additional test for deprecated PyPI repository URLs. :) |
Thanks for continuing to work on this @adityasaky, and thanks for the ping. It might be the weekend before I can review it, but I'm hoping to get to it sooner. |
No worries, thanks for the update! :) |
b36d6b8
to
9068268
Compare
Signed-off-by: Aditya Saky <aditya@saky.in>
@bhrutledge Sorry for the delay, let me know if this checks all the boxes. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for continuing to work on this, and bearing with my pedantic feedback. I think this is sufficient, and an improvement, so I'm wary of asking you to keep going. You're welcome to, but I'm also happy to make my suggested changes (which are admittedly a bit vague).
bc89769
to
1a9d5e0
Compare
Signed-off-by: Aditya Saky <aditya@saky.in>
Signed-off-by: Aditya Saky <aditya@saky.in>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sigmavirus24 Thanks for the feedback. At the risk of hijacking this PR with maintainer-level discussion, I've asked a few questions.
@adityasaky Thanks for your patience. If you're game to make the requested style changes, awesome. Otherwise, I'm happy to do it, if you grant us permission to make changes to your branch.
Thanks for the feedback @bhrutledge, @sigmavirus24! I aim to work on the requested changes later this week / early next week. I hope that's okay. |
@adityasaky Of course! Thanks again. Let us know if you have any questions. |
Signed-off-by: Aditya Saky <aditya@saky.in>
Signed-off-by: Aditya Saky <aditya@saky.in>
Signed-off-by: Aditya Saky <aditya@saky.in>
Apologies for the lateness. I believe I've addressed everything except potentially moving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adityasaky Thanks for coming back to this! Hopefully just a few more quick changes.
Signed-off-by: Aditya Saky <aditya@saky.in>
4a51553
to
360eb5a
Compare
Signed-off-by: Aditya Saky <aditya@saky.in>
I think that's everything, @bhrutledge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for sticking with this. Looks good to me, and the diff is definitely easier to read.
@sigmavirus24 What do you think?
Thanks everybody for the diligent work on this change that's sure to improve the user experience. |
Closes #499.