GH Actions not able to upload to PYPI
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 498
- Forks
- 178
- PR merge metrics
- No merged PRs in 30d
Description
Related to #170 I think. From the last run: https://github.com/NCAR/wrf-python/runs/6613143643?check_suite_focus=true
Uploading wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl
25l
0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/663.4 kB • --:-- • ?
0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/663.4 kB • --:-- • ?
0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/663.4 kB • --:-- • ?
25% ━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/663.4 kB • 00:01 • 2.7 MB/s
75% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━━━━━━━━━ 499.7/663.4 kB • 00:01 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 663.4/663.4 kB • 00:00 • 2.8 MB/s
25hINFO Response from https://upload.pypi.org/legacy/:
400 Binary wheel 'wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl' has
an unsupported platform tag 'linux_x86_64'.
INFO <html>
<head>
<title>400 Binary wheel
'wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl' has an unsupported
platform tag 'linux_x86_64'.</title>
</head>
<body>
<h1>400 Binary wheel
'wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl' has an unsupported
platform tag 'linux_x86_64'.</h1>
The server could not comply with the request since it is either
malformed or otherwise incorrect.<br/><br/>
Binary wheel
'wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl' has an
unsupported platform tag 'linux_x86_64'.
</body>
</html>
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Binary wheel 'wrf_python-1.3.4.1-cp310-cp310-linux_x86_64.whl' has an
unsupported platform tag 'linux_x86_64'.
I think this is explained in https://peps.python.org/pep-0513/#rationale. Still trying to digest that PEP text to see what would be the fix.
One way to test a fix for this would be to use the test instance of PYPI, so we don't have to wait for a release to test it 👍 , https://test.pypi.org/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked GitHub Actions run and inspect the workflow step that builds and uploads the wheel. Compare the generated linux_x86_64 platform tag with PyPI's supported tags and test a proposed packaging change against test.pypi.org; done means the wheel uploads successfully without the 400 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, python
- Domain
- ci-cd, release
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100