From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A57115808B for ; Mon, 28 Feb 2022 08:35:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86B9DE081A; Mon, 28 Feb 2022 08:35:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6708CE081A for ; Mon, 28 Feb 2022 08:35:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C8585343239 for ; Mon, 28 Feb 2022 08:35:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A01B2CB for ; Mon, 28 Feb 2022 08:35:09 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1646037158.7888ee53660ad59b61b869b0a92f5ec2ea48eccd.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-regressions/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild X-VCS-Directories: dev-python/pytest-regressions/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7888ee53660ad59b61b869b0a92f5ec2ea48eccd X-VCS-Branch: master Date: Mon, 28 Feb 2022 08:35:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9c7984a8-df5e-49bc-9a3f-4e0187f6d883 X-Archives-Hash: a2ed47047420e352f4557b9a548fc26a commit: 7888ee53660ad59b61b869b0a92f5ec2ea48eccd Author: Michał Górny gentoo org> AuthorDate: Mon Feb 28 08:32:38 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Feb 28 08:32:38 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7888ee53 dev-python/pytest-regressions: Make pandas test-dep optional Signed-off-by: Michał Górny gentoo.org> .../pytest-regressions-2.3.1.ebuild | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild index 8cf9cc85818f..2207079a0ece 100644 --- a/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild +++ b/dev-python/pytest-regressions/pytest-regressions-2.3.1.ebuild @@ -26,10 +26,27 @@ BDEPEND=" test? ( dev-python/matplotlib[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] dev-python/pillow[${PYTHON_USEDEP}] dev-python/tox[${PYTHON_USEDEP}] )" distutils_enable_tests pytest distutils_enable_sphinx doc dev-python/sphinx_rtd_theme + +python_test() { + local EPYTEST_DESELECT=() + local EPYTEST_IGNORE=() + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_filenames.py::test_foo + tests/test_filenames.py::TestClass::test_foo + tests/test_filenames.py::TestClassWithIgnoredName::test_foo + ) + EPYTEST_IGNORE+=( + tests/test_dataframe_regression.py + tests/test_num_regression.py + ) + fi + + epytest +}