-
Notifications
You must be signed in to change notification settings - Fork 7
/
flocker-0.3.3dev7.rb
133 lines (106 loc) · 4.57 KB
/
flocker-0.3.3dev7.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
require "formula"
class Flocker033dev7 < Formula
homepage "https://clusterhq.com"
url "https://storage.googleapis.com/archive.clusterhq.com/downloads/flocker/Flocker-0.3.3dev7.tar.gz"
sha1 "b4ed2e38bc4142eec14a4705ead62165fb29162a"
depends_on :python if MacOS.version <= :snow_leopard
resource "backports.ssl-match-hostname" do
url "https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.4.0.2.tar.gz"
sha1 "da4e41f3b110279d2382df47ac1e4f10c63cf954"
end
resource "characteristic" do
url "https://pypi.python.org/packages/source/c/characteristic/characteristic-14.3.0.tar.gz"
sha1 "81e19af03f3cba606e159f1abb47fdff7d2e6e90"
end
resource "docker-py" do
url "https://pypi.python.org/packages/source/d/docker-py/docker-py-0.7.1.tar.gz"
sha1 "6ecb9353954061970764dde46994b3eb936cdd29"
end
resource "eliot" do
url "https://pypi.python.org/packages/source/e/eliot/eliot-0.6.0.tar.gz"
sha1 "cc2ab19d0725e37ccaf09f8edf3dfc0dce5ad026"
end
resource "ipaddr" do
url "https://pypi.python.org/packages/source/i/ipaddr/ipaddr-2.1.11.tar.gz"
sha1 "f9a16ddb3cf774b8dcf8894c2f4295c4e17d0ed3"
end
resource "jsonschema" do
url "https://pypi.python.org/packages/source/j/jsonschema/jsonschema-2.4.0.tar.gz"
sha1 "35d4d90ce942a4b030eda75e9a2b32f97e121a98"
end
resource "klein" do
url "https://pypi.python.org/packages/source/k/klein/klein-0.2.3.tar.gz"
sha1 "4f994c8d2d484dd02414a5a2569e931b5b8893eb"
end
resource "machinist" do
url "https://pypi.python.org/packages/source/m/machinist/machinist-0.2.0.tar.gz"
sha1 "63ffaf3d71c5136947ced35a60068e868df4e299"
end
resource "netifaces" do
url "https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz"
sha1 "c3fcd491a89c2994815053e853b005e7fc27c79a"
end
resource "psutil" do
url "https://pypi.python.org/packages/source/p/psutil/psutil-2.1.2.tar.gz"
sha1 "ca69a2b6041250e9044bc5ee9436e20a8c869f49"
end
resource "pyrsistent" do
url "https://pypi.python.org/packages/source/p/pyrsistent/pyrsistent-0.7.0.tar.gz"
sha1 "0df286bdcda27bacd67321154c7e74c48e3ba43b"
end
resource "pytz" do
url "https://pypi.python.org/packages/source/p/pytz/pytz-2014.10.tar.bz2"
sha1 "74a1869c804dd422afbc49cb92206a0ca1529ddc"
end
resource "PyYAML" do
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.10.tar.gz"
sha1 "476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73"
end
resource "requests" do
url "https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz"
sha1 "411f1bfa44556f7dd0f34cd822047c31baa7d741"
end
resource "setuptools" do
url "https://pypi.python.org/packages/source/s/setuptools/setuptools-3.6.tar.gz"
sha1 "745cbb942f8015dbcbfd9df5cb815adb63c7b0e9"
end
resource "six" do
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
sha1 "d168e6d01f0900875c6ecebc97da72d0fda31129"
end
resource "treq" do
url "https://pypi.python.org/packages/source/t/treq/treq-0.2.1.tar.gz"
sha1 "fc19b107d0cd6660f797ec6f82c3a61d5e2a768a"
end
resource "Twisted" do
url "https://pypi.python.org/packages/source/T/Twisted/Twisted-15.0.0.tar.bz2"
sha1 "c72bd9a932d944e2e1c4901f7e1cc79b1214472a"
end
resource "websocket-client" do
url "https://pypi.python.org/packages/source/w/websocket-client/websocket-client-0.25.0.tar.gz"
sha1 "afed8bb62c2761f6fd695918d18eddc790416166"
end
resource "Werkzeug" do
url "https://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-0.10.1.tar.gz"
sha1 "7cbfdd4c298e7fa6cb58e78cfc1712beb92077cd"
end
resource "zope.interface" do
url "https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.2.tar.gz"
sha1 "6d940ecd621df0437ee9deb17d03ba105c13f07f"
end
def install
ENV.prepend_create_path "PYTHONPATH", "#{libexec}/vendor/lib/python2.7/site-packages"
%w[backports.ssl-match-hostname characteristic docker-py eliot ipaddr jsonschema klein machinist netifaces psutil pyrsistent pytz PyYAML requests setuptools six treq Twisted websocket-client Werkzeug zope.interface].each do |r|
resource(r).stage do
system "python", *Language::Python.setup_install_args(libexec/"vendor")
end
end
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system "#{bin}/flocker-deploy", "--version"
end
end