pypa / gh-action-pypi-publish

The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish
https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
BSD 3-Clause "New" or "Revised" License
930 stars 87 forks source link

`HTTPError: 400 ... has an unsupported platform tag` cancels uploads #252

Closed Rot127 closed 2 months ago

Rot127 commented 2 months ago

Our cibuildwheel action built a wheel with the unsupported platform tag manylinux1_aarch64.

During the upload pypip rejects the wheel with:

ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         Binary wheel                                                           
         'capstone-5.0.2-py3-none-manylinux1_aarch64.manylinux_2_17_aarch64.many
         linux2014_aarch64.whl' has an unsupported platform tag                 
         'manylinux1_aarch64'.        

The problem is that the whole upload now fails. Previous wheels were uploaded others not.

The action should just attempt to upload the next wheel and print a warning. Because the following might still be valid.

webknjaz commented 2 months ago

We call twine upload once against all the files. That would have to be implemented in Twine. The action is a thin wrapper.

Rot127 commented 2 months ago

Ok, guess this one is then out of scope.