commit:     547c6b85432cda288537fc60ec1768bc9a5ac0d0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 28 07:02:06 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 09:48:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=547c6b85

dev-python/python-dotenv: Modernize

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/python-dotenv/python-dotenv-0.16.0.ebuild | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

diff --git a/dev-python/python-dotenv/python-dotenv-0.16.0.ebuild 
b/dev-python/python-dotenv/python-dotenv-0.16.0.ebuild
index 327601a0eff..400dad458bc 100644
--- a/dev-python/python-dotenv/python-dotenv-0.16.0.ebuild
+++ b/dev-python/python-dotenv/python-dotenv-0.16.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..9} )
 DISTUTILS_USE_SETUPTOOLS=rdepend
 
 inherit distutils-r1
@@ -15,9 +15,9 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE="test"
 
-DEPEND="test? (
+DEPEND="
+       test? (
                >=dev-python/click-5[${PYTHON_USEDEP}]
                dev-python/ipython[${PYTHON_USEDEP}]
                dev-python/mock[${PYTHON_USEDEP}]
@@ -26,11 +26,4 @@ DEPEND="test? (
 
 DOCS=( CHANGELOG.md README.md )
 
-distutils_enable_tests pytest
-
-python_test() {
-       # Tests call the "dotenv" command which needs to be in PATH
-       # https://bugs.gentoo.org/743784
-       distutils_install_for_testing
-       pytest -vv || die "Tests fail with ${EPYTHON}"
-}
+distutils_enable_tests --install pytest

Reply via email to