Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-gflags/
Date: Fri, 26 Feb 2021 14:26:42
Message-Id: 1614349572.8f74ab5c6d91b4468e601a33a7e32986c7943e07.sam@gentoo
1 commit: 8f74ab5c6d91b4468e601a33a7e32986c7943e07
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Thu Feb 25 19:30:11 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 26 14:26:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f74ab5c
7
8 dev-python/python-gflags: Port to python 3.9
9
10 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
11 Closes: https://github.com/gentoo/gentoo/pull/19655
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../python-gflags/python-gflags-3.1.2-r1.ebuild | 21 +++++++--------------
15 1 file changed, 7 insertions(+), 14 deletions(-)
16
17 diff --git a/dev-python/python-gflags/python-gflags-3.1.2-r1.ebuild b/dev-python/python-gflags/python-gflags-3.1.2-r1.ebuild
18 index 22c0041b2e4..90fe031744e 100644
19 --- a/dev-python/python-gflags/python-gflags-3.1.2-r1.ebuild
20 +++ b/dev-python/python-gflags/python-gflags-3.1.2-r1.ebuild
21 @@ -1,11 +1,10 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 +# Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27
28 DISTUTILS_USE_SETUPTOOLS=no
29 -PYTHON_COMPAT=( python3_{7,8} )
30 -
31 +PYTHON_COMPAT=( python3_{7..9} )
32 inherit distutils-r1
33
34 DESCRIPTION="Google's Python argument parsing library"
35 @@ -16,19 +15,13 @@ LICENSE="BSD"
36 SLOT="0"
37 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
38
39 -RDEPEND="
40 - dev-python/six[${PYTHON_USEDEP}]"
41 -
42 -DEPEND="
43 - ${RDEPEND}"
44 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
45
46 -PATCHES=(
47 - "${FILESDIR}"/${PN}-3.1.1-script-install.patch
48 -)
49 +PATCHES=( "${FILESDIR}"/${PN}-3.1.1-script-install.patch )
50
51 python_test() {
52 # note: each test needs to be run separately, otherwise they fail
53 - "${PYTHON}" -m gflags._helpers_test -v || die
54 - "${PYTHON}" -m gflags.flags_formatting_test -v || die
55 - "${PYTHON}" -m gflags.flags_unicode_literals_test -v || die
56 + "${EPYTHON}" -m gflags._helpers_test -v || die
57 + "${EPYTHON}" -m gflags.flags_formatting_test -v || die
58 + "${EPYTHON}" -m gflags.flags_unicode_literals_test -v || die
59 }