diff options
Diffstat (limited to 'dev-python/python-dotenv/python-dotenv-0.20.0.ebuild')
| -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 |
