From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A3E051582EF for ; Mon, 17 Feb 2025 20:47:31 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 8AE6D34316A for ; Mon, 17 Feb 2025 20:47:31 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 21A8A110475; Mon, 17 Feb 2025 20:47:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 177A3110475 for ; Mon, 17 Feb 2025 20:47:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B46D2343158 for ; Mon, 17 Feb 2025 20:47:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E02D42737 for ; Mon, 17 Feb 2025 20:47:15 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1739825215.7be0e1b07d53ff0350d160d34827d2bc7c680024.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/trio-websocket/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/trio-websocket/Manifest dev-python/trio-websocket/trio-websocket-0.12.0.ebuild X-VCS-Directories: dev-python/trio-websocket/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7be0e1b07d53ff0350d160d34827d2bc7c680024 X-VCS-Branch: master Date: Mon, 17 Feb 2025 20:47:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6e9400f2-aea2-471c-b87d-77216f422a0e X-Archives-Hash: 30c53a387d5536a618adb9c1b8f21e56 commit: 7be0e1b07d53ff0350d160d34827d2bc7c680024 Author: Michał Górny gentoo org> AuthorDate: Mon Feb 17 14:35:03 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Feb 17 20:46:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be0e1b0 dev-python/trio-websocket: Bump to 0.12.0 Signed-off-by: Michał Górny gentoo.org> dev-python/trio-websocket/Manifest | 1 + .../trio-websocket/trio-websocket-0.12.0.ebuild | 56 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-python/trio-websocket/Manifest b/dev-python/trio-websocket/Manifest index fe2bbffe906f..5c7cab56e16c 100644 --- a/dev-python/trio-websocket/Manifest +++ b/dev-python/trio-websocket/Manifest @@ -1 +1,2 @@ DIST trio-websocket-0.11.1.gh.tar.gz 45682 BLAKE2B 0f926421828476c9e23cf962df7a17a2cf4470e0898dddbc4690497521205ea11973a188ca460685739d08c34be237682b0bbbbe2c279d35e5c2fdce9b3ce020 SHA512 4b0eb6f0c012cefedb69b97e9452ba979336fbe9f154799c4c68871b8013e728374e4872a2343ab4d27fa6e25e40c3063e681e80470123d37f13f531be4f6644 +DIST trio-websocket-0.12.0.gh.tar.gz 52237 BLAKE2B 1577162f36fe7e22fe7618f5895876dff0af4ed84bc7cb34975aa291390be48df322ab79cce1c04aa9a67f1b1c8578a1988ba7b49a8208a11fde68ec0cc678a8 SHA512 f1c166a075f9b5b63ea36216b2f138fb9fbb4b60f8d23bf3dc85899d02a9f6e59439c2c7a18194fc05837b4f986206b9140f1b59cfc5061ed5667c1dad32455b diff --git a/dev-python/trio-websocket/trio-websocket-0.12.0.ebuild b/dev-python/trio-websocket/trio-websocket-0.12.0.ebuild new file mode 100644 index 000000000000..b81e48c07229 --- /dev/null +++ b/dev-python/trio-websocket/trio-websocket-0.12.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="WebSocket client and server implementation for Python Trio" +HOMEPAGE=" + https://github.com/python-trio/trio-websocket/ + https://pypi.org/project/trio-websocket/ +" +SRC_URI=" + https://github.com/python-trio/trio-websocket/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/exceptiongroup[${PYTHON_USEDEP}] + ' 3.10) + >=dev-python/trio-0.11[${PYTHON_USEDEP}] + >=dev-python/wsproto-0.14[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-python/pytest-trio-0.5.0[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # exception tests are broken with trio-0.25 + # https://github.com/python-trio/trio-websocket/issues/187 + tests/test_connection.py::test_handshake_exception_before_accept + tests/test_connection.py::test_reject_handshake + tests/test_connection.py::test_reject_handshake_invalid_info_status + tests/test_connection.py::test_client_open_timeout + tests/test_connection.py::test_client_close_timeout + tests/test_connection.py::test_client_connect_networking_error + tests/test_connection.py::test_finalization_dropped_exception + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p trio +}