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/pytest-regressions/
Date: Mon, 28 Feb 2022 10:13:22
Message-Id: 1646043195.c890846a3a7f5387ac6c9620590a90352ed88215.mgorny@gentoo
1 commit: c890846a3a7f5387ac6c9620590a90352ed88215
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 28 09:02:37 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 28 10:13:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c890846a
7
8 dev-python/pytest-regressions: Make test deps on mpl & pillow opt.
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-regressions/pytest-regressions-2.3.1.ebuild | 12 ++++++++++--
13 1 file changed, 10 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
16 index 2207079a0ece..42f0a8168f29 100644
17 --- a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
18 +++ b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild
19 @@ -24,9 +24,7 @@ RDEPEND="
20
21 BDEPEND="
22 test? (
23 - dev-python/matplotlib[${PYTHON_USEDEP}]
24 dev-python/numpy[${PYTHON_USEDEP}]
25 - dev-python/pillow[${PYTHON_USEDEP}]
26 dev-python/tox[${PYTHON_USEDEP}]
27 )"
28
29 @@ -36,6 +34,11 @@ distutils_enable_sphinx doc dev-python/sphinx_rtd_theme
30 python_test() {
31 local EPYTEST_DESELECT=()
32 local EPYTEST_IGNORE=()
33 + if ! has_version "dev-python/matplotlib[${PYTHON_USEDEP}]"; then
34 + EPYTEST_DESELECT+=(
35 + tests/test_image_regression.py::test_image_regression
36 + )
37 + fi
38 if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
39 EPYTEST_DESELECT+=(
40 tests/test_filenames.py::test_foo
41 @@ -47,6 +50,11 @@ python_test() {
42 tests/test_num_regression.py
43 )
44 fi
45 + if ! has_version "dev-python/pillow[${PYTHON_USEDEP}]"; then
46 + EPYTEST_DESELECT+=(
47 + tests/test_image_regression.py
48 + )
49 + fi
50
51 epytest
52 }