1 |
commit: f1534cf8022730a0fb4d1eb5106a5d80dbe28650 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 29 07:45:41 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 17:59:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1534cf8 |
7 |
|
8 |
dev-python/python-novaclient: add 17.6.0, py3.9, enable tests |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-novaclient/Manifest | 1 + |
13 |
.../python-novaclient-17.6.0.ebuild | 55 ++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-novaclient/Manifest b/dev-python/python-novaclient/Manifest |
17 |
index 875b6689e70..2f6b2ec72ca 100644 |
18 |
--- a/dev-python/python-novaclient/Manifest |
19 |
+++ b/dev-python/python-novaclient/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-novaclient-17.2.1.tar.gz 323330 BLAKE2B a7dd4a7b134c09945c3549ce014060c95da07d9125d5b24e7c99369c33538cfe56cee9f90c17a1d8025ac74969af950dcdcf8b3f87197cbd099e84cca857e23a SHA512 d1a9966f7da80e0884a451b3b014c45a1b4057dbdf0d8bcd23665eee55b6f15872e8e1d2b79b3cdbfc78f51800ffa3536cf0ab4e30eebf3878ffc007c52913cd |
22 |
+DIST python-novaclient-17.6.0.tar.gz 335297 BLAKE2B 24fcc869e71ef4ca382d6a684f5823331c49e84bced80e5f3e0a5e00efeeffc6cc6e554b7d97c571085dddcdd9bc6145442c5b7100bc9e833cb5bf883d860ba7 SHA512 54cc617e2698cdf50697b35153489f6fe64e84416d05987b7c60ed78241299631a0c03d893c462ad2f93788a5fc1336082acb5d22317d5733e9c033a91b1c34f |
23 |
|
24 |
diff --git a/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild b/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..37fa0db2258 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-novaclient/python-novaclient-17.6.0.ebuild |
29 |
@@ -0,0 +1,55 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..9} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A client for the OpenStack Nova API" |
39 |
+HOMEPAGE="https://github.com/openstack/python-novaclient" |
40 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="Apache-2.0" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/keystoneauth-3.5.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
51 |
+ >dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/prettytable-0.7.2[${PYTHON_USEDEP}] |
54 |
+ >dev-python/requests-2.12.2[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}] |
56 |
+" |
57 |
+BDEPEND=" |
58 |
+ >dev-python/pbr-2.1.0[${PYTHON_USEDEP}] |
59 |
+ test? ( |
60 |
+ dev-python/bandit[${PYTHON_USEDEP}] |
61 |
+ dev-python/ddt[${PYTHON_USEDEP}] |
62 |
+ dev-python/fixtures[${PYTHON_USEDEP}] |
63 |
+ dev-python/python-keystoneclient[${PYTHON_USEDEP}] |
64 |
+ dev-python/python-cinderclient[${PYTHON_USEDEP}] |
65 |
+ dev-python/python-glanceclient[${PYTHON_USEDEP}] |
66 |
+ dev-python/python-neutronclient[${PYTHON_USEDEP}] |
67 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/openstacksdk[${PYTHON_USEDEP}] |
69 |
+ dev-python/testscenarios[${PYTHON_USEDEP}] |
70 |
+ dev-python/testtools[${PYTHON_USEDEP}] |
71 |
+ dev-python/tempest[${PYTHON_USEDEP}] |
72 |
+ )" |
73 |
+ |
74 |
+distutils_enable_tests unittest |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ sed -e 's/test_osprofiler/_&/' -i novaclient/tests/unit/test_shell.py || die |
78 |
+ distutils-r1_src_prepare |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ # functional tests require cloud instance access |
83 |
+ eunittest -b novaclient/tests/unit |
84 |
+} |