Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pip/
Date: Wed, 09 Jun 2021 15:19:26
Message-Id: 1623251945.efa615bf8352c30619fceee73051b5fc8d292eab.marecki@gentoo
1 commit: efa615bf8352c30619fceee73051b5fc8d292eab
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 9 14:50:52 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 9 15:19:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efa615bf
7
8 dev-python/pip: support python3_10, apart from tests
9
10 Builds and installs fine, seems to run okay as well. However, the test
11 suite still requires <dev-python/virtualenv-20 - which does NOT support
12 python3_10.
13
14 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
15
16 dev-python/pip/pip-21.1.2.ebuild | 12 ++++++++++--
17 1 file changed, 10 insertions(+), 2 deletions(-)
18
19 diff --git a/dev-python/pip/pip-21.1.2.ebuild b/dev-python/pip/pip-21.1.2.ebuild
20 index 8dd2850878c..15cfd6a1fe1 100644
21 --- a/dev-python/pip/pip-21.1.2.ebuild
22 +++ b/dev-python/pip/pip-21.1.2.ebuild
23 @@ -3,7 +3,7 @@
24
25 EAPI=7
26
27 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
28 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
29 PYTHON_REQ_USE="ssl(+),threads(+)"
30
31 inherit bash-completion-r1 distutils-r1
32 @@ -43,7 +43,9 @@ BDEPEND="
33 dev-python/pretend[${PYTHON_USEDEP}]
34 dev-python/pytest[${PYTHON_USEDEP}]
35 dev-python/scripttest[${PYTHON_USEDEP}]
36 - <dev-python/virtualenv-20[${PYTHON_USEDEP}]
37 + $(python_gen_cond_dep '
38 + <dev-python/virtualenv-20[${PYTHON_USEDEP}]
39 + ' python3_{7..9})
40 dev-python/werkzeug[${PYTHON_USEDEP}]
41 dev-python/wheel[${PYTHON_USEDEP}]
42 )
43 @@ -72,6 +74,12 @@ python_test() {
44 return 0
45 fi
46
47 + # virtualenv-16 doesn't support python3_10 yet is still required by pip test suite
48 + if [[ ${EPYTHON} == "python3.10" ]]; then
49 + ewarn "Skipping tests on ${EPYTHON} due to missing dependencies"
50 + return 0
51 + fi
52 +
53 local deselect=(
54 tests/functional/test_install.py::test_double_install_fail
55 tests/functional/test_list.py::test_multiple_exclude_and_normalization