Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/
Date: Fri, 08 Apr 2022 11:10:03
Message-Id: 1649416187.b22c2a9fa96709402a28580645764093d92dadc5.mgorny@gentoo
1 commit: b22c2a9fa96709402a28580645764093d92dadc5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 10:14:51 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 11:09:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b22c2a9f
7
8 dev-python/websockets: Enable pypy3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/websockets/websockets-10.2.ebuild | 11 ++++++++++-
13 1 file changed, 10 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-python/websockets/websockets-10.2.ebuild b/dev-python/websockets/websockets-10.2.ebuild
16 index 729159c20d01..6f54d8b00932 100644
17 --- a/dev-python/websockets/websockets-10.2.ebuild
18 +++ b/dev-python/websockets/websockets-10.2.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=setuptools
23 -PYTHON_COMPAT=( python3_{8..10} )
24 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
25
26 inherit distutils-r1
27
28 @@ -21,5 +21,14 @@ KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv sparc x86"
29 distutils_enable_tests pytest
30
31 python_test() {
32 + local EPYTEST_DESELECT=(
33 + # very fragile to speed
34 + tests/legacy/test_protocol.py::ServerTests::test_local_close_receive_close_frame_timeout
35 + )
36 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
37 + tests/test_utils.py::SpeedupsTests::test_apply_mask_non_contiguous_memoryview
38 + tests/legacy/test_client_server.py::SecureClientServerTests::test_http_request_ws_endpoint
39 + )
40 +
41 epytest tests
42 }