1 |
commit: c08e31285766d3ebef86473c7fc3090afe2761e5 |
2 |
Author: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 23 14:17:20 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Feb 23 14:30:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c08e3128 |
7 |
|
8 |
app-offic/visidata: use distutils_enable_tests |
9 |
|
10 |
Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/sci/pull/1057 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
13 |
|
14 |
app-office/visidata/visidata-2.1.1.ebuild | 5 +++-- |
15 |
1 file changed, 3 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-office/visidata/visidata-2.1.1.ebuild b/app-office/visidata/visidata-2.1.1.ebuild |
18 |
index 8a63fed59..a214036d8 100644 |
19 |
--- a/app-office/visidata/visidata-2.1.1.ebuild |
20 |
+++ b/app-office/visidata/visidata-2.1.1.ebuild |
21 |
@@ -15,8 +15,6 @@ SRC_URI="https://github.com/saulpw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
22 |
LICENSE="GPL-3" |
23 |
SLOT="0" |
24 |
KEYWORDS="~amd64 ~x86" |
25 |
-IUSE="test" |
26 |
-RESTRICT="!test? ( test )" |
27 |
|
28 |
RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]" |
29 |
BDEPEND=" |
30 |
@@ -36,6 +34,8 @@ BDEPEND=" |
31 |
# dev-python/sphinx-argparse |
32 |
# dev-python/sphinx-markdown-tables |
33 |
|
34 |
+distutils_enable_tests pytest |
35 |
+ |
36 |
python_prepare_all() { |
37 |
rm tests/load-http.vd || die "Could not remove network-dependent test." |
38 |
rm tests/graph-cursor-nosave.vd || die "Could not remove network-dependent test." |
39 |
@@ -53,6 +53,7 @@ python_prepare_all() { |
40 |
python_test() { |
41 |
git init || die "Git init failed." |
42 |
git add tests/golden/ || die "Git add failed." |
43 |
+ # this test script eventually calls pytest under the hood |
44 |
dev/test.sh || die "Tests failed." |
45 |
rm .git -rf || die "Could not clean up git test directory." |
46 |
} |