diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-11-16 17:26:13 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-11-16 17:35:19 +0100 |
commit | a48229cb338fedf2e5a076d30c9c81d1955eeaca (patch) | |
tree | d812b1cafc7f2ce2d349dc79fded3ab921696d0a /dev-python | |
parent | dev-libs/rapidjson: Stabilize 1.1.0-r4 arm64, #917390 (diff) | |
download | gentoo-a48229cb338fedf2e5a076d30c9c81d1955eeaca.tar.gz gentoo-a48229cb338fedf2e5a076d30c9c81d1955eeaca.tar.bz2 gentoo-a48229cb338fedf2e5a076d30c9c81d1955eeaca.zip |
dev-python/pyzmq: Enable pypy3
Sponsored-by: Ex Makhina, Inc. <info-gentoo@exmakhina.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyzmq/pyzmq-25.1.1.ebuild | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/dev-python/pyzmq/pyzmq-25.1.1.ebuild b/dev-python/pyzmq/pyzmq-25.1.1.ebuild index b7c58ef257cf..7a6aa2779167 100644 --- a/dev-python/pyzmq/pyzmq-25.1.1.ebuild +++ b/dev-python/pyzmq/pyzmq-25.1.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 @@ -31,11 +31,8 @@ DEPEND=" >=net-libs/zeromq-4.2.2-r2:=[drafts=] " # It uses cffi backend for pypy, cython backend for cpython -RDEPEND="${DEPEND} - $(python_gen_cond_dep ' - dev-python/py[${PYTHON_USEDEP}] - dev-python/cffi:=[${PYTHON_USEDEP}] - ' pypy3) +RDEPEND=" + ${DEPEND} " BDEPEND=" $(python_gen_cond_dep ' @@ -52,22 +49,6 @@ PATCHES=( "${FILESDIR}"/${PN}-23.2.0-libdir.patch ) -EPYTEST_DESELECT=( - # TODO - zmq/tests/test_auth.py - zmq/tests/test_cython.py - zmq/tests/test_zmqstream.py - - # swap thrashing on low-mem hosts, per Debian: - # https://salsa.debian.org/python-team/packages/pyzmq/-/blob/master/debian/patches/skip_large_send - zmq/tests/test_socket.py::TestSocket::test_large_send -) - -EPYTEST_IGNORE=( - # Avoid dependency on mypy - zmq/tests/test_mypy.py -) - distutils_enable_tests pytest # TODO: Package enum_tools # distutils_enable_sphinx docs/source \ @@ -82,6 +63,29 @@ python_prepare_all() { } python_test() { + local EPYTEST_DESELECT=( + # TODO + zmq/tests/test_auth.py + zmq/tests/test_cython.py + zmq/tests/test_zmqstream.py + + # swap thrashing on low-mem hosts, per Debian: + # https://salsa.debian.org/python-team/packages/pyzmq/-/blob/master/debian/patches/skip_large_send + zmq/tests/test_socket.py::TestSocket::test_large_send + ) + local EPYTEST_IGNORE=( + # Avoid dependency on mypy + zmq/tests/test_mypy.py + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # not implemented in cffi variant? + zmq/tests/test_draft.py::TestDraftSockets + ) + esac + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 cd "${BUILD_DIR}/install$(python_get_sitedir)" || die epytest -p asyncio -p rerunfailures |