1 |
commit: f95d3716c2eb5aed6c31a85d21f7839d04a7d961 |
2 |
Author: Alex Brandt <alunduil <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 22 13:31:29 2015 +0000 |
4 |
Commit: Alex Brandt <alunduil <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 22 13:31:29 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95d3716 |
7 |
|
8 |
dev-python/python-heatclient: add version 0.8.0 |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
|
12 |
dev-python/python-heatclient/Manifest | 1 + |
13 |
.../files/remove-unmaintained-tests.patch | 59 +++++++++++++++ |
14 |
.../python-heatclient-0.8.0.ebuild | 87 ++++++++++++++++++++++ |
15 |
3 files changed, 147 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-heatclient/Manifest b/dev-python/python-heatclient/Manifest |
18 |
index ea5f5fd..dbf41f2 100644 |
19 |
--- a/dev-python/python-heatclient/Manifest |
20 |
+++ b/dev-python/python-heatclient/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST python-heatclient-0.4.0.tar.gz 104613 SHA256 1b71e2bb5c380ac6b2e1f07b48b7b3 |
22 |
DIST python-heatclient-0.5.0.tar.gz 104320 SHA256 b64eadecea1ecab5b69c1f51ddd157d53d218dea1360c201843f28a052cb3dbf SHA512 97ac1bb3ef1ca82730650e42dffa5dec2f1f37fac63c38a8c2de87b2ccf772b905749f4e9211831ec92871ebaee57a5094a4a1005e7391823a6dee27b0592dd8 WHIRLPOOL fc90b7a21d70c9044cdb39d626584192dcc347f531f0dc83b5b349d8731b7e3e0278586f5dcec32d9be10d02a6a6cb53175c6088fc43857b9b874a979da77de2 |
23 |
DIST python-heatclient-0.6.0.tar.gz 109553 SHA256 fe293e11d145d86b92649063eb50d1f599dab88a327707d76a72b12022b77bbb SHA512 04b8836c212a8825b6ffb839715df881189a08e3c587762a661744bdd730d6aaf99c9e3497642011b0696692c856e12131bc8d1ff6a69cb88ae5b48aa3872b39 WHIRLPOOL 683497a0363ce636499af5866838242ef1fc2769c54d5ddf32e8dcfd5d0d2f3b648d46c0bb59c14bf1043875bf65ec99b090add1a289c9c95d383ce5ba918e3f |
24 |
DIST python-heatclient-0.7.0.tar.gz 119131 SHA256 6f58a3c759056dbcbf071e1707d6649e6d15cfc710daa1b98e9703b83a4a01c2 SHA512 5c9f12b08abaa9ff07a0dd72ceef7b205ae2afeb4d8900b2e1c3f709fc6df63f56f9d31b45acc17cfb51a1ec849bd3cd271877d9489c40d665488346531c97f0 WHIRLPOOL 0c911dca2dd48229c83ff83bcfa699d07e0ea39b3bbfff5bd3e3e7fbe62fa747ade252bb7ad320334c4bc9fd481c2c528058368d8828e56c20c0254105559035 |
25 |
+DIST python-heatclient-0.8.0.tar.gz 121399 SHA256 5cd1c855ee21f18bfffbc7269e40c417b953d0855aa3cc8b56d778b8612467d5 SHA512 c17d445e646c3fc2f10bb622ba2a38299182e0a7841e0dae0e7c4482bc4d8868569b2204c18dc98456507d6f5abbf64db0b8e06c21bacf360883b24bfb01efc1 WHIRLPOOL 9c0b41d01458bcb3b26be163fb1e9e557b37fafc26d9698df73cfe722f8e02b991f36731e42bb5de88f2c7c3c0d86ee7154e1da76c99755cf9b7dcea0d79718e |
26 |
|
27 |
diff --git a/dev-python/python-heatclient/files/remove-unmaintained-tests.patch b/dev-python/python-heatclient/files/remove-unmaintained-tests.patch |
28 |
new file mode 100644 |
29 |
index 0000000..fb3fea3 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/python-heatclient/files/remove-unmaintained-tests.patch |
32 |
@@ -0,0 +1,59 @@ |
33 |
+diff --git a/heatclient/tests/unit/test_common_http.py b/heatclient/tests/unit/test_common_http.py |
34 |
+index bb2fa20..309db93 100644 |
35 |
+--- a/heatclient/tests/unit/test_common_http.py |
36 |
++++ b/heatclient/tests/unit/test_common_http.py |
37 |
+@@ -624,15 +624,6 @@ class HttpClientTest(testtools.TestCase): |
38 |
+ self.assertEqual(200, resp.status_code) |
39 |
+ self.assertEqual({}, body) |
40 |
+ |
41 |
+- def test_get_system_ca_file(self): |
42 |
+- chosen = '/etc/ssl/certs/ca-certificates.crt' |
43 |
+- self.m.StubOutWithMock(os.path, 'exists') |
44 |
+- os.path.exists(chosen).AndReturn(chosen) |
45 |
+- self.m.ReplayAll() |
46 |
+- |
47 |
+- ca = http.get_system_ca_file() |
48 |
+- self.assertEqual(chosen, ca) |
49 |
+- |
50 |
+ def test_insecure_verify_cert_None(self): |
51 |
+ client = http.HTTPClient('https://foo', insecure=True) |
52 |
+ self.assertFalse(client.verify_cert) |
53 |
+diff --git a/heatclient/tests/unit/test_shell.py b/heatclient/tests/unit/test_shell.py |
54 |
+index 0e4bf03..dad8a9f 100644 |
55 |
+--- a/heatclient/tests/unit/test_shell.py |
56 |
++++ b/heatclient/tests/unit/test_shell.py |
57 |
+@@ -3449,34 +3449,6 @@ class ShellTestResources(ShellBase): |
58 |
+ def test_resource_list_no_resource_name(self): |
59 |
+ self._test_resource_list(False) |
60 |
+ |
61 |
+- def test_resource_list_empty(self): |
62 |
+- self.register_keystone_auth_fixture() |
63 |
+- resp_dict = {"resources": []} |
64 |
+- resp = fakes.FakeHTTPResponse( |
65 |
+- 200, |
66 |
+- 'OK', |
67 |
+- {'content-type': 'application/json'}, |
68 |
+- jsonutils.dumps(resp_dict)) |
69 |
+- stack_id = 'teststack/1' |
70 |
+- http.SessionClient.request( |
71 |
+- '/stacks/%s/resources' % ( |
72 |
+- stack_id), 'GET').AndReturn(resp) |
73 |
+- |
74 |
+- self.m.ReplayAll() |
75 |
+- |
76 |
+- resource_list_text = self.shell('resource-list {0}'.format(stack_id)) |
77 |
+- |
78 |
+- self.assertEqual('''\ |
79 |
+-+---------------+----------------------+---------------+-----------------+\ |
80 |
+---------------+ |
81 |
+-| resource_name | physical_resource_id | resource_type | resource_status |\ |
82 |
+- updated_time | |
83 |
+-+---------------+----------------------+---------------+-----------------+\ |
84 |
+---------------+ |
85 |
+-+---------------+----------------------+---------------+-----------------+\ |
86 |
+---------------+ |
87 |
+-''', resource_list_text) |
88 |
+- |
89 |
+ def test_resource_list_nested(self): |
90 |
+ self.register_keystone_auth_fixture() |
91 |
+ resp_dict = {"resources": [{ |
92 |
|
93 |
diff --git a/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild b/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild |
94 |
new file mode 100644 |
95 |
index 0000000..21d05c1 |
96 |
--- /dev/null |
97 |
+++ b/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild |
98 |
@@ -0,0 +1,87 @@ |
99 |
+# Copyright 1999-2015 Gentoo Foundation |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+# $Id$ |
102 |
+ |
103 |
+EAPI=5 |
104 |
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
105 |
+ |
106 |
+inherit distutils-r1 |
107 |
+ |
108 |
+DESCRIPTION="OpenStack Orchestration API Client Library" |
109 |
+HOMEPAGE="http://www.openstack.org/" |
110 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
111 |
+ |
112 |
+LICENSE="Apache-2.0" |
113 |
+SLOT="0" |
114 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
115 |
+IUSE="doc test" |
116 |
+ |
117 |
+CDEPEND=" |
118 |
+ >=dev-python/pbr-1.6[${PYTHON_USEDEP}] |
119 |
+ <dev-python/pbr-2.0[${PYTHON_USEDEP}] |
120 |
+" |
121 |
+DEPEND=" |
122 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
123 |
+ ${CDEPEND} |
124 |
+ test? ( |
125 |
+ >=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/requests-mock-0.6.0[${PYTHON_USEDEP}] |
127 |
+ >=dev-python/mock-1.2[${PYTHON_USEDEP}] |
128 |
+ >=dev-python/mox3-0.7.0[${PYTHON_USEDEP}] |
129 |
+ >dev-python/oslotest-1.10.0[${PYTHON_USEDEP}] |
130 |
+ >=dev-python/tempest-lib-0.6.1[${PYTHON_USEDEP}] |
131 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
132 |
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
133 |
+ >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] |
134 |
+ ) |
135 |
+ doc? ( |
136 |
+ >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] |
137 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
138 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
139 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
140 |
+ ) |
141 |
+" |
142 |
+ |
143 |
+RDEPEND=" |
144 |
+ ${CDEPEND} |
145 |
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
146 |
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] |
147 |
+ >=dev-python/prettytable-0.7[${PYTHON_USEDEP}] |
148 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
149 |
+ >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] |
150 |
+ >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}] |
151 |
+ >=dev-python/oslo-utils-2.0.0[${PYTHON_USEDEP}] |
152 |
+ >=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}] |
153 |
+ >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}] |
154 |
+ >=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}] |
155 |
+ >=dev-python/requests-2.5.2[${PYTHON_USEDEP}] |
156 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
157 |
+" |
158 |
+ |
159 |
+python_prepare_all() { |
160 |
+ local PATCHES=( |
161 |
+ "${FILESDIR}"/remove-unmaintained-tests.patch |
162 |
+ ) |
163 |
+ |
164 |
+ sed -i '/^argparse/d' requirements.txt || die |
165 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
166 |
+ |
167 |
+ distutils-r1_python_prepare_all |
168 |
+} |
169 |
+ |
170 |
+python_compile_all() { |
171 |
+ use doc && esetup.py build_sphinx |
172 |
+} |
173 |
+ |
174 |
+python_test() { |
175 |
+ rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPYTHON}" |
176 |
+ |
177 |
+ testr init |
178 |
+ testr run || die "testsuite failed under ${EPYTHON}" |
179 |
+} |
180 |
+ |
181 |
+python_install_all() { |
182 |
+ use doc && local HTML_DOCS=( doc/build/html/. ) |
183 |
+ |
184 |
+ distutils-r1_python_install_all |
185 |
+} |