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: dev-python/terminaltables/
Date: Thu, 27 Jan 2022 10:02:31
Message-Id: 1643277735.0c11f0846ab6bd82b4dcf3051b49d84f59864714.mgorny@gentoo
1 commit: 0c11f0846ab6bd82b4dcf3051b49d84f59864714
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 27 09:35:00 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 27 10:02:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c11f084
7
8 dev-python/terminaltables: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 ...9999.ebuild => terminaltables-3.1.10-r1.ebuild} | 24 +++++++++++++++++-----
13 .../terminaltables/terminaltables-9999.ebuild | 12 +++++++++--
14 2 files changed, 29 insertions(+), 7 deletions(-)
15
16 diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
17 similarity index 51%
18 copy from dev-python/terminaltables/terminaltables-9999.ebuild
19 copy to dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
20 index ed12c5a82704..76c1156f4c7a 100644
21 --- a/dev-python/terminaltables/terminaltables-9999.ebuild
22 +++ b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
23 @@ -1,20 +1,22 @@
24 -# Copyright 1999-2021 Gentoo Authors
25 +# Copyright 1999-2022 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 EAPI=8
29
30 -DISTUTILS_USE_SETUPTOOLS=pyproject.toml
31 +DISTUTILS_USE_PEP517=poetry
32 PYTHON_COMPAT=( python3_{8..10} )
33
34 -inherit distutils-r1 git-r3
35 +inherit distutils-r1
36
37 DESCRIPTION="Generate simple tables in terminals from a nested list of strings"
38 HOMEPAGE="https://robpol86.github.io/terminaltables/"
39 -EGIT_REPO_URI="https://github.com/matthewdeanmartin/${PN}.git"
40 +SRC_URI="
41 + https://github.com/matthewdeanmartin/terminaltables/archive/v${PV}.tar.gz
42 + -> ${P}.tar.gz"
43
44 LICENSE="MIT"
45 SLOT="0"
46 -KEYWORDS=""
47 +KEYWORDS="~amd64 ~x86"
48
49 BDEPEND="
50 test? (
51 @@ -24,3 +26,15 @@ BDEPEND="
52 )"
53
54 distutils_enable_tests pytest
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/terminaltables-3.1.0-stdout.patch
58 +)
59 +
60 +src_prepare() {
61 + sed -e '/requires/s:poetry:&-core:' \
62 + -e '/backend/s:poetry:&.core:' \
63 + -i pyproject.toml || die
64 +
65 + distutils-r1_src_prepare
66 +}
67
68 diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild b/dev-python/terminaltables/terminaltables-9999.ebuild
69 index ed12c5a82704..c5cb790fdd38 100644
70 --- a/dev-python/terminaltables/terminaltables-9999.ebuild
71 +++ b/dev-python/terminaltables/terminaltables-9999.ebuild
72 @@ -1,9 +1,9 @@
73 -# Copyright 1999-2021 Gentoo Authors
74 +# Copyright 1999-2022 Gentoo Authors
75 # Distributed under the terms of the GNU General Public License v2
76
77 EAPI=8
78
79 -DISTUTILS_USE_SETUPTOOLS=pyproject.toml
80 +DISTUTILS_USE_PEP517=poetry
81 PYTHON_COMPAT=( python3_{8..10} )
82
83 inherit distutils-r1 git-r3
84 @@ -24,3 +24,11 @@ BDEPEND="
85 )"
86
87 distutils_enable_tests pytest
88 +
89 +src_prepare() {
90 + sed -e '/requires/s:poetry:&-core:' \
91 + -e '/backend/s:poetry:&.core:' \
92 + -i pyproject.toml || die
93 +
94 + distutils-r1_src_prepare
95 +}