Bump the wheel version to 0.1.6 so publishing succeeds - #36
Merged
Conversation
The 0.2.4 bump in the last change was the Cargo package `ruranges-py`, which is not what maturin names the wheel. The distribution version comes from `pyproject.toml`, and it was still 0.1.5, so PyPI rejected every file as already existing. My mistake; this bumps the version that actually ships. Two publish-step fixes while here. `packages` is not an input of gh-action-pypi-publish and was being ignored with a warning; the current name is `packages-dir`. Adding `skip-existing` makes a re-run idempotent rather than failing the whole job on one duplicate file. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The wheel publish failed with
400 File already exists ('ruranges-0.1.5-...whl').Cause — mine
In #35 I bumped
Cargo.tomlfrom 0.2.3 to 0.2.4. That is the Cargo packageruranges-py, which is not what maturin names the distribution. The wheel version comes frompyproject.toml's[project] version, which was still0.1.5— already on PyPI. Every file was therefore a duplicate.The two version numbers are unrelated and already far apart (Cargo 0.2.x, PyPI 0.1.x), which is what I missed.
pyproject.toml:0.1.5→0.1.6Two publish-step fixes while here
The run also logged:
packagesis not an input ofgh-action-pypi-publish; it was silently ignored and the action fell back to itsdist/default, which happened to be correct. Renamed topackages-dir.Added
skip-existing: trueso a re-run after a partial upload finishes the remaining files rather than failing the job on the first duplicate — which is exactly the state this run left things in.Note
Wheels and sdist built fine; only the upload failed. Nothing needs rebuilding, and no released artifact is affected.
🤖 Generated with Claude Code