public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/
Date: Fri,  1 Sep 2023 12:16:43 +0000 (UTC)	[thread overview]
Message-ID: <1693570577.0b311fbf4d125a38e7fb37cb8fb722d4bdeeb626.sam@gentoo> (raw)

commit:     0b311fbf4d125a38e7fb37cb8fb722d4bdeeb626
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Mon Aug  7 05:14:43 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  1 12:16:17 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b311fbf

dev-python/websockets: disable native-extensions for pypy3

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/websockets/websockets-11.0.3-r2.ebuild | 57 +++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/dev-python/websockets/websockets-11.0.3-r2.ebuild b/dev-python/websockets/websockets-11.0.3-r2.ebuild
new file mode 100644
index 000000000000..cfbf2d5a02db
--- /dev/null
+++ b/dev-python/websockets/websockets-11.0.3-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Library for building WebSocket servers and clients in Python"
+HOMEPAGE="
+	https://websockets.readthedocs.io/
+	https://github.com/python-websockets/websockets/
+	https://pypi.org/project/websockets/
+"
+# tests are missing pypi sdist, as of 11.0
+SRC_URI="
+	https://github.com/python-websockets/websockets/archive/${PV}.tar.gz
+		-> ${P}.gh.tar.gz
+	https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-11.0.3-python3.12.patch.xz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+native-extensions"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	"${WORKDIR}"/${P}-python3.12.patch
+)
+
+python_compile() {
+	if use native-extensions && [[ ${EPYTHON} != pypy3 ]] ; then
+		local -x BUILD_EXTENSION=yes
+	else
+		local -x BUILD_EXTENSION=no
+	fi
+
+	distutils-r1_python_compile
+}
+
+python_test() {
+	local EPYTEST_DESELECT=(
+		# very fragile to speed
+		tests/legacy/test_protocol.py::ServerTests::test_local_close_receive_close_frame_timeout
+		# requires DNS access
+		# https://bugs.gentoo.org/909567
+		tests/legacy/test_client_server.py::ClientServerTests::test_explicit_host_port
+		tests/legacy/test_client_server.py::SecureClientServerTests::test_explicit_host_port
+	)
+
+	epytest tests
+}


             reply	other threads:[~2023-09-01 12:16 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01 12:16 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-14  4:39 [gentoo-commits] repo/gentoo:master commit in: dev-python/websockets/ Michał Górny
2024-11-10  3:24 Michał Górny
2024-10-13 12:17 Sam James
2024-10-12 14:57 Sam James
2024-10-12 14:57 Sam James
2024-10-10 12:20 Arthur Zamarin
2024-10-08 18:52 Arthur Zamarin
2024-10-08 18:52 Arthur Zamarin
2024-10-05 12:51 Sam James
2024-10-05  8:22 Arthur Zamarin
2024-09-22  2:28 Michał Górny
2024-08-29  4:52 Michał Górny
2024-05-11 17:36 Michał Górny
2023-11-29  7:44 Michał Górny
2023-11-29  6:15 Arthur Zamarin
2023-11-29  6:14 Arthur Zamarin
2023-11-29  6:14 Arthur Zamarin
2023-11-23 19:53 Sam James
2023-11-22 12:12 Arthur Zamarin
2023-11-22 11:56 Sam James
2023-11-22 11:11 Sam James
2023-11-22 11:06 Michał Górny
2023-10-22  6:55 Michał Górny
2023-10-18 15:56 Michał Górny
2023-10-18 10:18 Sam James
2023-10-18 10:18 Sam James
2023-10-18 10:18 Sam James
2023-10-18 10:18 Sam James
2023-10-18 10:18 Sam James
2023-10-14 18:17 Arthur Zamarin
2023-10-14 16:59 Arthur Zamarin
2023-10-14 16:53 Arthur Zamarin
2023-10-14 16:52 Arthur Zamarin
2023-10-02 15:41 Sam James
2023-10-02 15:41 Sam James
2023-08-04 20:20 Arthur Zamarin
2023-07-15 13:15 Arthur Zamarin
2023-07-03 18:55 Michał Górny
2023-06-10  4:20 Sam James
2023-06-09 18:02 Arthur Zamarin
2023-05-30 19:00 Sam James
2023-05-10 19:24 Michał Górny
2023-05-10 17:23 Arthur Zamarin
2023-05-10 17:22 Arthur Zamarin
2023-05-08  4:36 Michał Górny
2023-05-05 13:24 Arthur Zamarin
2023-05-05  9:39 Arthur Zamarin
2023-05-05  8:02 Arthur Zamarin
2023-05-05  7:42 Sam James
2023-05-05  7:36 Arthur Zamarin
2023-05-05  6:56 Arthur Zamarin
2023-04-29  5:48 Michał Górny
2023-04-07  4:19 Michał Górny
2023-04-03  2:57 Michał Górny
2023-02-13  3:22 Matt Turner
2022-12-02 11:55 Arthur Zamarin
2022-11-25 19:11 Sam James
2022-11-25 14:01 Arthur Zamarin
2022-11-25 14:00 Arthur Zamarin
2022-11-25 13:57 Arthur Zamarin
2022-11-25 13:52 Arthur Zamarin
2022-11-25 13:50 Arthur Zamarin
2022-11-25 13:47 Arthur Zamarin
2022-10-26  4:03 Michał Górny
2022-06-05 10:35 Michał Górny
2022-06-05  9:08 Sam James
2022-05-31 11:05 Jakov Smolić
2022-05-31 11:05 Jakov Smolić
2022-05-31  8:54 Agostino Sarubbo
2022-05-31  8:51 Agostino Sarubbo
2022-05-31  8:01 Jakov Smolić
2022-05-31  7:56 Jakov Smolić
2022-05-31  7:56 Jakov Smolić
2022-05-11 12:56 Jakov Smolić
2022-05-01  1:52 WANG Xuerui
2022-04-18  8:19 Michał Górny
2022-04-08 14:34 Arthur Zamarin
2022-04-08 14:23 Arthur Zamarin
2022-04-08 14:23 Arthur Zamarin
2022-04-08 11:09 Michał Górny
2022-04-08 11:09 Michał Górny
2022-04-02 14:19 Arthur Zamarin
2022-03-28  6:51 Agostino Sarubbo
2022-03-27  6:27 Agostino Sarubbo
2022-03-26 19:45 Sam James
2022-03-26 19:15 Arthur Zamarin
2022-03-26 17:42 Arthur Zamarin
2022-03-26 16:52 Arthur Zamarin
2022-02-21  9:15 Michał Górny
2021-12-16  7:44 Agostino Sarubbo
2021-12-15 17:26 Arthur Zamarin
2021-12-15 17:08 Arthur Zamarin
2021-12-15 17:08 Arthur Zamarin
2021-12-15 16:59 Arthur Zamarin
2021-12-15 16:56 Arthur Zamarin
2021-12-15 16:50 Jakov Smolić
2021-12-15 16:49 Arthur Zamarin
2021-12-03 20:47 Arthur Zamarin
2021-12-03 16:41 Michał Górny
2021-11-18  9:09 Sam James
2021-11-15  8:34 Michał Górny
2021-11-13 21:09 Jakov Smolić
2021-11-13 19:50 Sam James
2021-10-31 18:03 Sam James
2021-10-30  7:52 James Le Cuirot
2021-10-20  0:11 Sam James
2021-10-16  1:14 Sam James
2021-10-15 22:43 Sam James
2021-09-25  7:45 Michał Górny
2021-09-25  5:18 Agostino Sarubbo
2021-09-18 12:30 Agostino Sarubbo
2021-09-18  4:25 Sam James
2021-09-17 14:14 Agostino Sarubbo
2021-09-17  9:19 Agostino Sarubbo
2021-09-16 18:56 Sam James
2021-09-16  6:29 Sam James
2021-08-24 21:02 Marek Szuba
2021-08-05 18:53 Louis Sautier
2021-07-27  5:37 Michał Górny
2021-07-26  2:14 Sam James
2021-07-26  2:14 Sam James
2021-06-17 15:56 Sergei Trofimovich
2021-05-30 10:08 Michał Górny
2021-05-30  5:15 Sam James
2021-05-29  8:41 Agostino Sarubbo
2021-05-28  7:35 Agostino Sarubbo
2021-05-27 23:18 Michał Górny
2021-05-18 17:28 Sam James
2021-05-15 21:18 Michał Górny
2021-05-03  9:16 Michał Górny
2021-05-02 15:12 Michał Górny
2021-05-02 15:12 Michał Górny
2021-02-18 16:46 Rick Farina
2021-02-18  8:20 Sam James
2021-02-15  2:19 Rick Farina
2020-12-21 22:39 Sam James
2020-12-20 17:24 Sam James
2020-12-20 16:50 Sam James
2020-09-30 21:20 James Le Cuirot
2020-04-25 15:49 James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1693570577.0b311fbf4d125a38e7fb37cb8fb722d4bdeeb626.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox