diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-11-16 17:58:49 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-11-16 18:10:54 +0100 |
commit | ac3c895b10e8339b63947d209fc1d016868836f1 (patch) | |
tree | 0bc01270b1ef6638d8816f9854ac56dea7b742fe | |
parent | dev-python/asttokens: Enable pypy3 (diff) | |
download | gentoo-ac3c895b10e8339b63947d209fc1d016868836f1.tar.gz gentoo-ac3c895b10e8339b63947d209fc1d016868836f1.tar.bz2 gentoo-ac3c895b10e8339b63947d209fc1d016868836f1.zip |
dev-python/executing: Enable pypy3
Sponsored-by: Ex Makhina, Inc. <info-gentoo@exmakhina.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/executing/executing-2.0.1.ebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/dev-python/executing/executing-2.0.1.ebuild b/dev-python/executing/executing-2.0.1.ebuild index 0a6d4915a3b7..1adb0b4974bd 100644 --- a/dev-python/executing/executing-2.0.1.ebuild +++ b/dev-python/executing/executing-2.0.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) inherit distutils-r1 optfeature @@ -26,13 +26,14 @@ BDEPEND=" dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( >=dev-python/asttokens-2.1.0[${PYTHON_USEDEP}] - dev-python/ipython[${PYTHON_USEDEP}] dev-python/littleutils[${PYTHON_USEDEP}] dev-python/rich[${PYTHON_USEDEP}] ) " -PATCHES=( "${FILESDIR}/${PN}-2.0.1-additional-slow-tests.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-2.0.1-additional-slow-tests.patch" +) distutils_enable_tests pytest @@ -41,6 +42,11 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} python_test() { local EPYTEST_DESELECT=() case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + "tests/test_main.py::test_small_samples[46597f8f896f11c5d7f432236344cc7e5645c2a39836eb6abdd2437c0422f0f4.py]" + ) + ;; python3.10) EPYTEST_DESELECT+=( # crashes with infinite recursion (?) @@ -48,6 +54,11 @@ python_test() { ) ;; esac + if ! has_version "dev-python/ipython[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_ipython.py + ) + fi local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest |