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 08:35:35
Message-Id: 1646037158.7888ee53660ad59b61b869b0a92f5ec2ea48eccd.mgorny@gentoo
1 commit: 7888ee53660ad59b61b869b0a92f5ec2ea48eccd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 28 08:32:38 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 28 08:32:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7888ee53
7
8 dev-python/pytest-regressions: Make pandas test-dep optional
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-regressions-2.3.1.ebuild | 19 ++++++++++++++++++-
13 1 file changed, 18 insertions(+), 1 deletion(-)
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 8cf9cc85818f..2207079a0ece 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 @@ -26,10 +26,27 @@ BDEPEND="
20 test? (
21 dev-python/matplotlib[${PYTHON_USEDEP}]
22 dev-python/numpy[${PYTHON_USEDEP}]
23 - dev-python/pandas[${PYTHON_USEDEP}]
24 dev-python/pillow[${PYTHON_USEDEP}]
25 dev-python/tox[${PYTHON_USEDEP}]
26 )"
27
28 distutils_enable_tests pytest
29 distutils_enable_sphinx doc dev-python/sphinx_rtd_theme
30 +
31 +python_test() {
32 + local EPYTEST_DESELECT=()
33 + local EPYTEST_IGNORE=()
34 + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
35 + EPYTEST_DESELECT+=(
36 + tests/test_filenames.py::test_foo
37 + tests/test_filenames.py::TestClass::test_foo
38 + tests/test_filenames.py::TestClassWithIgnoredName::test_foo
39 + )
40 + EPYTEST_IGNORE+=(
41 + tests/test_dataframe_regression.py
42 + tests/test_num_regression.py
43 + )
44 + fi
45 +
46 + epytest
47 +}