commit: 7709c0efbde5505b63815e5be40bd92ded1360f0
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 25 06:47:58 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 25 07:51:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7709c0ef
dev-python/griffe: Enable pypy3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/griffe/griffe-1.5.7.ebuild | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/dev-python/griffe/griffe-1.5.7.ebuild
b/dev-python/griffe/griffe-1.5.7.ebuild
index 9b75031cdcd0..6eb68aa7e8c1 100644
--- a/dev-python/griffe/griffe-1.5.7.ebuild
+++ b/dev-python/griffe/griffe-1.5.7.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=pdm-backend
-PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
inherit distutils-r1
@@ -42,8 +42,23 @@ distutils_enable_tests pytest
export PDM_BUILD_SCM_VERSION=${PV}
-EPYTEST_DESELECT=(
- # fragile to installed packages
- # (failed on PySide2 for me)
- tests/test_stdlib.py::test_fuzzing_on_stdlib
-)
+python_test() {
+ local EPYTEST_DESELECT=(
+ # fragile to installed packages
+ # (failed on PySide2 for me)
+ tests/test_stdlib.py::test_fuzzing_on_stdlib
+ )
+
+ case ${EPYTHON} in
+ pypy3*)
+ EPYTEST_DESELECT+=(
+ # tries importing CPython-specific modules
+ #
https://github.com/mkdocstrings/griffe/issues/362
+ tests/test_loader.py::test_load_builtin_modules
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}