From 694ef49d2302b30712f37437dc5114391a0f7c41 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 7 Feb 2022 00:03:12 +0100 Subject: app-portage/gentoopm: Update the live ebuild MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-portage/gentoopm/gentoopm-9999.ebuild | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app-portage/gentoopm/gentoopm-9999.ebuild b/app-portage/gentoopm/gentoopm-9999.ebuild index 840415f2aa12..a187b336584d 100644 --- a/app-portage/gentoopm/gentoopm-9999.ebuild +++ b/app-portage/gentoopm/gentoopm-9999.ebuild @@ -1,22 +1,19 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -DISTUTILS_USE_SETUPTOOLS=no +DISTUTILS_USE_PEP517=flit PYTHON_COMPAT=( python3_{8..10} ) -EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git" inherit distutils-r1 git-r3 DESCRIPTION="A common interface to Gentoo package managers" HOMEPAGE="https://github.com/mgorny/gentoopm/" -SRC_URI="" +EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git" LICENSE="BSD-2" SLOT="0" -KEYWORDS="" -IUSE="" RDEPEND=" || ( @@ -24,6 +21,15 @@ RDEPEND=" >=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}] )" PDEPEND="app-eselect/eselect-package-manager" +distutils_enable_tests pytest + python_test() { - esetup.py test + if has_version ">=sys-apps/pkgcore-0.9.4[${PYTHON_USEDEP}]"; then + einfo "Testing against pkgcore ..." + PACKAGE_MANAGER=pkgcore epytest + fi + if has_version ">=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]"; then + einfo "Testing against portage ..." + PACKAGE_MANAGER=portage epytest + fi } -- cgit v1.2.3-65-gdbad