diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-02-25 07:47:58 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-02-25 08:51:40 +0100 |
| commit | 7709c0efbde5505b63815e5be40bd92ded1360f0 (patch) | |
| tree | ef34806591bd56ba0660e53a9f1f6324a93ef6e2 /dev-python | |
| parent | 37b765024625096b423343ea6b2fcc98535aac00 (diff) | |
| download | gentoo-7709c0efbde5505b63815e5be40bd92ded1360f0.tar.gz gentoo-7709c0efbde5505b63815e5be40bd92ded1360f0.tar.bz2 gentoo-7709c0efbde5505b63815e5be40bd92ded1360f0.zip | |
dev-python/griffe: Enable pypy3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/griffe/griffe-1.5.7.ebuild | 27 |
1 files 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 +} |
