Skip to content

Add a PyPI channel - #10

Merged
paydii merged 1 commit into
mainfrom
feature/pypi-channel
Nov 15, 2026
Merged

paydii merged 1 commit into
mainfrom
feature/pypi-channel

Conversation

@setoelkahfi

Copy link
Copy Markdown
Contributor

onde-code ships through GitHub Releases, npm, NuGet and winget but not PyPI. This adds pip install onde-code and uvx onde-code, using maturin bin wheels, so the native binary ends up on PATH.

release-pypi.yml runs on the v* tag, like the other channels, and also on manual dispatch. It builds wheels for darwin arm64/x64, linux x64/arm64 (manylinux 2_28) and windows x64, plus an sdist. Each wheel is installed into a fresh venv, and onde-code --version has to match the tag. The Windows job also runs check-static-crt.ps1 on the installed exe. The publish job needs every build, so one failed target publishes nothing. It uses trusted publishing, skips versions already on PyPI, and is the only job with id-token: write.

A few choices worth a look:

  • fake-mcp-server stays out of the wheel. maturin packages every [[bin]], and this test-only binary would ship. It now has required-features = ["test-binaries"], the feature is on by default so cargo test is unchanged, and pyproject.toml sets no-default-features = true. The wheel job also fails if the file list contains it.
  • manylinux 2_28 instead of 2014, because of aws-lc-sys. I did not add an OpenSSL install: cargo tree -i openssl-sys finds nothing for either Linux target.
  • No version sync. The wheel version comes from the workspace Cargo.toml (dynamic = ["version"]).

I ran cargo fmt --check, clippy --all-targets -D warnings and cargo test --locked, all passing. I built a wheel locally with maturin: it holds only onde-code, installs in a venv, and reports 1.1.2. The sdist builds and actionlint is clean.

I could not test the manylinux and Windows builds or the publish itself. The first real run is the next v* tag. v1.1.2 has no packaging/pypi/, so it can't be used for a dispatch dry run. If something fails, the fix needs a new tag because the jobs check out the tag's sources.

Before the next tag, someone with access to the PyPI account needs to add a pending publisher (Account, Publishing): project onde-code, owner ondeinference, repository onde-code, workflow release-pypi.yml, environment blank. Without it the publish fails with invalid-publisher.

Docs are updated in README.md, docs/install.md, AGENTS.md and the release skill. No version bump or tag.

Publish onde-code to PyPI as maturin bin wheels for the five release
targets plus an sdist, so pip install onde-code and uvx onde-code put the
native binary on PATH. release-pypi.yml runs on the v* tag and publishes
with trusted publishing, only after every wheel has built and passed a
smoke test.

fake-mcp-server now requires the default-on test-binaries feature, and the
PyPI build turns default features off, so the test-only binary stays out
of the wheel while cargo test is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@setoelkahfi setoelkahfi self-assigned this Nov 9, 2026
@sigit-code-review

Copy link
Copy Markdown

siGit Code Review couldn't finish this review: the model service was unavailable. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit 7403338 · see the review dashboard

@setoelkahfi

Copy link
Copy Markdown
Contributor Author

@sigit-code-review try again

@sigit-code-review

Copy link
Copy Markdown

@setoelkahfi siGit Code Review couldn't finish this review: the model's reply could not be read. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit 7403338 · requested by @setoelkahfi · see the review dashboard

@setoelkahfi

Copy link
Copy Markdown
Contributor Author

@sigit-code-review

@setoelkahfi

Copy link
Copy Markdown
Contributor Author

@sigit-code-review now

@sigit-code-review

Copy link
Copy Markdown

@setoelkahfi siGit Code Review couldn't finish this review: the model's reply could not be read. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit 7403338 · requested by @setoelkahfi · see the review dashboard

@setoelkahfi
setoelkahfi removed the request for review from sigit-code-review November 15, 2026 12:06

@paydii paydii left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@setoelkahfi

Copy link
Copy Markdown
Contributor Author

@sigit-code-review

@sigit-code-review

Copy link
Copy Markdown

@setoelkahfi siGit Code Review couldn't finish this review: the model's reply could not be read. Mention @sigit-code-review to try again.


Automated review by siGit Code Review · commit 7403338 · requested by @setoelkahfi · see the review dashboard

@paydii
paydii merged commit ba2c32a into main Nov 15, 2026
5 checks passed
@paydii
paydii deleted the feature/pypi-channel branch November 15, 2026 22:05
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.

4 participants