Repository navigation
Add a PyPI channel - #10
Conversation
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>
|
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 |
|
@sigit-code-review try again |
|
@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 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 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 |
onde-code ships through GitHub Releases, npm, NuGet and winget but not PyPI. This adds
pip install onde-codeanduvx onde-code, using maturinbinwheels, so the native binary ends up onPATH.release-pypi.ymlruns on thev*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, andonde-code --versionhas to match the tag. The Windows job also runscheck-static-crt.ps1on 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 withid-token: write.A few choices worth a look:
fake-mcp-serverstays out of the wheel. maturin packages every[[bin]], and this test-only binary would ship. It now hasrequired-features = ["test-binaries"], the feature is on by default socargo testis unchanged, andpyproject.tomlsetsno-default-features = true. The wheel job also fails if the file list contains it.aws-lc-sys. I did not add an OpenSSL install:cargo tree -i openssl-sysfinds nothing for either Linux target.Cargo.toml(dynamic = ["version"]).I ran
cargo fmt --check,clippy --all-targets -D warningsandcargo test --locked, all passing. I built a wheel locally with maturin: it holds onlyonde-code, installs in a venv, and reports 1.1.2. The sdist builds andactionlintis 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.2has nopackaging/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, ownerondeinference, repositoryonde-code, workflowrelease-pypi.yml, environment blank. Without it the publish fails withinvalid-publisher.Docs are updated in
README.md,docs/install.md,AGENTS.mdand the release skill. No version bump or tag.