mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-python/python-dotenv: Make ipython test dep optional
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -19,7 +19,6 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
DEPEND="
|
||||
test? (
|
||||
>=dev-python/click-5[${PYTHON_USEDEP}]
|
||||
dev-python/ipython[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/sh-1.09[${PYTHON_USEDEP}]
|
||||
)
|
||||
@@ -29,6 +28,19 @@ DOCS=( CHANGELOG.md README.md )
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_IGNORE=()
|
||||
# remove when https://github.com/theskumar/python-dotenv/pull/397
|
||||
# is merged
|
||||
if ! has_version "dev-python/ipython[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_IGNORE+=(
|
||||
tests/test_ipython.py
|
||||
)
|
||||
fi
|
||||
|
||||
epytest
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
ln -s dotenv "${D}$(python_get_scriptdir)"/python-dotenv || die
|
||||
|
||||
Reference in New Issue
Block a user