1 |
commit: d407796fb54195a8b8568cc4c76d6f2d3f8ac9f9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 9 15:10:07 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 20:34:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d407796f |
7 |
|
8 |
dev-python/pytest: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytest/pytest-7.1.2.ebuild | 25 ++++++++++++++++--------- |
13 |
1 file changed, 16 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pytest/pytest-7.1.2.ebuild b/dev-python/pytest/pytest-7.1.2.ebuild |
16 |
index edb8937ece04..1143038d9a5b 100644 |
17 |
--- a/dev-python/pytest/pytest-7.1.2.ebuild |
18 |
+++ b/dev-python/pytest/pytest-7.1.2.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
25 |
|
26 |
inherit distutils-r1 multiprocessing |
27 |
|
28 |
@@ -35,14 +35,16 @@ BDEPEND=" |
29 |
>=dev-python/setuptools_scm-6.2.3[${PYTHON_USEDEP}] |
30 |
test? ( |
31 |
${RDEPEND} |
32 |
- dev-python/argcomplete[${PYTHON_USEDEP}] |
33 |
- >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
34 |
- dev-python/mock[${PYTHON_USEDEP}] |
35 |
- dev-python/nose[${PYTHON_USEDEP}] |
36 |
- >=dev-python/pygments-2.7.2[${PYTHON_USEDEP}] |
37 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
38 |
- dev-python/requests[${PYTHON_USEDEP}] |
39 |
- dev-python/xmlschema[${PYTHON_USEDEP}] |
40 |
+ $(python_gen_cond_dep ' |
41 |
+ dev-python/argcomplete[${PYTHON_USEDEP}] |
42 |
+ >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] |
43 |
+ dev-python/mock[${PYTHON_USEDEP}] |
44 |
+ dev-python/nose[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/pygments-2.7.2[${PYTHON_USEDEP}] |
46 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
47 |
+ dev-python/requests[${PYTHON_USEDEP}] |
48 |
+ dev-python/xmlschema[${PYTHON_USEDEP}] |
49 |
+ ' python3_{8..10} pypy3) |
50 |
) |
51 |
" |
52 |
|
53 |
@@ -54,6 +56,11 @@ src_test() { |
54 |
} |
55 |
|
56 |
python_test() { |
57 |
+ if ! has "${EPYTHON}" python3.{8..10} pypy3; then |
58 |
+ einfo "Skipping tests on ${EPYTHON}" |
59 |
+ return |
60 |
+ fi |
61 |
+ |
62 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
63 |
local -x COLUMNS=80 |