commit: 147d9a54182b86b97519cf14d0612e2b64b2185a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 17:22:53 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 23 17:22:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=147d9a54
dev-python/pip: Avoid test deps on non-PYTHON_TESTED
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pip/pip-25.1.1.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-python/pip/pip-25.1.1.ebuild b/dev-python/pip/pip-25.1.1.ebuild
index 063e8ec94b06..9c24d263e13b 100644
--- a/dev-python/pip/pip-25.1.1.ebuild
+++ b/dev-python/pip/pip-25.1.1.ebuild
@@ -25,7 +25,8 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86"
-IUSE="test-rust"
+IUSE="test test-rust"
+RESTRICT="!test? ( test )"
# see src/pip/_vendor/vendor.txt
RDEPEND="
@@ -53,6 +54,7 @@ BDEPEND="
dev-python/ensurepip-wheel
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/pretend[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/scripttest[${PYTHON_USEDEP}]
@@ -68,8 +70,6 @@ BDEPEND="
)
"
-distutils_enable_tests pytest
-
python_prepare_all() {
local PATCHES=(
"${FILESDIR}/pip-23.1-no-coverage.patch"