From cc4c70c2099d94ee9346279a0341805e08b5dd9e Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 28 Jan 2021 11:09:00 +0100 Subject: dev-python/snakeoil: Modernize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/snakeoil/snakeoil-0.9.0.ebuild | 13 +++---------- dev-python/snakeoil/snakeoil-9999.ebuild | 15 ++++----------- 2 files changed, 7 insertions(+), 21 deletions(-) (limited to 'dev-python/snakeoil') diff --git a/dev-python/snakeoil/snakeoil-0.9.0.ebuild b/dev-python/snakeoil/snakeoil-0.9.0.ebuild index 17c7a024b1f0..0a7822decd00 100644 --- a/dev-python/snakeoil/snakeoil-0.9.0.ebuild +++ b/dev-python/snakeoil/snakeoil-0.9.0.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{8..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -19,14 +19,7 @@ HOMEPAGE="https://github.com/pkgcore/snakeoil" LICENSE="BSD BSD-2 MIT" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" -[[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" +[[ ${PV} == 9999 ]] && BDEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" -python_test() { - esetup.py test -} +distutils_enable_tests pytest diff --git a/dev-python/snakeoil/snakeoil-9999.ebuild b/dev-python/snakeoil/snakeoil-9999.ebuild index 0c98e3d18348..0a7822decd00 100644 --- a/dev-python/snakeoil/snakeoil-9999.ebuild +++ b/dev-python/snakeoil/snakeoil-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python3_{8..9} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -19,14 +19,7 @@ HOMEPAGE="https://github.com/pkgcore/snakeoil" LICENSE="BSD BSD-2 MIT" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - test? ( dev-python/pytest[${PYTHON_USEDEP}] ) -" -[[ ${PV} == 9999 ]] && DEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" +[[ ${PV} == 9999 ]] && BDEPEND+=" dev-python/cython[${PYTHON_USEDEP}]" -python_test() { - esetup.py test -} +distutils_enable_tests pytest -- cgit v1.2.3-65-gdbad