1 |
commit: 20c16061a5beacf338203117ee02f204c4689c1e |
2 |
Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 25 14:40:35 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 16:05:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c16061 |
7 |
|
8 |
media-libs/mutagen: clean tests |
9 |
|
10 |
Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/20984 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
media-libs/mutagen/mutagen-1.45.1.ebuild | 17 ++++++++--------- |
15 |
1 file changed, 8 insertions(+), 9 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/mutagen/mutagen-1.45.1.ebuild b/media-libs/mutagen/mutagen-1.45.1.ebuild |
18 |
index bc580066567..6c482da9106 100644 |
19 |
--- a/media-libs/mutagen/mutagen-1.45.1.ebuild |
20 |
+++ b/media-libs/mutagen/mutagen-1.45.1.ebuild |
21 |
@@ -1,9 +1,9 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
29 |
+PYTHON_COMPAT=( python3_{7..9} ) |
30 |
inherit distutils-r1 |
31 |
|
32 |
DESCRIPTION="Audio metadata tag reader and writer implemented in pure Python" |
33 |
@@ -13,25 +13,24 @@ SRC_URI="https://github.com/quodlibet/mutagen/releases/download/release-${PV}/${ |
34 |
LICENSE="GPL-2" |
35 |
SLOT="0" |
36 |
KEYWORDS="amd64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" |
37 |
-IUSE="test" |
38 |
|
39 |
-# TODO: Missing support for >=dev-python/eyeD3-0.7 API |
40 |
-# test? ( >=dev-python/eyeD3-0.7 ) |
41 |
BDEPEND=" |
42 |
test? ( |
43 |
+ dev-python/eyeD3[${PYTHON_USEDEP}] |
44 |
dev-python/hypothesis[${PYTHON_USEDEP}] |
45 |
dev-python/pyflakes[${PYTHON_USEDEP}] |
46 |
- dev-python/pytest[${PYTHON_USEDEP}] |
47 |
) |
48 |
" |
49 |
|
50 |
-RESTRICT="!test? ( test )" |
51 |
- |
52 |
DOCS=( NEWS README.rst ) |
53 |
|
54 |
+distutils_enable_tests pytest |
55 |
distutils_enable_sphinx docs \ |
56 |
dev-python/sphinx_rtd_theme |
57 |
|
58 |
python_test() { |
59 |
- esetup.py test --no-quality |
60 |
+ local deselect=( |
61 |
+ tests/quality/test_flake8.py |
62 |
+ ) |
63 |
+ epytest ${deselect[@]/#/--deselect } |
64 |
} |