public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jedi/
Date: Thu,  1 Jul 2021 08:43:40 +0000 (UTC)	[thread overview]
Message-ID: <1625129017.ce3e7210621c23e458d74978b19d46e2b9a99690.mgorny@gentoo> (raw)

commit:     ce3e7210621c23e458d74978b19d46e2b9a99690
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  1 07:26:56 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul  1 08:43:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce3e7210

dev-python/jedi: Port 0.17.2-r1 to py3.10

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/jedi/jedi-0.17.2-r1.ebuild | 41 +++++++++++++++++------------------
 dev-python/jedi/jedi-0.18.0.ebuild    |  2 ++
 2 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/dev-python/jedi/jedi-0.17.2-r1.ebuild b/dev-python/jedi/jedi-0.17.2-r1.ebuild
index 2008df3339a..7988373021e 100644
--- a/dev-python/jedi/jedi-0.17.2-r1.ebuild
+++ b/dev-python/jedi/jedi-0.17.2-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 
@@ -43,28 +43,27 @@ python_prepare_all() {
 	sed -i "s:'docopt',:: ; s:'colorama',::" setup.py || die
 	sed -i "s: --doctest-modules::" pytest.ini || die
 
-	# speed tests are fragile
-	rm test/test_speed.py || die
-
 	# test_complete_expanduser relies on $HOME not being empty
-	touch "${HOME}"/somefile || die
+	> "${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
+}
 
-	# 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
+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
 
-	distutils-r1_python_prepare_all
+	)
+
+	# django and pytest tests are very version dependent
+	epytest ${deselect[@]/#/--deselect } -k "not django and not pytest"
 }

diff --git a/dev-python/jedi/jedi-0.18.0.ebuild b/dev-python/jedi/jedi-0.18.0.ebuild
index 65d918b4001..d2d0631a0fd 100644
--- a/dev-python/jedi/jedi-0.18.0.ebuild
+++ b/dev-python/jedi/jedi-0.18.0.ebuild
@@ -57,6 +57,8 @@ python_test() {
 		# assume pristine virtualenv
 		test/test_utils.py::TestSetupReadline::test_local_import
 		test/test_inference/test_imports.py::test_os_issues
+		# fragile
+		test/test_speed.py
 	)
 	[[ ${EPYTHON} == python3.10 ]] && deselect+=(
 		# new features increased the match count again


             reply	other threads:[~2021-07-01  8:43 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01  8:43 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20 13:48 [gentoo-commits] repo/gentoo:master commit in: dev-python/jedi/ Michał Górny
2024-11-30 11:11 Michał Górny
2024-11-11  3:41 Michał Górny
2024-10-30 15:19 Michał Górny
2024-10-30 14:53 Sam James
2024-07-08  9:36 Sam James
2023-11-16 16:44 Michał Górny
2023-11-05 20:58 Michał Górny
2023-11-05 19:10 Arthur Zamarin
2023-10-02 18:35 Arthur Zamarin
2023-08-31  5:13 Michał Górny
2023-08-31  4:21 Sam James
2023-07-30 17:51 Michał Górny
2023-01-07 18:36 Arthur Zamarin
2022-11-22  6:27 Arthur Zamarin
2022-11-06  7:59 Michał Górny
2022-11-06  7:24 Sam James
2022-05-27 19:45 Michał Górny
2022-05-27  9:07 Jakov Smolić
2022-04-25 12:11 Michał Górny
2022-04-25 12:11 Michał Górny
2022-04-25 12:11 Michał Górny
2021-09-05  1:18 Sam James
2021-09-05  1:18 Sam James
2021-08-26  3:00 Sam James
2021-08-24 23:21 Sam James
2021-08-24 18:58 Arthur Zamarin
2021-08-20 23:51 Sam James
2021-08-20  6:00 Agostino Sarubbo
2021-08-20  5:59 Agostino Sarubbo
2021-08-15 19:51 Sam James
2021-08-15  7:42 Michał Górny
2021-08-04 10:23 Sergei Trofimovich
2021-07-25 15:26 Sergei Trofimovich
2021-07-25  3:16 Matt Turner
2021-07-25  3:16 Matt Turner
2021-07-01 14:42 Michał Górny
2021-06-30 12:21 Michał Górny
2021-06-20  1:55 Sam James
2021-01-27  9:00 Michał Górny
2021-01-27  3:06 Sam James
2020-12-25 18:49 Michał Górny
2020-08-20 11:39 Michał Górny
2020-08-19  9:01 Sam James
2020-08-02  8:26 Michał Górny
2020-07-19 18:14 Michał Górny
2020-07-17  4:18 Matt Turner
2020-07-09 10:39 Michał Górny
2020-06-20  7:47 Michał Górny
2020-06-03 17:27 Michał Górny
2020-06-02 12:01 Michał Górny
2020-05-04 11:13 Michał Górny
2020-03-27 16:30 Michał Górny
2020-03-27 16:30 Michał Górny
2020-03-27 16:30 Michał Górny
2020-03-27 16:25 Joonas Niilola
2020-01-29  6:14 Joonas Niilola
2019-12-02 21:13 Aaron Bauman
2018-08-30 17:25 Michał Górny
2018-08-30 17:25 Michał Górny
2018-05-10 21:40 Patrice Clement
2018-04-22  1:35 Thomas Deutschmann
2018-03-21 20:24 Markus Meier
2018-03-12  0:51 Matt Turner
2018-03-04 22:40 Sergei Trofimovich
2017-09-01 10:28 Tim Harder
2017-09-01 10:28 Tim Harder
2017-06-23  7:04 Alexis Ballier
2017-05-03  9:26 Michał Górny
2017-04-26  8:20 Tim Harder
2017-02-16 20:47 Tim Harder
2016-05-22 15:59 Patrice Clement
2016-05-22 15:59 Patrice Clement
2016-01-25 15:11 Justin Lecher
2015-11-03 17:21 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1625129017.ce3e7210621c23e458d74978b19d46e2b9a99690.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox