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/keystoneauth/
Date: Wed, 23 Jun 2021 10:09:45
Message-Id: 1624442858.2efaefc909376f33e4bca7dbf7e24b190f5c16a4.mgorny@gentoo
1 commit: 2efaefc909376f33e4bca7dbf7e24b190f5c16a4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 23 09:57:21 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 23 10:07:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2efaefc9
7
8 dev-python/keystoneauth: Enable tests
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../keystoneauth/keystoneauth-4.2.1-r1.ebuild | 54 ++++++++++++++++++++++
13 1 file changed, 54 insertions(+)
14
15 diff --git a/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild b/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild
16 new file mode 100644
17 index 00000000000..9e4dfcbc879
18 --- /dev/null
19 +++ b/dev-python/keystoneauth/keystoneauth-4.2.1-r1.ebuild
20 @@ -0,0 +1,54 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_8 )
27 +inherit distutils-r1
28 +
29 +DESCRIPTION="This package contains tools for authenticating to an OpenStack-based cloud."
30 +HOMEPAGE="https://github.com/openstack/keystoneauth"
31 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}1/${PN}1-${PV}.tar.gz"
32 +S="${WORKDIR}/${PN}1-${PV}"
33 +
34 +LICENSE="Apache-2.0"
35 +SLOT="0"
36 +KEYWORDS="amd64 x86"
37 +
38 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
39 + !~dev-python/pbr-2.1.0"
40 +RDEPEND="${CDEPEND}
41 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
42 + >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
43 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
44 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
45 + >=dev-python/os-service-types-1.2.0[${PYTHON_USEDEP}]"
46 +BDEPEND="${CDEPEND}
47 + test? (
48 + >=dev-python/betamax-0.7.0[${PYTHON_USEDEP}]
49 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
50 + dev-python/hacking[${PYTHON_USEDEP}]
51 + >=dev-python/lxml-4.2.0[${PYTHON_USEDEP}]
52 + >=dev-python/oauthlib-0.6.2[${PYTHON_USEDEP}]
53 + >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
54 + >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
55 + >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}]
56 + >=dev-python/pyyaml-3.12[${PYTHON_USEDEP}]
57 + >=dev-python/requests-kerberos-0.8.0[${PYTHON_USEDEP}]
58 + >=dev-python/requests-mock-1.2.0[${PYTHON_USEDEP}]
59 + >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}]
60 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
61 + )"
62 +
63 +distutils_enable_tests unittest
64 +
65 +src_prepare() {
66 + # relies on specific test runner name
67 + sed -i -e 's:run\.py:unittest_or_fail.py:' \
68 + keystoneauth1/tests/unit/test_session.py || die
69 + distutils-r1_src_prepare
70 +}
71 +
72 +python_test() {
73 + eunittest -b
74 +}