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@riseup.net>
This commit is contained in:
Andrew Ammerlaan committed 2020-03-02 20:41:15 +01:00
1 parent 87f7034575
commit 50eaf9a250
1 file changed
+1 -9
+1 -9
View File
@@ -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
}