1 |
commit: 12ab06dc238aeaa51e4e10e50a8cc1badec8e15e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 5 13:37:30 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 5 17:05:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12ab06dc |
7 |
|
8 |
dev-python/pytest: Enable python3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest/pytest-6.2.4.ebuild | 20 ++++++++++++-------- |
13 |
1 file changed, 12 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pytest/pytest-6.2.4.ebuild b/dev-python/pytest/pytest-6.2.4.ebuild |
16 |
index 12ec533b378..267da87475f 100644 |
17 |
--- a/dev-python/pytest/pytest-6.2.4.ebuild |
18 |
+++ b/dev-python/pytest/pytest-6.2.4.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
25 |
inherit distutils-r1 |
26 |
|
27 |
DESCRIPTION="Simple powerful testing with Python" |
28 |
@@ -29,16 +29,18 @@ RDEPEND=" |
29 |
>=dev-python/py-1.8.2[${PYTHON_USEDEP}] |
30 |
dev-python/toml[${PYTHON_USEDEP}] |
31 |
" |
32 |
-DEPEND=" |
33 |
+BDEPEND=" |
34 |
>=dev-python/setuptools_scm-3.4[${PYTHON_USEDEP}] |
35 |
test? ( |
36 |
${RDEPEND} |
37 |
- dev-python/argcomplete[${PYTHON_USEDEP}] |
38 |
- >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
39 |
- dev-python/mock[${PYTHON_USEDEP}] |
40 |
- dev-python/nose[${PYTHON_USEDEP}] |
41 |
- dev-python/requests[${PYTHON_USEDEP}] |
42 |
- dev-python/xmlschema[${PYTHON_USEDEP}] |
43 |
+ $(python_gen_cond_dep ' |
44 |
+ dev-python/argcomplete[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
46 |
+ dev-python/mock[${PYTHON_USEDEP}] |
47 |
+ dev-python/nose[${PYTHON_USEDEP}] |
48 |
+ dev-python/requests[${PYTHON_USEDEP}] |
49 |
+ dev-python/xmlschema[${PYTHON_USEDEP}] |
50 |
+ ' python3_{7..9} pypy3) |
51 |
)" |
52 |
|
53 |
src_test() { |
54 |
@@ -49,6 +51,8 @@ src_test() { |
55 |
} |
56 |
|
57 |
python_test() { |
58 |
+ [[ ${EPYTHON} == python3.10 ]] && return |
59 |
+ |
60 |
distutils_install_for_testing --via-root |
61 |
|
62 |
"${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky || |