Repository navigation
feat(dist): Homebrew formula + auto-bump action (#1237) - #1341
Conversation
Adds a Homebrew tap template under nix/homebrew-tap-template/ as the in-repo source of truth for the polylogue formula shape, plus a .github/workflows/homebrew-bump.yml workflow that auto-PRs a formula bump against Sinity/homebrew-tap on every vX.Y.Z tag push (mirrors the PyPI publish in release.yml). The formula installs from PyPI sdist via virtualenv_install_with_resources, declares [email protected], exposes polylogue/polylogued/polylogue-mcp on PATH, ships a `service do ... end` block so users can opt in to the daemon via `brew services start polylogued`, and includes a test block that smokes each binary against an empty XDG archive. The bump workflow polls PyPI for sdist availability, computes sha256, rewrites url/sha256 in the template, runs `brew update-python-resources` to regenerate dependency resource blocks, gates on `brew audit --strict --online`, then opens or refreshes a PR via gh against the tap repo. docs/installation.md documents the new channel; docs/release.md notes the new HOMEBREW_TAP_TOKEN secret requirement and links the workflow into the cut-time flow. Closes #1237
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR delivers complete Homebrew distribution for polylogue: a formula template installed from PyPI via virtualenv, a GitHub Actions workflow automating tap PR creation on release tags, and comprehensive documentation for users and maintainers. ChangesHomebrew formula distribution and auto-bump
🎯 3 (Moderate) | ⏱️ ~25 minutes
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad74136081
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Adds a Homebrew distribution channel for macOS and Linuxbrew users. The
formula installs from the PyPI sdist (post-#1234 trusted publishing) and
exposes
polylogue,polylogued, andpolylogue-mcponPATH. Acompanion workflow auto-PRs the formula bump against
Sinity/homebrew-tapon everyvX.Y.Ztag push, mirroring the existing PyPI publish path.Problem
#1237 (under the #953 broad-distribution umbrella) calls for Homebrew
coverage now that PyPI publishing is stable. The umbrella's strengthening
pass explicitly defers Homebrew until the Python install contract is
stable; that condition is now satisfied. Without an auto-bump, third-
party Homebrew taps rot quickly — most die from the manual maintenance
tax, not from technical issues with the formula.
Solution
nix/homebrew-tap-template/Formula/polylogue.rb: in-repo source oftruth for the formula shape. Uses
virtualenv_install_with_resources, declares[email protected], adds aservice doblock (opt-in, not auto-started), and atest doblockthat smokes each of the three entrypoints against an empty XDG archive.
nix/homebrew-tap-template/README.md: doubles as the tap repo README;documents
brew tap sinity/tap && brew install polylogue, thebrew services start polyloguedopt-in, and local iteration commands..github/workflows/homebrew-bump.yml: tag-triggered workflow thatpolls PyPI for sdist availability (up to 10 minutes), computes the
sha256, rewrites
url/sha256in the template, runsbrew update-python-resourcesto regenerate the Python resourcedependency closure, gates on
brew audit --strict --online, thenopens or refreshes a PR against the tap repo using a
HOMEBREW_TAP_TOKENfine-grained PAT secret.docs/installation.md: adds a Homebrew section to the channel tableand a full subsection with install/service/iteration guidance.
docs/release.md: wires the bump workflow into the cut-time flow anddocuments the one-time
HOMEBREW_TAP_TOKENsecret requirement.Decision: formula not cask (CLI-only, not GUI). Decision: own tap not
homebrew-core (per AC — defer core submission until distribution
stabilizes). Decision: bump workflow rewrites url/sha256 from the
in-repo template each run rather than editing the tap formula in place
— guarantees future formula-shape edits flow through this repo, not
the tap.
Verification
Pre-push hook also ran
devtools verify --quickagainst the pushedcommit; same result.
Closes #1237
Ref #953
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation