Test brew/pipx/uv tool installs from the branch in CI#42
Merged
Conversation
Lead the README with Homebrew (recommended) via `--HEAD` (works from the private repo today), then pipx and `uv tool install`, demoting the curl|sh one-liner to last. Back the documented install paths with real CI coverage built from the branch's own code: - uv tool: new `test_install_via_uv_tool` installs the branch wheel into a hermetic UV_TOOL_* home; the existing macOS matrix widens to `pipx or uv_tool`. pipx is already exercised by install.sh's `pipx install <wheel>` branch. - brew: new macOS-only `formula-install` job repoints the formula at a `git archive` tarball of the CI checkout with a computed sha256, installs it through a throwaway `--no-git` tap, and runs `aai version` + `brew test`. This sidesteps the placeholder sha that blocked real installs until the v0.1.0 tag, and exercises the formula's resource list (the part most likely to drift from pyproject/uv.lock). Also add a `head` spec to the formula so `brew install --HEAD aai` works pre-release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Resolve the README install-order conflict in favor of the branch's restructure (Homebrew-recommended first, pipx/uv, then the curl one-liner). Drop the invalid `--formula` flag from `brew test` in the formula-install CI job — `brew test` doesn't accept it (only `brew install` does), which is what failed the "brew install (real, macOS)" job after the install itself succeeded. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the README install order and adds real CI coverage for every documented install path, built from the branch's own code rather than a release tag or PyPI.
README
brew install --HEAD aaiso it works from the private, pre-release repo today (git clone uses your existing GitHub creds). Note explains dropping--HEADoncev0.1.0is tagged.uv tool installadded alongsidepipx install, both via the git URL — never the squattedassemblyai-cliPyPI name).curl | shone-liner demoted to last.CI — three install paths, all from the branch
pipx installinstall.sh's pipx branch ispipx install <branch wheel>uv tool installtest_install_via_uv_tool(hermeticUV_TOOL_*home, assertsaai version); macOS matrix widened-k pipx→-k "pipx or uv_tool"brew installformula-installjob (macOS only): repoints the formula at agit archivetarball of the CI checkout with a computedshasum, installs via a throwaway--no-gittap, runsaai version+brew testAll paths install the locally-built branch artifact (wheel / source tarball), so they prove the PR's code installs and runs, work while the repo is private, and match the existing
install_scriptdesign. The brew job repoints around the placeholdersha256that previously deferred real installs to release time, and exercises the formula's 50+ resource list — the part most likely to drift frompyproject.toml/uv.lock.Also adds a
headspec to the formula sobrew install --HEAD aaiworks pre-release.Verification
uv tool+pipxsmoke tests pass locally; ruff + markdownlint clean;brew styleclean (incl. newheadline)url/sha256change (all resources intact), brew parses it and detectsstable 0.1.0test_install_via_pip_userfails locally on macOS (PEP 668) — pre-existing, runs on Linux only in CI by designbrew installsource build (~10–15 min) is proven only by the new macOS CI job🤖 Generated with Claude Code