Skip to content

Drive wheel build mode from kind instead of an arbitrary cmd input#299

Merged
dwoz merged 1 commit into
mainfrom
release-build-kind
Jun 10, 2026
Merged

Drive wheel build mode from kind instead of an arbitrary cmd input#299
dwoz merged 1 commit into
mainfrom
release-build-kind

Conversation

@dwoz

@dwoz dwoz commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

package-action.yml accepted a kind input but never used it. Its cmd input — what actually decided the wheel build — defaulted to a command that appends a PEP 440 local version (+dev<sha>) on every build, including release builds called from auto-release.yml.

PyPI rejects local versions, so the latest deploy run blew up with "400 The use of local versions in '0.22.13+devd3eddac' is not allowed."

Make kind the source of truth:

kind == release -> python -m build --wheel --outdir dist/
otherwise -> ... --tag-build=+dev ... (existing dev path)

Drop the now-redundant package_command/cmd plumbing from ci.yml, release.yml, and package-action.yml. auto-release.yml already passes kind=release, so the same change fixes the merge-triggered path too.

package-action.yml accepted a `kind` input but never used it.  Its
`cmd` input — what actually decided the wheel build — defaulted to a
command that appends a PEP 440 local version (`+dev<sha>`) on every
build, including release builds called from auto-release.yml.

PyPI rejects local versions, so the latest deploy run blew up with
"400 The use of local versions in '0.22.13+devd3eddac' is not allowed."

Make `kind` the source of truth:

  kind == release  -> python -m build --wheel --outdir dist/
  otherwise        -> ... --tag-build=+dev<sha> ... (existing dev path)

Drop the now-redundant `package_command`/`cmd` plumbing from ci.yml,
release.yml, and package-action.yml.  auto-release.yml already passes
kind=release, so the same change fixes the merge-triggered path too.
@dwoz
dwoz merged commit 38d1bb0 into main Jun 10, 2026
2 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