1 |
commit: d4a49ec77f1bffc527b1d4c58e619a920b7c17e1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 16:19:01 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 17:53:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4a49ec7 |
7 |
|
8 |
dev-python/nest_asyncio: Port to py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/nest_asyncio/nest_asyncio-1.5.1.ebuild | 15 ++++++++++++--- |
13 |
1 file changed, 12 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/nest_asyncio/nest_asyncio-1.5.1.ebuild b/dev-python/nest_asyncio/nest_asyncio-1.5.1.ebuild |
16 |
index 256fec2c5b5..cde8a0405f2 100644 |
17 |
--- a/dev-python/nest_asyncio/nest_asyncio-1.5.1.ebuild |
18 |
+++ b/dev-python/nest_asyncio/nest_asyncio-1.5.1.ebuild |
19 |
@@ -1,9 +1,9 @@ |
20 |
# Copyright 2020-2021 Gentoo Authors |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
-EAPI=7 |
24 |
+EAPI=8 |
25 |
|
26 |
-PYTHON_COMPAT=( python3_{7..9} ) |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -15,4 +15,13 @@ LICENSE="BSD-2" |
32 |
SLOT="0" |
33 |
KEYWORDS="amd64 ~arm arm64 ~sparc x86" |
34 |
|
35 |
-distutils_enable_tests setup.py |
36 |
+distutils_enable_tests pytest |
37 |
+ |
38 |
+python_test() { |
39 |
+ local deselect=() |
40 |
+ [[ ${EPYTHON} == python3.10 ]] && deselect+=( |
41 |
+ # incorrect args in test itself |
42 |
+ tests/nest_test.py::NestTest::test_two_run_until_completes_in_one_outer_loop |
43 |
+ ) |
44 |
+ epytest ${deselect[@]/#/--deselect } |
45 |
+} |