From 4b0a65332c1b34cab14c1477c1158a850d8ed31f Mon Sep 17 00:00:00 2001 From: Ian Brandt Date: Sun, 27 Sep 2015 19:34:24 -0700 Subject: [PATCH] saltstack 2015.8.0 Closes Homebrew/homebrew#44395. Signed-off-by: Dominyk Tiller --- Formula/saltstack.rb | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/Formula/saltstack.rb b/Formula/saltstack.rb index 25f2951e7b..7f80ef0143 100644 --- a/Formula/saltstack.rb +++ b/Formula/saltstack.rb @@ -5,10 +5,9 @@ class Saltstack < Formula # (URLs starting with https://github.com/saltstack/salt/releases/download) # github tag archives will report wrong version number # https://github.com/Homebrew/homebrew/issues/43493 - url "https://github.com/saltstack/salt/releases/download/v2015.5.5/salt-2015.5.5.tar.gz" - sha256 "5cd8d317616abab691a83f7fd3f8bcf9ad8aecaa95fcfdc0f6d788de87f0beeb" + url "https://github.com/saltstack/salt/releases/download/v2015.8.0/salt-2015.8.0.tar.gz" + sha256 "71e1cb2eb1d4b30f3247f5590c00a2089190b8f9a90c9330dc9a65fae517ec9b" head "https://github.com/saltstack/salt.git", :branch => "develop", :shallow => false - revision 1 bottle do cellar :any @@ -44,6 +43,11 @@ class Saltstack < Formula sha256 "398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d" end + resource "futures" do + url "https://pypi.python.org/packages/source/f/futures/futures-3.0.3.tar.gz" + sha256 "2fe2342bb4fe8b8e217f0d21b5921cbe5408bf966d9f92025e707e881b198bed" + end + resource "pycrypto" do url "https://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz" sha256 "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c" @@ -76,8 +80,8 @@ class Saltstack < Formula # Required by tornado resource "certifi" do - url "https://pypi.python.org/packages/source/c/certifi/certifi-2015.04.28.tar.gz" - sha256 "99785e6cf715cdcde59dee05a676e99f04835a71e7ced201ca317401c322ba96" + url "https://pypi.python.org/packages/source/c/certifi/certifi-2015.9.6.2.tar.gz" + sha256 "dc3a2b2d9d1033dbf27586366ae61b9d7c44d8c3a6f29694ffcbb0618ea7aea6" end # Required by tornado @@ -87,8 +91,8 @@ class Saltstack < Formula end resource "tornado" do - url "https://pypi.python.org/packages/source/t/tornado/tornado-4.2.tar.gz" - sha256 "e8b1207da67dbdceebfb291292b4ef1b547d6171525bec1b366853f923456a5f" + url "https://pypi.python.org/packages/source/t/tornado/tornado-4.2.1.tar.gz" + sha256 "a16fcdc4f76b184cb82f4f9eaeeacef6113b524b26a2cb331222e4a7fa6f2969" end def install @@ -101,8 +105,8 @@ class Saltstack < Formula ENV.prepend_path "PATH", buildpath/"swig/bin" ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" - rs = %w[requests pycrypto pyyaml markupsafe jinja2 pyzmq msgpack-python] - rs += %w[certifi backports.ssl_match_hostname tornado] if build.head? + rs = %w[requests futures pycrypto pyyaml markupsafe jinja2 pyzmq msgpack-python] + rs += %w[certifi backports.ssl_match_hostname tornado] rs.each do |r| resource(r).stage do system "python", *Language::Python.setup_install_args(libexec/"vendor") @@ -134,6 +138,9 @@ class Saltstack < Formula end test do + ENV.prepend_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages" + system "python", "-c", "import M2Crypto" + system "#{bin}/salt", "--version" end end