Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tempest/
Date: Thu, 24 Feb 2022 18:09:02
Message-Id: 1645726131.ef838b81946b781fdf8dfd72de0ab49d816995cd.mgorny@gentoo
1 commit: ef838b81946b781fdf8dfd72de0ab49d816995cd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 24 17:16:45 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 24 18:08:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef838b81
7
8 dev-python/tempest: PEP517, py3.10
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tempest/tempest-29.2.0-r1.ebuild | 69 +++++++++++++++++++++++++++++
13 1 file changed, 69 insertions(+)
14
15 diff --git a/dev-python/tempest/tempest-29.2.0-r1.ebuild b/dev-python/tempest/tempest-29.2.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..e9f0d2aad3d1
18 --- /dev/null
19 +++ b/dev-python/tempest/tempest-29.2.0-r1.ebuild
20 @@ -0,0 +1,69 @@
21 +# Copyright 2021-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="OpenStack Integration Testing"
32 +HOMEPAGE="https://pypi.org/project/tempest/ https://docs.openstack.org/tempest/latest/"
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/cliff-2.9.0[${PYTHON_USEDEP}]
42 + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
43 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
44 + >=dev-python/paramiko-2.7.0[${PYTHON_USEDEP}]
45 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
46 + >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
47 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
48 + >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
49 + >=dev-python/oslo-utils-4.7.0[${PYTHON_USEDEP}]
50 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
51 + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
52 + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
53 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
54 + >=dev-python/prettytable-0.7.1[${PYTHON_USEDEP}]
55 + >=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]
56 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + >dev-python/pbr-2.1.0[${PYTHON_USEDEP}]
60 + test? (
61 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
62 + dev-python/stestr[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +distutils_enable_tests unittest
67 +
68 +src_prepare() {
69 + # Small subset of tests, which fail as result of not using specific
70 + # testing environment. Others expect to run suite using stestr.
71 + rm -r tempest/tests/lib/services/volume/v3/ || die
72 + rm tempest/tests/test_list_tests.py || die
73 + rm tempest/tests/lib/cmd/test_check_uuid.py || die
74 +
75 + # remove dep on hacking
76 + rm tempest/tests/test_hacking.py || die
77 +
78 + distutils-r1_src_prepare
79 +}
80 +
81 +python_test() {
82 + local -x OS_LOG_CAPTURE=1 OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=320
83 + eunittest -b -s tempest/tests -t .
84 +}
85 +
86 +src_install() {
87 + distutils-r1_src_install
88 + mv "${ED}/usr/etc" "${ED}/etc" || die
89 +}