commit: d0cfa6a590e6ce0b6d0bd86032faebbdff3f9c40
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Sun Dec 3 22:53:35 2023 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Dec 3 22:53:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d0cfa6a5
dev-python/invoke: allow tests
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
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
+)