2016-03-26 12:43:02 +00:00
|
|
|
class Fades < Formula
|
|
|
|
desc "Automatically handle virtualenvs for python scripts"
|
2016-04-17 20:15:04 +00:00
|
|
|
homepage "https://fades.readthedocs.org/"
|
2016-03-26 12:43:02 +00:00
|
|
|
url "https://pypi.python.org/packages/source/f/fades/fades-5.tar.gz"
|
|
|
|
sha256 "1952f496059ba6bac535f2c07effae44a55de0654ababaa1a15879c4b3fa89c1"
|
2016-12-23 15:13:19 +00:00
|
|
|
revision 1
|
2016-03-26 12:43:02 +00:00
|
|
|
head "https://github.com/PyAr/fades.git"
|
|
|
|
|
2016-04-03 22:37:50 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-12-24 09:25:22 +00:00
|
|
|
sha256 "9b4e3a4f485e75ec2a65686db6207dfd5f085c3ae96970933b6ecd647f788cf6" => :sierra
|
|
|
|
sha256 "1a44cbdb4c7ee07150271ad72e9bf55f1edccce3e601e8d474dc80c033d38f35" => :el_capitan
|
|
|
|
sha256 "1a44cbdb4c7ee07150271ad72e9bf55f1edccce3e601e8d474dc80c033d38f35" => :yosemite
|
2016-04-03 22:37:50 +00:00
|
|
|
end
|
|
|
|
|
2016-03-26 12:43:02 +00:00
|
|
|
depends_on :python3
|
|
|
|
|
|
|
|
def install
|
|
|
|
pyver = Language::Python.major_minor_version "python3"
|
|
|
|
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{pyver}/site-packages"
|
|
|
|
system "python3", *Language::Python.setup_install_args(libexec)
|
|
|
|
|
|
|
|
bin.install Dir[libexec/"bin/*"]
|
2016-09-24 15:45:48 +00:00
|
|
|
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
2016-03-26 12:43:02 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.py").write("print('it works')")
|
|
|
|
system "#{bin}/fades", testpath/"test.py"
|
|
|
|
end
|
|
|
|
end
|