1 |
commit: b10b8e4302b9459c55b6f50f3f1aac52dd28a294 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 28 13:34:33 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 28 14:14:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b10b8e43 |
7 |
|
8 |
dev-python/nbval: enable py3.10, fix tests |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/nbval/nbval-0.9.6.ebuild | 7 ++++--- |
14 |
1 file changed, 4 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/nbval/nbval-0.9.6.ebuild b/dev-python/nbval/nbval-0.9.6.ebuild |
17 |
index dd3f21a47ef9..d5b82cd22c6d 100644 |
18 |
--- a/dev-python/nbval/nbval-0.9.6.ebuild |
19 |
+++ b/dev-python/nbval/nbval-0.9.6.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_{7..9} ) |
25 |
+PYTHON_COMPAT=( python3_{8..10} ) |
26 |
inherit distutils-r1 |
27 |
|
28 |
DESCRIPTION="A py.test plugin to validate Jupyter notebooks" |
29 |
@@ -25,13 +25,14 @@ RDEPEND=" |
30 |
" |
31 |
BDEPEND="test? ( dev-python/sympy[${PYTHON_USEDEP}] )" |
32 |
|
33 |
-distutils_enable_tests pytest |
34 |
+distutils_enable_tests --install pytest |
35 |
|
36 |
python_test() { |
37 |
+ distutils_install_for_testing |
38 |
local deselect=( |
39 |
--deselect tests/test_ignore.py::test_conf_ignore_stderr |
40 |
--deselect tests/test_timeouts.py::test_timeouts |
41 |
) |
42 |
|
43 |
- pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}" |
44 |
+ epytest "${deselect[@]}" |
45 |
} |