Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/gentoopm/
Date: Sun, 06 Feb 2022 23:23:47
Message-Id: 1644189818.694ef49d2302b30712f37437dc5114391a0f7c41.mgorny@gentoo
1 commit: 694ef49d2302b30712f37437dc5114391a0f7c41
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 6 23:03:12 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 23:23:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=694ef49d
7
8 app-portage/gentoopm: Update the live ebuild
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-portage/gentoopm/gentoopm-9999.ebuild | 22 ++++++++++++++--------
13 1 file changed, 14 insertions(+), 8 deletions(-)
14
15 diff --git a/app-portage/gentoopm/gentoopm-9999.ebuild b/app-portage/gentoopm/gentoopm-9999.ebuild
16 index 840415f2aa12..a187b336584d 100644
17 --- a/app-portage/gentoopm/gentoopm-9999.ebuild
18 +++ b/app-portage/gentoopm/gentoopm-9999.ebuild
19 @@ -1,22 +1,19 @@
20 -# Copyright 1999-2021 Gentoo Authors
21 +# Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=7
25 +EAPI=8
26
27 -DISTUTILS_USE_SETUPTOOLS=no
28 +DISTUTILS_USE_PEP517=flit
29 PYTHON_COMPAT=( python3_{8..10} )
30
31 -EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git"
32 inherit distutils-r1 git-r3
33
34 DESCRIPTION="A common interface to Gentoo package managers"
35 HOMEPAGE="https://github.com/mgorny/gentoopm/"
36 -SRC_URI=""
37 +EGIT_REPO_URI="https://github.com/mgorny/gentoopm.git"
38
39 LICENSE="BSD-2"
40 SLOT="0"
41 -KEYWORDS=""
42 -IUSE=""
43
44 RDEPEND="
45 || (
46 @@ -24,6 +21,15 @@ RDEPEND="
47 >=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}] )"
48 PDEPEND="app-eselect/eselect-package-manager"
49
50 +distutils_enable_tests pytest
51 +
52 python_test() {
53 - esetup.py test
54 + if has_version ">=sys-apps/pkgcore-0.9.4[${PYTHON_USEDEP}]"; then
55 + einfo "Testing against pkgcore ..."
56 + PACKAGE_MANAGER=pkgcore epytest
57 + fi
58 + if has_version ">=sys-apps/portage-2.1.10.3[${PYTHON_USEDEP}]"; then
59 + einfo "Testing against portage ..."
60 + PACKAGE_MANAGER=portage epytest
61 + fi
62 }