Skip to content

Commit

Permalink
formula finally good on v0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mahiki committed Jul 23, 2024
1 parent 4497a67 commit a8d10fc
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions Formula/desertislandutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,13 @@ class Desertislandutils < Formula

def install
venv = virtualenv_create(libexec, "python3")

ENV["VIRTUAL_ENV"] = libexec

puts "libexec: #{libexec}"
# this comes as: libexec: /opt/homebrew/Cellar/desertislandutils/0.3.10/libexec

system "poetry", "install", "--no-root"

venv.pip_install_and_link buildpath

end

test do
# TODO: you should like test the brew install and function test of your cli things
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test desertislandutils`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "#{bin}/wn", "--help"

# TODO: basic test of built function
# system "#{bin}/wn", "--help"
# system "#{bin}/too", "--help"
system "#{bin}/too", "--help"
end
end

0 comments on commit a8d10fc

Please sign in to comment.