Skip to content

Only publish .tar.gz file (and not .whl) - #640

Merged
ladc merged 1 commit into
mainfrom
jbelien-patch-1
Nov 29, 2026
Merged

ladc merged 1 commit into
mainfrom
jbelien-patch-1

Conversation

@jbelien

@jbelien jbelien commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Currently uv publish tries to publish both the .tar.gz and .whl file but the "linux_x86_64" tag set by CPYthon is not a valid platform tag:

Publishing 2 files to https://upload.pypi.org/legacy/
Hashing pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl (1.7MiB)
Hashing pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl (1.7MiB)
 Hashed pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl
Uploading pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl (1.7MiB)
Uploading pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl (1.7MiB)
 Uploaded pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl
error: Failed to publish `dist/pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl` to `[https://upload.pypi.org/legacy/`](https://upload.pypi.org/legacy/%60)
  cause: Server returned status code 400 Bad Request. Server says: 400 Binary wheel 'pysteps-2.0.0rc4-cp313-cp313-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'.

This PR ask uv to publish only the .tar.gz file.
This is how it was before switching to uv publish ; see previous pre-release (https://pypi.org/project/PySTEPS/2.0.0rc3/#files)

@jbelien jbelien self-assigned this Nov 29, 2026
@jbelien
jbelien marked this pull request as ready for review November 29, 2026 20:37
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@jbelien

jbelien commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

Separated ticket created to tackle the publication of a Python wheel: #641

@ladc
ladc merged commit 7a52407 into main Nov 29, 2026
15 checks passed
@ladc
ladc deleted the jbelien-patch-1 branch November 29, 2026 21:14
@jbelien

jbelien commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

This solved the publishing but apparently skipped the attestation. Looking into it ...

ladc pushed a commit that referenced this pull request Nov 29, 2026
When limiting the publication to the `.tar.gz` file in #640, I forgot to
also include its attestation. This PR fixes it.

> [!note]
> This also prepare the `2.0.0rc6` version (forgotten in the previous
PR).
@jbelien

jbelien commented Nov 29, 2026

Copy link
Copy Markdown
Contributor Author

This solved the publishing but apparently skipped the attestation. Looking into it ...

Solved by #642 ; sorry for the mess!

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.

2 participants