commit:     50eaf9a25035b5ad09efa36ed0592f0a46bd32ba
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Mar  2 19:41:15 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Mar  2 19:41:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=50eaf9a2

dev-python/glicko2: Add distutils_enable_tests

it does the same, but it's shorter

Package-Manager: Portage-2.3.91, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/glicko2/glicko2-9999.ebuild | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/dev-python/glicko2/glicko2-9999.ebuild 
b/dev-python/glicko2/glicko2-9999.ebuild
index 2caf8b1..c23bbee 100644
--- a/dev-python/glicko2/glicko2-9999.ebuild
+++ b/dev-python/glicko2/glicko2-9999.ebuild
@@ -20,18 +20,10 @@ HOMEPAGE="https://github.com/sublee/glicko2";
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS=""
-IUSE="test"
-RESTRICT="!test? ( test )"
 
-DEPEND="
-       dev-python/setuptools[${PYTHON_USEDEP}]
-"
+distutils_enable_tests setup.py
 
 src_prepare() {
        sed -i -e "s/distribute/setuptools/g" setup.py
        eapply_user
 }
-
-python_test() {
-       "${PYTHON}" setup.py test || die
-}

Reply via email to