-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate bumping formula and testing build #2
Comments
Here's something helpful: https://pypi.org/project/poetry-homebrew-formula/ a package to install with poetry to create the homebrew formula. |
Those docs are great but THIS WORKS - poetry install inside of brew class Desertislandutils < Formula
include Language::Python::Virtualenv
desc "Be here, thy collection of personal convenience utilities"
homepage "https://github.com/mahiki/homebrew-tap"
url "https://github.com/mahiki/desertislandutils/releases/download/v0.3.10/desertislandutils-0.3.10.tar.gz"
sha256 "9c8304fdb02a1fd9d3ffd460cdaf25f1b22a70f2d18ebde700080d328c306216"
license "MIT"
depends_on "[email protected]"
depends_on "poetry"
def install
venv = virtualenv_create(libexec, "python3")
ENV["VIRTUAL_ENV"] = libexec
ENV.prepend_path "PATH", "#{libexec}/bin"
puts "install stage libexec path: #{libexec}"
puts "env VIRTUAL_ENV: #{ENV["VIRTUAL_ENV"]}"
puts "buildpath: #{buildpath}"
cd buildpath do
system "poetry", "install", "--no-root"
end
venv.pip_install_and_link buildpath
end
test do
system "#{bin}/wn", "--help"
system "#{bin}/too", "--help"
end
end |
Maybe change back to pypi releases via |
mahiki
changed the title
Brew package development / deployment process
Automate bumping formula and testing build
Jul 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goals:
RSRC
GHA from source repo, bump formula
triggering GHA action from another repo with API
reusable workflow with
on: workflow_call
To make this run smoothly you need to learn a bit about developing homebrew formula and there are a few gotchas in the build/compile/binaries/configurations world of it.
Maybe just build your packages in Julia and deploy those as scripts? Its another path toward solving the same problem.
This package's purpose is cleanly deploying packaged python applications to my home macos environment.
update 2024-07-24: I figured out how to deploy installment using poetry. No more need for resource blocks and jinja templates. See below.
update 2024-09-27: this post about GHA trigger from other repo prob has the answer
The text was updated successfully, but these errors were encountered: