feat: add homebrew Formula #42
Merged
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.
I had some issues with my local python env, so built a homebrew formula.
In general, homebrew allows installation of packages from GitHub with the following format
However, this requires that we have a repo named github.com/agentops-ai/homebrew-agentstack, with the contents of this PR.
If we want to keep it all in the same repo, users can run the following instead
In order for this to work, we need to ensure that every dep from the lockfile is codified in the formula, and that the url + shasum are kept up to date for each release.
In the formula, you'll see "url" and "shasum". Those will need updating per release. You'll also need to change the list of resources if anything changes with your deps.
This is pretty annoying, but luckily there's some tooling!
I used "poet" to generate a bunch of this, though it needed some manual tweaking - https://github.com/tdsmith/homebrew-pypi-poet
Also, note this line in the install function
There's currently an issue with the later versions of Xcode, while building the YAML package used here
Upstream ref: https://sourceforge.net/p/ruamel-yaml-clib/tickets/32/