summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gentoo.org>2015-11-22 07:31:29 -0600
committerAlex Brandt <alunduil@gentoo.org>2015-11-22 07:31:29 -0600
commitf95d3716c2eb5aed6c31a85d21f7839d04a7d961 (patch)
treedb2794b08096a1bd8c0f9b3bd6e877f924999d68 /dev-python/python-heatclient
parentdev-python/oslotest: re-add python3_3 (diff)
downloadgentoo-f95d3716c2eb5aed6c31a85d21f7839d04a7d961.tar.gz
gentoo-f95d3716c2eb5aed6c31a85d21f7839d04a7d961.tar.bz2
gentoo-f95d3716c2eb5aed6c31a85d21f7839d04a7d961.zip
dev-python/python-heatclient: add version 0.8.0
Package-Manager: portage-2.2.25
Diffstat (limited to 'dev-python/python-heatclient')
-rw-r--r--dev-python/python-heatclient/Manifest1
-rw-r--r--dev-python/python-heatclient/files/remove-unmaintained-tests.patch59
-rw-r--r--dev-python/python-heatclient/python-heatclient-0.8.0.ebuild87
3 files changed, 147 insertions, 0 deletions
diff --git a/dev-python/python-heatclient/Manifest b/dev-python/python-heatclient/Manifest
index ea5f5fd81c5c..dbf41f2a96c8 100644
--- a/dev-python/python-heatclient/Manifest
+++ b/dev-python/python-heatclient/Manifest
@@ -2,3 +2,4 @@ DIST python-heatclient-0.4.0.tar.gz 104613 SHA256 1b71e2bb5c380ac6b2e1f07b48b7b3
DIST python-heatclient-0.5.0.tar.gz 104320 SHA256 b64eadecea1ecab5b69c1f51ddd157d53d218dea1360c201843f28a052cb3dbf SHA512 97ac1bb3ef1ca82730650e42dffa5dec2f1f37fac63c38a8c2de87b2ccf772b905749f4e9211831ec92871ebaee57a5094a4a1005e7391823a6dee27b0592dd8 WHIRLPOOL fc90b7a21d70c9044cdb39d626584192dcc347f531f0dc83b5b349d8731b7e3e0278586f5dcec32d9be10d02a6a6cb53175c6088fc43857b9b874a979da77de2
DIST python-heatclient-0.6.0.tar.gz 109553 SHA256 fe293e11d145d86b92649063eb50d1f599dab88a327707d76a72b12022b77bbb SHA512 04b8836c212a8825b6ffb839715df881189a08e3c587762a661744bdd730d6aaf99c9e3497642011b0696692c856e12131bc8d1ff6a69cb88ae5b48aa3872b39 WHIRLPOOL 683497a0363ce636499af5866838242ef1fc2769c54d5ddf32e8dcfd5d0d2f3b648d46c0bb59c14bf1043875bf65ec99b090add1a289c9c95d383ce5ba918e3f
DIST python-heatclient-0.7.0.tar.gz 119131 SHA256 6f58a3c759056dbcbf071e1707d6649e6d15cfc710daa1b98e9703b83a4a01c2 SHA512 5c9f12b08abaa9ff07a0dd72ceef7b205ae2afeb4d8900b2e1c3f709fc6df63f56f9d31b45acc17cfb51a1ec849bd3cd271877d9489c40d665488346531c97f0 WHIRLPOOL 0c911dca2dd48229c83ff83bcfa699d07e0ea39b3bbfff5bd3e3e7fbe62fa747ade252bb7ad320334c4bc9fd481c2c528058368d8828e56c20c0254105559035
+DIST python-heatclient-0.8.0.tar.gz 121399 SHA256 5cd1c855ee21f18bfffbc7269e40c417b953d0855aa3cc8b56d778b8612467d5 SHA512 c17d445e646c3fc2f10bb622ba2a38299182e0a7841e0dae0e7c4482bc4d8868569b2204c18dc98456507d6f5abbf64db0b8e06c21bacf360883b24bfb01efc1 WHIRLPOOL 9c0b41d01458bcb3b26be163fb1e9e557b37fafc26d9698df73cfe722f8e02b991f36731e42bb5de88f2c7c3c0d86ee7154e1da76c99755cf9b7dcea0d79718e
diff --git a/dev-python/python-heatclient/files/remove-unmaintained-tests.patch b/dev-python/python-heatclient/files/remove-unmaintained-tests.patch
new file mode 100644
index 000000000000..fb3fea3454d0
--- /dev/null
+++ b/dev-python/python-heatclient/files/remove-unmaintained-tests.patch
@@ -0,0 +1,59 @@
+diff --git a/heatclient/tests/unit/test_common_http.py b/heatclient/tests/unit/test_common_http.py
+index bb2fa20..309db93 100644
+--- a/heatclient/tests/unit/test_common_http.py
++++ b/heatclient/tests/unit/test_common_http.py
+@@ -624,15 +624,6 @@ class HttpClientTest(testtools.TestCase):
+ self.assertEqual(200, resp.status_code)
+ self.assertEqual({}, body)
+
+- def test_get_system_ca_file(self):
+- chosen = '/etc/ssl/certs/ca-certificates.crt'
+- self.m.StubOutWithMock(os.path, 'exists')
+- os.path.exists(chosen).AndReturn(chosen)
+- self.m.ReplayAll()
+-
+- ca = http.get_system_ca_file()
+- self.assertEqual(chosen, ca)
+-
+ def test_insecure_verify_cert_None(self):
+ client = http.HTTPClient('https://foo', insecure=True)
+ self.assertFalse(client.verify_cert)
+diff --git a/heatclient/tests/unit/test_shell.py b/heatclient/tests/unit/test_shell.py
+index 0e4bf03..dad8a9f 100644
+--- a/heatclient/tests/unit/test_shell.py
++++ b/heatclient/tests/unit/test_shell.py
+@@ -3449,34 +3449,6 @@ class ShellTestResources(ShellBase):
+ def test_resource_list_no_resource_name(self):
+ self._test_resource_list(False)
+
+- def test_resource_list_empty(self):
+- self.register_keystone_auth_fixture()
+- resp_dict = {"resources": []}
+- resp = fakes.FakeHTTPResponse(
+- 200,
+- 'OK',
+- {'content-type': 'application/json'},
+- jsonutils.dumps(resp_dict))
+- stack_id = 'teststack/1'
+- http.SessionClient.request(
+- '/stacks/%s/resources' % (
+- stack_id), 'GET').AndReturn(resp)
+-
+- self.m.ReplayAll()
+-
+- resource_list_text = self.shell('resource-list {0}'.format(stack_id))
+-
+- self.assertEqual('''\
+-+---------------+----------------------+---------------+-----------------+\
+---------------+
+-| resource_name | physical_resource_id | resource_type | resource_status |\
+- updated_time |
+-+---------------+----------------------+---------------+-----------------+\
+---------------+
+-+---------------+----------------------+---------------+-----------------+\
+---------------+
+-''', resource_list_text)
+-
+ def test_resource_list_nested(self):
+ self.register_keystone_auth_fixture()
+ resp_dict = {"resources": [{
diff --git a/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild b/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild
new file mode 100644
index 000000000000..21d05c1b60b5
--- /dev/null
+++ b/dev-python/python-heatclient/python-heatclient-0.8.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
+
+inherit distutils-r1
+
+DESCRIPTION="OpenStack Orchestration API Client Library"
+HOMEPAGE="http://www.openstack.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+CDEPEND="
+ >=dev-python/pbr-1.6[${PYTHON_USEDEP}]
+ <dev-python/pbr-2.0[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${CDEPEND}
+ test? (
+ >=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}]
+ >=dev-python/requests-mock-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/mock-1.2[${PYTHON_USEDEP}]
+ >=dev-python/mox3-0.7.0[${PYTHON_USEDEP}]
+ >dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
+ >=dev-python/tempest-lib-0.6.1[${PYTHON_USEDEP}]
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
+ >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
+ )
+ doc? (
+ >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
+ )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
+ >=dev-python/prettytable-0.7[${PYTHON_USEDEP}]
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}]
+ >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-utils-2.0.0[${PYTHON_USEDEP}]
+ >=dev-python/python-keystoneclient-1.6.0[${PYTHON_USEDEP}]
+ >=dev-python/python-swiftclient-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.5.2[${PYTHON_USEDEP}]
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}"/remove-unmaintained-tests.patch
+ )
+
+ sed -i '/^argparse/d' requirements.txt || die
+ sed -i '/^hacking/d' test-requirements.txt || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && esetup.py build_sphinx
+}
+
+python_test() {
+ rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPYTHON}"
+
+ testr init
+ testr run || die "testsuite failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/build/html/. )
+
+ distutils-r1_python_install_all
+}