1 |
commit: 53b0734dbbcf2ab2e47f90417aeaa81445bd1f4c |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 23 15:50:16 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 23 16:08:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b0734d |
7 |
|
8 |
dev-python/python3-openid: enable py3.10, enable tests |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/python3-openid/python3-openid-3.2.0.ebuild | 18 ++++++++++++++---- |
13 |
1 file changed, 14 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/python3-openid/python3-openid-3.2.0.ebuild b/dev-python/python3-openid/python3-openid-3.2.0.ebuild |
16 |
index c1f5bca4f6c..6066e6b6319 100644 |
17 |
--- a/dev-python/python3-openid/python3-openid-3.2.0.ebuild |
18 |
+++ b/dev-python/python3-openid/python3-openid-3.2.0.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
-# Copyright 1999-2020 Gentoo Authors |
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_{7,8,9} ) |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -14,9 +14,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
32 |
LICENSE="Apache-2.0" |
33 |
SLOT="0" |
34 |
KEYWORDS="~amd64" |
35 |
-IUSE="" |
36 |
+IUSE="test" |
37 |
+RESTRICT="!test? ( test )" |
38 |
|
39 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
40 |
RDEPEND="dev-python/defusedxml[${PYTHON_USEDEP}]" |
41 |
+BDEPEND=" |
42 |
+ test? ( ${RDEPEND} |
43 |
+ dev-python/django[${PYTHON_USEDEP}] |
44 |
+ dev-python/psycopg[${PYTHON_USEDEP}] |
45 |
+ ) |
46 |
+" |
47 |
|
48 |
DOCS=( NEWS.md README.md ) |
49 |
+ |
50 |
+python_test() { |
51 |
+ "${EPYTHON}" -m unittest -v openid.test.test_suite || die "Tests failed with ${EPYTHON}" |
52 |
+} |