1 |
commit: 5c7a2c824cd4630f2a1db915529f4c3d8093a338 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 14:46:18 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c7a2c82 |
7 |
|
8 |
dev-python/testscenarios: Port to py39 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/testscenarios/testscenarios-0.5.0.ebuild | 15 +++++---------- |
13 |
1 file changed, 5 insertions(+), 10 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/testscenarios/testscenarios-0.5.0.ebuild b/dev-python/testscenarios/testscenarios-0.5.0.ebuild |
16 |
index f81da08e2c7..4c2e3e972ef 100644 |
17 |
--- a/dev-python/testscenarios/testscenarios-0.5.0.ebuild |
18 |
+++ b/dev-python/testscenarios/testscenarios-0.5.0.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
# Copyright 1999-2020 Gentoo Authors |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=5 |
24 |
+EAPI=7 |
25 |
|
26 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
27 |
+PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -22,17 +22,12 @@ RDEPEND=" |
32 |
|
33 |
# using pytest for tests since unittest loader fails with py3.5+ |
34 |
DEPEND=" |
35 |
- ${RDEPEND} |
36 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
37 |
- >=dev-python/pbr-0.11[${PYTHON_USEDEP}] |
38 |
- test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
39 |
+ >=dev-python/pbr-0.11[${PYTHON_USEDEP}]" |
40 |
+ |
41 |
+distutils_enable_tests pytest |
42 |
|
43 |
python_prepare_all() { |
44 |
# Remove a faulty file from tests, missing a required attribute |
45 |
rm ${PN}/tests/test_testcase.py || die |
46 |
distutils-r1_python_prepare_all |
47 |
} |
48 |
- |
49 |
-python_test() { |
50 |
- pytest -vv || die "Tests fail with ${EPYTHON}" |
51 |
-} |