diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-06-09 15:50:52 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-06-09 16:19:05 +0100 |
commit | efa615bf8352c30619fceee73051b5fc8d292eab (patch) | |
tree | b8a870dfd1933aaa0c905b01dad75f69be26e3f4 /dev-python/pip | |
parent | dev-python/coverage: support python3_10 (diff) | |
download | gentoo-efa615bf8352c30619fceee73051b5fc8d292eab.tar.gz gentoo-efa615bf8352c30619fceee73051b5fc8d292eab.tar.bz2 gentoo-efa615bf8352c30619fceee73051b5fc8d292eab.zip |
dev-python/pip: support python3_10, apart from tests
Builds and installs fine, seems to run okay as well. However, the test
suite still requires <dev-python/virtualenv-20 - which does NOT support
python3_10.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python/pip')
-rw-r--r-- | dev-python/pip/pip-21.1.2.ebuild | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-python/pip/pip-21.1.2.ebuild b/dev-python/pip/pip-21.1.2.ebuild index 8dd2850878c5..15cfd6a1fe10 100644 --- a/dev-python/pip/pip-21.1.2.ebuild +++ b/dev-python/pip/pip-21.1.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{7..10} pypy3 ) PYTHON_REQ_USE="ssl(+),threads(+)" inherit bash-completion-r1 distutils-r1 @@ -43,7 +43,9 @@ BDEPEND=" dev-python/pretend[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] dev-python/scripttest[${PYTHON_USEDEP}] - <dev-python/virtualenv-20[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + <dev-python/virtualenv-20[${PYTHON_USEDEP}] + ' python3_{7..9}) dev-python/werkzeug[${PYTHON_USEDEP}] dev-python/wheel[${PYTHON_USEDEP}] ) @@ -72,6 +74,12 @@ python_test() { return 0 fi + # virtualenv-16 doesn't support python3_10 yet is still required by pip test suite + if [[ ${EPYTHON} == "python3.10" ]]; then + ewarn "Skipping tests on ${EPYTHON} due to missing dependencies" + return 0 + fi + local deselect=( tests/functional/test_install.py::test_double_install_fail tests/functional/test_list.py::test_multiple_exclude_and_normalization |