1 |
commit: 1838cd9c3bfd8ec56beafed96f381d980e5ec58d |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 28 19:22:17 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 30 12:18:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1838cd9c |
7 |
|
8 |
dev-python/openstacksdk: enable py3.9 |
9 |
|
10 |
move the sed calls for disabling tests to src_prepare |
11 |
|
12 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
13 |
|
14 |
dev-python/openstacksdk/openstacksdk-0.59.0.ebuild | 20 ++++++++++---------- |
15 |
1 file changed, 10 insertions(+), 10 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/openstacksdk/openstacksdk-0.59.0.ebuild b/dev-python/openstacksdk/openstacksdk-0.59.0.ebuild |
18 |
index 4c149a4c1b4..00e5891929b 100644 |
19 |
--- a/dev-python/openstacksdk/openstacksdk-0.59.0.ebuild |
20 |
+++ b/dev-python/openstacksdk/openstacksdk-0.59.0.ebuild |
21 |
@@ -3,7 +3,7 @@ |
22 |
|
23 |
EAPI=8 |
24 |
|
25 |
-PYTHON_COMPAT=( python3_8 ) |
26 |
+PYTHON_COMPAT=( python3_{8..9} ) |
27 |
inherit distutils-r1 |
28 |
|
29 |
DESCRIPTION="A collection of libraries for building applications to work with OpenStack." |
30 |
@@ -13,16 +13,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
31 |
LICENSE="Apache-2.0" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
34 |
-IUSE="" |
35 |
|
36 |
-CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
37 |
- !~dev-python/pbr-2.1.0" |
38 |
+CDEPEND=">dev-python/pbr-2.1.0[${PYTHON_USEDEP}]" |
39 |
RDEPEND="${CDEPEND} |
40 |
>=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] |
41 |
>=dev-python/appdirs-1.3.0[${PYTHON_USEDEP}] |
42 |
>=dev-python/requestsexceptions-1.2.0[${PYTHON_USEDEP}] |
43 |
- >=dev-python/jsonpatch-1.16[${PYTHON_USEDEP}] |
44 |
- !~dev-python/jsonpatch-1.20[${PYTHON_USEDEP}] |
45 |
+ >dev-python/jsonpatch-1.20[${PYTHON_USEDEP}] |
46 |
>=dev-python/os-service-types-1.7.0[${PYTHON_USEDEP}] |
47 |
>=dev-python/keystoneauth-3.18.0[${PYTHON_USEDEP}] |
48 |
>=dev-python/munch-2.1.0[${PYTHON_USEDEP}] |
49 |
@@ -51,10 +48,7 @@ BDEPEND="${CDEPEND} |
50 |
|
51 |
distutils_enable_tests unittest |
52 |
|
53 |
-python_test() { |
54 |
- distutils_install_for_testing |
55 |
- cd "${TEST_DIR}"/lib || die |
56 |
- |
57 |
+src_prepare() { |
58 |
# Internet? |
59 |
sed -e 's:test_create_dynamic_large_object:_&:' \ |
60 |
-i openstack/tests/unit/cloud/test_object.py || die |
61 |
@@ -73,6 +67,12 @@ python_test() { |
62 |
sed -e 's:test_repr:_&:' \ |
63 |
-i openstack/tests/unit/test_resource.py || die |
64 |
|
65 |
+ distutils-r1_src_prepare |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ distutils_install_for_testing |
70 |
+ |
71 |
# functional tests require cloud instance access |
72 |
eunittest -b openstack/tests/unit |
73 |
} |