Skip to content

Bump the wheel version to 0.1.6 so publishing succeeds - #36

Merged
marco-mariotti merged 1 commit into
masterfrom
fix-wheel-publish-version
Jul 27, 2026
Merged

Bump the wheel version to 0.1.6 so publishing succeeds#36
marco-mariotti merged 1 commit into
masterfrom
fix-wheel-publish-version

Conversation

@marco-mariotti

Copy link
Copy Markdown
Member

The wheel publish failed with 400 File already exists ('ruranges-0.1.5-...whl').

Cause — mine

In #35 I bumped Cargo.toml from 0.2.3 to 0.2.4. That is the Cargo package ruranges-py, which is not what maturin names the distribution. The wheel version comes from pyproject.toml's [project] version, which was still 0.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.50.1.6

Two publish-step fixes while here

The run also logged:

Unexpected input(s) 'packages', valid inputs are ['user', 'password', … 'packages-dir', …]

packages is not an input of gh-action-pypi-publish; it was silently ignored and the action fell back to its dist/ default, which happened to be correct. Renamed to packages-dir.

Added skip-existing: true so 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

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>
@marco-mariotti
marco-mariotti merged commit 21c0066 into master Jul 27, 2026
14 of 15 checks passed
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.

1 participant