From d0cfa6a590e6ce0b6d0bd86032faebbdff3f9c40 Mon Sep 17 00:00:00 2001 From: Henri Gasc Date: Sun, 3 Dec 2023 23:53:35 +0100 Subject: [PATCH] dev-python/invoke: allow tests Signed-off-by: Henri Gasc --- dev-python/invoke/invoke-2.2.0.ebuild | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/dev-python/invoke/invoke-2.2.0.ebuild b/dev-python/invoke/invoke-2.2.0.ebuild index 5e5ff8f517..cf85db35d0 100644 --- a/dev-python/invoke/invoke-2.2.0.ebuild +++ b/dev-python/invoke/invoke-2.2.0.ebuild @@ -15,7 +15,19 @@ LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" -src_prepare(){ - rm -r ./invoke/vendor/yaml2 - eapply_user -} +BDEPEND=" + test? ( + dev-python/decorator[${PYTHON_USEDEP}] + >=dev-python/icecream-2.1[${PYTHON_USEDEP}] + >=dev-python/pytest-cov-4[${PYTHON_USEDEP}] + >=dev-python/pytest-relaxed-2[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +EPYTEST_DESELECT=( + # Most of those fails with "OSError: reading from stdin while output is captured" + # seems like it is because I do the testing in a chroot + # Because there are 112 tests that fails, I'd rather skip the file than manually add 112 tests + tests/runners.py +)