diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-07 00:03:12 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-07 00:23:38 +0100 |
commit | 694ef49d2302b30712f37437dc5114391a0f7c41 (patch) | |
tree | bdd2d682d089a9c3c3980994dbebc1dca6707fa6 /app-portage | |
parent | x11-libs/libxkbcommon: Version bump to 1.4.0 (diff) | |
download | gentoo-694ef49d2302b30712f37437dc5114391a0f7c41.tar.gz gentoo-694ef49d2302b30712f37437dc5114391a0f7c41.tar.bz2 gentoo-694ef49d2302b30712f37437dc5114391a0f7c41.zip |
app-portage/gentoopm: Update the live ebuild
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/gentoopm/gentoopm-9999.ebuild | 22 |
1 files 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 } |