2018-03-24 09:44:28 +00:00
|
|
|
class Pygitup < Formula
|
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
|
|
|
desc "Nicer 'git pull'"
|
|
|
|
homepage "https://github.com/msiemens/PyGitUp"
|
|
|
|
url "https://files.pythonhosted.org/packages/12/e8/fd6a0f29c6b7ecb52dc1e9bec96825a1a0ff0f2ce34cd50898040cce9673/git-up-1.5.0.tar.gz"
|
|
|
|
sha256 "e35ebd100fae7e37745baade1190c709c2047987c9b077edb4794ea8ccbeab60"
|
|
|
|
|
2018-05-27 10:38:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "dd3c8cd2761f857ece8ab1e9a112475e770b3d06abfb3416ae19e0d777caacd7" => :high_sierra
|
|
|
|
sha256 "1317c472920d4711e009dfbee37d4b6b0348924c5ee2a43c079e665f3536c2df" => :sierra
|
|
|
|
sha256 "60c14f94f7124c4b659c2f04042d3971cec6b909c742cf8e66279ee7b0c7e24e" => :el_capitan
|
|
|
|
end
|
|
|
|
|
2018-03-24 09:44:28 +00:00
|
|
|
depends_on "python"
|
|
|
|
|
|
|
|
resource "click" do
|
|
|
|
url "https://files.pythonhosted.org/packages/95/d9/c3336b6b5711c3ab9d1d3a80f1a3e2afeb9d8c02a7166462f6cc96570897/click-6.7.tar.gz"
|
|
|
|
sha256 "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "colorama" do
|
|
|
|
url "https://files.pythonhosted.org/packages/e6/76/257b53926889e2835355d74fec73d82662100135293e17d382e2b74d1669/colorama-0.3.9.tar.gz"
|
|
|
|
sha256 "48eb22f4f8461b1df5734a074b57042430fb06e1d61bd1e11b078c0fe6d7a1f1"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "gitdb2" do
|
|
|
|
url "https://files.pythonhosted.org/packages/84/11/22e68bd46fd545b17d0a0b200cf75c20e9e7b817726a69ad5f3070fd0d3c/gitdb2-2.0.3.tar.gz"
|
|
|
|
sha256 "b60e29d4533e5e25bb50b7678bbc187c8f6bcff1344b4f293b2ba55c85795f09"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "GitPython" do
|
|
|
|
url "https://files.pythonhosted.org/packages/f1/e4/2879ab718c80bc9261b34f214e27280f63437068582f8813ff2552373196/GitPython-2.1.10.tar.gz"
|
|
|
|
sha256 "b60b045cf64a321e5b620debb49890099fa6c7be6dfb7fb249027e5d34227301"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
|
|
|
url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
|
|
|
|
sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "smmap2" do
|
|
|
|
url "https://files.pythonhosted.org/packages/48/d8/25d9b4b875ab3c2400ec7794ceda8093b51101a9d784da608bf65ab5f5f5/smmap2-2.0.3.tar.gz"
|
|
|
|
sha256 "c7530db63f15f09f8251094b22091298e82bf6c699a6b8344aaaef3f2e1276c3"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "termcolor" do
|
|
|
|
url "https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz"
|
|
|
|
sha256 "1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
virtualenv_install_with_resources
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["LC_ALL"] = "en_US.UTF-8"
|
|
|
|
system "git", "clone", "https://github.com/Homebrew/install.git"
|
|
|
|
cd "install" do
|
|
|
|
assert_match "Fetching origin", shell_output("#{bin}/git-up")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|