From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2399413933E for ; Wed, 30 Jun 2021 12:21:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48906E0788; Wed, 30 Jun 2021 12:21:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 28340E0788 for ; Wed, 30 Jun 2021 12:21:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D6B60335D79 for ; Wed, 30 Jun 2021 12:21:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 109A77BA for ; Wed, 30 Jun 2021 12:21:18 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1625055675.bc48731e6e0231e34b1933b82c6d1d3c6f43b4a3.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jedi/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/jedi/jedi-0.18.0.ebuild X-VCS-Directories: dev-python/jedi/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bc48731e6e0231e34b1933b82c6d1d3c6f43b4a3 X-VCS-Branch: master Date: Wed, 30 Jun 2021 12:21:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b5049be-30ff-41c5-a770-d59450ee8523 X-Archives-Hash: 3d525dacd28a10dd595c12c6ee9e65bc commit: bc48731e6e0231e34b1933b82c6d1d3c6f43b4a3 Author: Michał Górny gentoo org> AuthorDate: Wed Jun 30 12:10:15 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jun 30 12:21:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc48731e dev-python/jedi: Port to py3.10 Signed-off-by: Michał Górny gentoo.org> dev-python/jedi/jedi-0.18.0.ebuild | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/dev-python/jedi/jedi-0.18.0.ebuild b/dev-python/jedi/jedi-0.18.0.ebuild index 2c588b7dc47..65d918b4001 100644 --- a/dev-python/jedi/jedi-0.18.0.ebuild +++ b/dev-python/jedi/jedi-0.18.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 @@ -46,25 +46,24 @@ python_prepare_all() { # test_complete_expanduser relies on $HOME not being empty > "${HOME}"/somefile || die - # TODO: investigate - sed -e 's:test_local_import:_&:' \ - -i test/test_utils.py || die - sed -e '/with sqlite3\.connect/,+2d' \ - -i test/completion/stdlib.py || die - rm test/completion/django.py || die + distutils-r1_python_prepare_all +} - # these tests fail with various pytest<->python version combinations - rm test/completion/pytest.py || die +python_test() { + local deselect=( + # TODO + 'test/test_integration.py::test_completion[stdlib:155]' + 'test/test_integration.py::test_completion[on_import:29]' + # assume pristine virtualenv + test/test_utils.py::TestSetupReadline::test_local_import + test/test_inference/test_imports.py::test_os_issues + ) + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # new features increased the match count again + test/test_utils.py::TestSetupReadline::test_import - # tests relying on pristine virtualenv - # this relies on test* not matching anything else - sed -e "/#\? \['test'\]/,+1d" \ - -i test/completion/on_import.py || die - # this one's broken by 'path' module (dev-python/path-py) - sed -e 's:test_os_issues:_&:' \ - -i test/test_inference/test_imports.py || die - sed -e 's:test_venv_and_pths:_&:' \ - -i test/test_inference/test_sys_path.py || die + ) - distutils-r1_python_prepare_all + # django and pytest tests are very version dependent + epytest ${deselect[@]/#/--deselect } -k "not django and not pytest" }