mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/build: Don't dep on pytest for non-PYTHON_TESTED
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user