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/libpillowfight/
Date: Tue, 01 Feb 2022 20:42:01
Message-Id: 1643748107.deb427c10768078cfbd23a14eb9cb569bf7d5d94.arthurzam@gentoo
1 commit: deb427c10768078cfbd23a14eb9cb569bf7d5d94
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 1 18:58:55 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 1 20:41:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb427c1
7
8 dev-python/libpillowfight: fix test calls
9
10 Use better way to handle pytest C errors
11
12 Fixes: 9b96d2dfc7572357be8dbd92fc9302660c196129
13 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
14
15 dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild | 9 ++++-----
16 1 file changed, 4 insertions(+), 5 deletions(-)
17
18 diff --git a/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild b/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild
19 index 5e1ace91926e..62e40857072e 100644
20 --- a/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild
21 +++ b/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2021 Gentoo Authors
24 +# Copyright 1999-2022 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=7
28 @@ -23,6 +23,7 @@ RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]"
29 distutils_enable_tests nose
30
31 python_prepare_all() {
32 + ln -s "${S}"/tests "${T}"/tests || die
33 sed -e "/'nose>=1.0'/d" -i setup.py || die
34 cat > src/pillowfight/_version.h <<- EOF || die
35 #define INTERNAL_PILLOWFIGHT_VERSION "$(ver_cut 1-3)"
36 @@ -31,8 +32,6 @@ python_prepare_all() {
37 }
38
39 python_test() {
40 - cp -r -l -n tests "${BUILD_DIR}/lib" || die
41 - cd "${BUILD_DIR}/lib" || die
42 - distutils-r1_python_test
43 - rm -r tests || die
44 + cd "${T}" || die
45 + epytest "${S}"/tests -o addopts=
46 }