Skip to content

Publish to PyPI via maturin#17

Open
ggueret wants to merge 2 commits into
mainfrom
pypi-publishing
Open

Publish to PyPI via maturin#17
ggueret wants to merge 2 commits into
mainfrom
pypi-publishing

Conversation

@ggueret

@ggueret ggueret commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Distribute the git-server binary on PyPI (alongside crates.io) via maturin, so it installs with pip install git-server or uvx git-server.

Changes

  • pyproject.toml: maturin backend, bindings = "bin", targets the crates/git-server binary in the workspace
  • release.yml: add build-wheels (maturin; Linux/macOS, x86_64 + aarch64) and publish-pypi (PyPI OIDC trusted publishing, no token); new actions pinned to commit SHAs

Context

Two one-time setup steps are required before the first tagged release:

  • PyPI: add a pending trusted publisher for git-server (owner ggueret, repo git-server, workflow release.yml, environment release)
  • GitHub: create the release environment on the repo

Test plan

  • maturin build produces a git_server-0.1.0 wheel embedding the binary (validated locally)

@ggueret ggueret force-pushed the pypi-publishing branch 2 times, most recently from 4bf0ad4 to f1de9c8 Compare June 9, 2026 17:56
@ggueret ggueret force-pushed the pypi-publishing branch from f1de9c8 to 3f8abab Compare June 9, 2026 19:03
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