1 |
commit: bc48731e6e0231e34b1933b82c6d1d3c6f43b4a3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 30 12:10:15 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 30 12:21:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc48731e |
7 |
|
8 |
dev-python/jedi: Port to py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/jedi/jedi-0.18.0.ebuild | 37 ++++++++++++++++++------------------- |
13 |
1 file changed, 18 insertions(+), 19 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/jedi/jedi-0.18.0.ebuild b/dev-python/jedi/jedi-0.18.0.ebuild |
16 |
index 2c588b7dc47..65d918b4001 100644 |
17 |
--- a/dev-python/jedi/jedi-0.18.0.ebuild |
18 |
+++ b/dev-python/jedi/jedi-0.18.0.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{7..9} ) |
24 |
+PYTHON_COMPAT=( python3_{8..10} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -46,25 +46,24 @@ python_prepare_all() { |
29 |
# test_complete_expanduser relies on $HOME not being empty |
30 |
> "${HOME}"/somefile || die |
31 |
|
32 |
- # TODO: investigate |
33 |
- sed -e 's:test_local_import:_&:' \ |
34 |
- -i test/test_utils.py || die |
35 |
- sed -e '/with sqlite3\.connect/,+2d' \ |
36 |
- -i test/completion/stdlib.py || die |
37 |
- rm test/completion/django.py || die |
38 |
+ distutils-r1_python_prepare_all |
39 |
+} |
40 |
|
41 |
- # these tests fail with various pytest<->python version combinations |
42 |
- rm test/completion/pytest.py || die |
43 |
+python_test() { |
44 |
+ local deselect=( |
45 |
+ # TODO |
46 |
+ 'test/test_integration.py::test_completion[stdlib:155]' |
47 |
+ 'test/test_integration.py::test_completion[on_import:29]' |
48 |
+ # assume pristine virtualenv |
49 |
+ test/test_utils.py::TestSetupReadline::test_local_import |
50 |
+ test/test_inference/test_imports.py::test_os_issues |
51 |
+ ) |
52 |
+ [[ ${EPYTHON} == python3.10 ]] && deselect+=( |
53 |
+ # new features increased the match count again |
54 |
+ test/test_utils.py::TestSetupReadline::test_import |
55 |
|
56 |
- # tests relying on pristine virtualenv |
57 |
- # this relies on test* not matching anything else |
58 |
- sed -e "/#\? \['test'\]/,+1d" \ |
59 |
- -i test/completion/on_import.py || die |
60 |
- # this one's broken by 'path' module (dev-python/path-py) |
61 |
- sed -e 's:test_os_issues:_&:' \ |
62 |
- -i test/test_inference/test_imports.py || die |
63 |
- sed -e 's:test_venv_and_pths:_&:' \ |
64 |
- -i test/test_inference/test_sys_path.py || die |
65 |
+ ) |
66 |
|
67 |
- distutils-r1_python_prepare_all |
68 |
+ # django and pytest tests are very version dependent |
69 |
+ epytest ${deselect[@]/#/--deselect } -k "not django and not pytest" |
70 |
} |