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