diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-04-07 16:07:08 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-04-07 16:13:49 +0200 |
commit | 42edca930eb67b4d92ca13cb363c0783977889bd (patch) | |
tree | cad103a08f720b953e095585d6c24c0b78339417 /dev-python/python-dotenv | |
parent | dev-python/hatchling: Add test dep on dev-python/tomli-w (diff) | |
download | gentoo-42edca930eb67b4d92ca13cb363c0783977889bd.tar.gz gentoo-42edca930eb67b4d92ca13cb363c0783977889bd.tar.bz2 gentoo-42edca930eb67b4d92ca13cb363c0783977889bd.zip |
dev-python/python-dotenv: Make ipython test dep optional
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-dotenv')
-rw-r--r-- | dev-python/python-dotenv/python-dotenv-0.20.0.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-python/python-dotenv/python-dotenv-0.20.0.ebuild b/dev-python/python-dotenv/python-dotenv-0.20.0.ebuild index 5ad0c94536ce..690981b0a3bd 100644 --- a/dev-python/python-dotenv/python-dotenv-0.20.0.ebuild +++ b/dev-python/python-dotenv/python-dotenv-0.20.0.ebuild @@ -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 |