-
Notifications
You must be signed in to change notification settings - Fork 989
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
Error message is vague when wheel platform is not supported #17548
Comments
Can you turn on verbosity, retry & share the output? See https://github.com/pypa/gh-action-pypi-publish?tab=readme-ov-file#for-debugging |
Thanks for the quick response. I've turned |
|
Indeed, PyPI seems to refuse the android wheel. |
Actually, looking more closely, I think we just don't support PEP 738 yet. The list of platforms we permit in wheel filenames is here: warehouse/warehouse/utils/wheel.py Lines 19 to 43 in 6792d38
I see that PEP 738 says "The Android wheel tag format should also be added to the list of tags accepted by PyPI." but I don't think anyone's requested or proposed that yet. I would have expected a more useful error message though, so we should look into fixing that as well. |
I renamed this issue to be able the vague error message, and created #17549 to capture our need to support PEP 738. |
Twine should be outputing the reason: https://github.com/pypa/twine/blob/d9e4b080f0934b274f9f2896ea1f8812987cac7b/twine/__main__.py#L44 Maybe we're failing to provide it correctly? |
OK, I've taken out the android wheel and re-triggered the release. Publishing the other wheels worked well. |
The Android wheel tag has now been enabled in #17559, so you can try releasing it again if you like. |
Thanks for the info. For various reasons, I've decided not to provide android wheels for now after all. |
Describe the bug
Trying to upload pypdfium2 to TestPyPI failed with
HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
https://github.com/pypdfium2-team/pypdfium2/actions/runs/13120190203/job/36604287202
Expected behavior
Upload should pass, as it did on our previous release with the same workflow.
The workflow file itself has barely changed, however we've added a new platform in the build script (android).
To Reproduce
Run pypdfium2's release workflow. See the link above.
My Platform
GH actions runner (ubuntu-latest)
Additional context
This is our first release to include an android arm64 wheel (cf. PEP 738).
Alphabetically, this is the first file the PyPI publish action attempts to upload.
It is not clear to us whether the failure is specific to the android wheel, or if this was merely coincidence.
The text was updated successfully, but these errors were encountered: