commit: 2345d9c6e0b4a67a0019d4c313b87fcca3c852b8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 23 16:50:37 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 23 16:52:31 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2345d9c6
dev-python/build: Don't dep on pytest for non-PYTHON_TESTED
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/build/build-1.2.2_p1-r2.ebuild | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dev-python/build/build-1.2.2_p1-r2.ebuild
b/dev-python/build/build-1.2.2_p1-r2.ebuild
index 566930ee27ba..c3856294c6ad 100644
--- a/dev-python/build/build-1.2.2_p1-r2.ebuild
+++ b/dev-python/build/build-1.2.2_p1-r2.ebuild
@@ -24,7 +24,8 @@ S=${WORKDIR}/${MY_P}
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 )"
RDEPEND="
>=dev-python/packaging-19.1[${PYTHON_USEDEP}]
@@ -35,8 +36,10 @@ RDEPEND="
"
BDEPEND="
test? (
+ ${RDEPEND}
$(python_gen_cond_dep '
>=dev-python/filelock-3[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
>=dev-python/pytest-mock-2[${PYTHON_USEDEP}]
>=dev-python/pytest-rerunfailures-9.1[${PYTHON_USEDEP}]
>=dev-python/pytest-xdist-1.34[${PYTHON_USEDEP}]
@@ -50,8 +53,6 @@ BDEPEND="
)
"
-distutils_enable_tests pytest
-
PATCHES=(
# https://github.com/pypa/build/pull/861
# https://github.com/pypa/build/pull/898