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/blurb/
Date: Thu, 09 Sep 2021 18:02:44
Message-Id: 1631210503.ec0cac9a7a595717504ea4c8ebb72ce906bd050f.arthurzam@gentoo
1 commit: ec0cac9a7a595717504ea4c8ebb72ce906bd050f
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 9 18:01:18 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 9 18:01:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec0cac9a
7
8 dev-python/blurb: enable py3.10, EAPI=8, enable tests
9
10 Closes: https://bugs.gentoo.org/812302
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 dev-python/blurb/blurb-1.0.8.ebuild | 16 +++++++++++++---
14 1 file changed, 13 insertions(+), 3 deletions(-)
15
16 diff --git a/dev-python/blurb/blurb-1.0.8.ebuild b/dev-python/blurb/blurb-1.0.8.ebuild
17 index 7d7b1e6e16c..2d91f40572a 100644
18 --- a/dev-python/blurb/blurb-1.0.8.ebuild
19 +++ b/dev-python/blurb/blurb-1.0.8.ebuild
20 @@ -1,10 +1,9 @@
21 # Copyright 2018-2021 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=rdepend
28 -PYTHON_COMPAT=( python3_{7..9} )
29 +PYTHON_COMPAT=( python3_{8..10} )
30 inherit distutils-r1
31
32 DESCRIPTION="Tool to create and manage NEWS blurbs for CPython"
33 @@ -18,3 +17,14 @@ KEYWORDS="~amd64 ~x86"
34 PATCHES=(
35 "${FILESDIR}/blurb-setuptools.patch"
36 )
37 +
38 +src_prepare() {
39 + distutils-r1_src_prepare
40 +
41 + # Tests expect to be run from github repo, in which code is inside dir
42 + ln -s . blurb || die
43 +}
44 +
45 +python_test() {
46 + "${EPYTHON}" -m blurb test || die "Tests failed with ${EPYTHON}"
47 +}