homebrew-formula-maintenance
Homebrew formula maintenance workflows for Python CLIs and taps, including version bumps, SHA/resource updates, testing, audits, and releases.
- License 许可
- MIT
- 最近更新
- 2026-05-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- homebrew-formula-maintenance
- tags
- [ "homebrew", "formula", "tap", "python", "pypi", "release", "ci" ]
- author
- Claude MPM Team
- license
- MIT
- version
- 1.0.0
- category
- toolchain
- description
- Homebrew formula maintenance workflows for Python CLIs and taps, including version bumps, SHA/resource updates, testing, audits, and releases.
- progressive_disclosure
- { "entry_point": { "summary": "Maintain Homebrew Python formulas: bump version/sha, refresh resources, test install, audit/style, and push tap updates.", "quick_start": "1. Verify PyPI release exists 2. Update url+sha in Formula 3. Regenerate resources if needed 4. brew install --build-from-source + brew test + brew audit", "when_to_use": "Updating Homebrew tap formulas for Python CLIs, syncing PyPI releases, or automating tap updates in CI." } }
03 SKILL.md 正文
Homebrew Formula Maintenance
Overview
Use this workflow to keep Homebrew formulas in sync with PyPI releases for Python CLIs. The pattern in your taps is: update version + sha, refresh resource blocks when needed, run brew install/test/audit, then push the tap update (manually or via CI).
Quick Start (manual bump)
- Verify the PyPI release exists and grab the sdist URL + SHA256.
- Update the
urlandsha256in the formula. - Refresh
resourcestanzas if the formula usesvirtualenv_install_with_resources. - Test:
brew install --build-from-source+brew test+brew audit --strict. - Update changelog/tag and push the tap repo.
Local Scripts You Already Use
homebrew-claude-mpm/scripts/update_formula.sh <version>- Verifies PyPI, updates url/sha, regenerates resources, optional brew test/audit.
homebrew-claude-mpm/scripts/generate_resources.py- Emits Python dependency
resourceblocks from PyPI.
- Emits Python dependency
homebrew-claude-mpm/scripts/test_formula.sh- End-to-end brew install/test/audit/style.
mcp-vector-search/scripts/update_homebrew_formula.py- End-to-end tap update with
--dry-run,--version,--tap-repo-pathandHOMEBREW_TAP_TOKEN.
- End-to-end tap update with
Standard Workflow
1. Confirm PyPI Release
- Check the sdist is available and capture URL/SHA.
- Typical command:
curl -s https://pypi.org/pypi/<package>/<version>/json.
2. Update Formula URL + SHA
- Replace
urlandsha256inFormula/<name>.rb. - Keep the formula version implicit via the sdist URL (your taps do this).
3. Refresh Resources (Python Virtualenv Formula)
If the formula uses Language::Python::Virtualenv and virtualenv_install_with_resources:
- Regenerate
resourcestanzas after dependency changes. - Use
generate_resources.pyor equivalent; review output before pasting.
4. Test and Audit
Run these in the tap repo:
brew install --build-from-source ./Formula/<name>.rb
brew test <name>
brew audit --strict ./Formula/<name>.rb
brew style ./Formula/<name>.rb
5. Commit and Push
- Update
CHANGELOG.mdif the tap repo tracks releases. - Commit, tag, and push as required by the tap workflow.
Formula Patterns (From Your Taps)
Full Virtualenv Formula (claude-mpm)
include Language::Python::Virtualenvvirtualenv_install_with_resources- Large
resourceblocks to pin dependencies test douses CLI commands like--versionand subcommands
Minimal Venv Formula (mcp-vector-search)
- Create venv explicitly and
pip install -v buildpath bin.install_symlinkfor CLI entrypoint- Minimal
test douses--versionand--help
CI Automation Pattern
Your GitHub Actions workflow for Homebrew updates follows this flow:
- Trigger on tag or
workflow_runafter CI succeeds. - Run
scripts/update_homebrew_formula.py. - Require
HOMEBREW_TAP_TOKEN(and optionalHOMEBREW_TAP_REPO). - On failure, open an issue with manual update steps.
Troubleshooting
- PyPI release missing: verify tag push and publish step completed.
- SHA mismatch: re-fetch sdist SHA from PyPI JSON.
- brew audit failures: confirm dependency resource blocks match the sdist and
python@x.ydependency is present. - Install failures: verify
python@x.ydependency andvirtualenv_install_with_resourcesusage.
Related Skills
toolchains/universal/infrastructure/github-actionstoolchains/universal/infrastructure/docker
04 同仓库更多 Skills
simpy
Process-based discrete-event simulation framework in Python. Use this skill when building simulations of systems with processes, queues, resources, and time-based events such as manufacturing systems, service operations, network traffic, logistics, or any system where entities interact with shared resources over time.
shopify-expert
Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.
shap
Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.
shadcn-ui
Deep expertise on shadcn/ui component library including installation, customization, theming, and accessibility patterns. Use when building UI with shadcn/ui components, integrating Radix UI primitives, configuring Tailwind CSS v4 themes, or implementing dark mode. Covers Next.js App Router, Pages Router, and Vite setups.
seoul-subway-arrival
Look up Seoul real-time subway arrival information with the official Seoul Open Data API. Use when the user asks when a train arrives, which trains are approaching a station, or how crowded Seoul subway timing looks right now.
seo-optimization
Comprehensive 7-phase SEO optimization workflow covering technical SEO auditing, keyword research strategy, on-page optimization, content SEO and E-E-A-T, structured data implementation, link building, and AI search optimization. Use when auditing search engine visibility, diagnosing ranking issues, implementing schema markup, conducting keyword research, optimizing content for E-E-A-T signals, or adapting for AI-driven search (AI Overviews, SGE).