Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/kconfiglib/
Date: Wed, 20 Oct 2021 19:21:16
Message-Id: 1634757659.c55eaa217c0656d352094c619b3833cabe100280.arthurzam@gentoo
1 commit: c55eaa217c0656d352094c619b3833cabe100280
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 20 18:50:56 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 20 19:20:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c55eaa21
7
8 dev-python/kconfiglib: enable py3.10
9
10 Closes: https://bugs.gentoo.org/812674
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/kconfiglib/kconfiglib-14.1.0.ebuild | 15 ++++++---------
14 1 file changed, 6 insertions(+), 9 deletions(-)
15
16 diff --git a/dev-python/kconfiglib/kconfiglib-14.1.0.ebuild b/dev-python/kconfiglib/kconfiglib-14.1.0.ebuild
17 index 19181a90f3b..ef454e60acf 100644
18 --- a/dev-python/kconfiglib/kconfiglib-14.1.0.ebuild
19 +++ b/dev-python/kconfiglib/kconfiglib-14.1.0.ebuild
20 @@ -1,25 +1,22 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
27 -DISTUTILS_USE_SETUPTOOLS=rdepend
28 -PYTHON_REQ_USE="ncurses"
29
30 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
31 +PYTHON_REQ_USE="ncurses"
32 inherit distutils-r1
33
34 DESCRIPTION="A flexible Python Kconfig implementation"
35 HOMEPAGE="https://github.com/ulfalizer/Kconfiglib https://pypi.org/project/kconfiglib/"
36 SRC_URI="https://github.com/ulfalizer/Kconfiglib/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +S=${WORKDIR}/${P^}
38 # pypi tarballs don't include tests
39 #SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
40
41 LICENSE="ISC"
42 SLOT="0"
43 KEYWORDS="~amd64 ~x86"
44 -IUSE=""
45 -
46 -S=${WORKDIR}/${P/k/K}
47
48 python_prepare_all() {
49 distutils-r1_python_prepare_all
50 @@ -28,9 +25,9 @@ python_prepare_all() {
51 mkdir Kconfiglib || die
52 ln -s ../tests Kconfiglib || die
53 # don't run kernel Kconfig compat tests
54 - sed -i 's/run_compatibility_tests()$/#\0/' testsuite.py || die
55 + sed -e 's/run_compatibility_tests()$/#\0/' -i testsuite.py || die
56 }
57
58 python_test() {
59 - "${PYTHON}" testsuite.py || die "tests failed with ${EPYTHON}"
60 + "${EPYTHON}" testsuite.py || die "tests failed with ${EPYTHON}"
61 }