From a11949ca47633cb5e51833e6a089ab3de52aa0c0 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 28 Jan 2021 11:26:09 +0100 Subject: dev-util/pkgcheck: Modernize the live ebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-util/pkgcheck/pkgcheck-9999.ebuild | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'dev-util/pkgcheck') diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild index ae82d9f6d150..1fba97972fb5 100644 --- a/dev-util/pkgcheck/pkgcheck-9999.ebuild +++ b/dev-util/pkgcheck/pkgcheck-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} ) DISTUTILS_IN_SOURCE_BUILD=1 inherit distutils-r1 optfeature @@ -19,8 +19,6 @@ HOMEPAGE="https://github.com/pkgcore/pkgcheck" LICENSE="BSD MIT" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" if [[ ${PV} == *9999 ]]; then RDEPEND=" @@ -28,8 +26,8 @@ if [[ ${PV} == *9999 ]]; then ~sys-apps/pkgcore-9999[${PYTHON_USEDEP}]" else RDEPEND=" - >=dev-python/snakeoil-0.8.9[${PYTHON_USEDEP}] - >=sys-apps/pkgcore-0.10.14[${PYTHON_USEDEP}]" + >=dev-python/snakeoil-0.9.0[${PYTHON_USEDEP}] + >=sys-apps/pkgcore-0.11.0[${PYTHON_USEDEP}]" fi RDEPEND+=" dev-python/chardet[${PYTHON_USEDEP}] @@ -37,14 +35,11 @@ RDEPEND+=" dev-python/pathspec[${PYTHON_USEDEP}] dev-python/tree-sitter[${PYTHON_USEDEP}] " -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] +BDEPEND=" test? ( dev-python/pytest[${PYTHON_USEDEP}] ) " -python_test() { - esetup.py test -} +distutils_enable_tests setup.py python_install_all() { local DOCS=( NEWS.rst ) -- cgit v1.2.3-65-gdbad