dev-python/paste: Tests require dev-python/pkg-resources

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-03-25 11:11:11 +01:00
parent f5f8e71912
commit 508d70a0ef

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,20 +20,22 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos"
BDEPEND="
test? (
dev-python/pkg-resources[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
distutils_enable_sphinx docs
EPYTEST_DESELECT=(
# Internet
tests/test_proxy.py
)
python_compile() {
distutils-r1_python_compile
find "${BUILD_DIR}" -name '*.pth' -delete || die
}
python_test() {
local EPYTEST_DESELECT=(
# Internet
tests/test_proxy.py
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}