1 |
commit: f10eb626054eb58272ec15dd5dea20aa552355d4 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 30 19:54:10 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 19:55:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f10eb626 |
7 |
|
8 |
dev-python/python-cinderclient: fix tests |
9 |
|
10 |
Fix broken tests with stestr and use correct unittest facility |
11 |
|
12 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
13 |
|
14 |
.../python-cinderclient-8.0.0-r2.ebuild | 45 ++++++++++++++++++++++ |
15 |
1 file changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/python-cinderclient/python-cinderclient-8.0.0-r2.ebuild b/dev-python/python-cinderclient/python-cinderclient-8.0.0-r2.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..8453b966a99 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/python-cinderclient/python-cinderclient-8.0.0-r2.ebuild |
22 |
@@ -0,0 +1,45 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{8..9} ) |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="A client for the OpenStack Cinder API" |
32 |
+HOMEPAGE="https://launchpad.net/python-cinderclient" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="Apache-2.0" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ >=dev-python/keystoneauth-4.2.1[${PYTHON_USEDEP}] |
41 |
+ >=dev-python/oslo-i18n-5.0.1[${PYTHON_USEDEP}] |
42 |
+ >=dev-python/oslo-utils-4.8.0[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/pbr-5.5.0[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/prettytable-0.7.2[${PYTHON_USEDEP}] |
45 |
+ <dev-python/prettytable-0.8[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/requests-2.25.1[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/simplejson-3.5.1[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/stevedore-3.3.0[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+BDEPEND=" |
51 |
+ dev-python/pbr[${PYTHON_USEDEP}] |
52 |
+ test? ( |
53 |
+ dev-python/ddt[${PYTHON_USEDEP}] |
54 |
+ dev-python/fixtures[${PYTHON_USEDEP}] |
55 |
+ dev-python/oslo-serialization[${PYTHON_USEDEP}] |
56 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
57 |
+ dev-python/testtools[${PYTHON_USEDEP}] |
58 |
+ dev-python/tempest[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+distutils_enable_tests unittest |
63 |
+ |
64 |
+python_test() { |
65 |
+ # functional tests require cloud instance access |
66 |
+ eunittest -b cinderclient/tests/unit |
67 |
+} |