Skip to content
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

Display error when uploading signed file with no distribution #932

Merged
merged 3 commits into from
Dec 5, 2022

Conversation

jmwoliver
Copy link
Contributor

Related to #931.

If a user only uploads a signed .asc file without any distribution files, this now throws an error to make it more clear why Twine doesn't do anything.

twine/commands/upload.py Outdated Show resolved Hide resolved
twine/commands/upload.py Outdated Show resolved Hide resolved
@jmwoliver
Copy link
Contributor Author

@sigmavirus24 Is this able to be merged/rerun? Or is someone looking at fixing #936 first? No rush of course, just curious!

Copy link
Member

@di di left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside from one small tweak. Can you rebase to get CI passing?

tests/test_upload.py Outdated Show resolved Hide resolved
twine/commands/upload.py Outdated Show resolved Hide resolved
Related to pypa#931.

If a user only uploads a signed .asc file without any distribution
files, this now throws an error to make it more clear why Twine
doesn't do anything.
@jmwoliver
Copy link
Contributor Author

@di Thanks for the approval, I've rebased with your suggestion. It looks like as a first-time contributor, a maintainer needs to run the workflows. Would you mind getting those to run?

@jmwoliver
Copy link
Contributor Author

This should be ready to merge whenever someone is available to do so!

@bhrutledge bhrutledge merged commit a43f6ea into pypa:main Dec 5, 2022
@jmwoliver
Copy link
Contributor Author

Thanks for merging, @bhrutledge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants