From 2becf90cbeed1e8431dfd896e8a1b0e52085a807 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Aug 2026 03:04:46 -0500 Subject: Adding metadata --- dev-python/websockets/Manifest | 4 +- .../websockets/files/websockets-16.0-py315.patch | 29 ---------- dev-python/websockets/websockets-16.0-r1.ebuild | 65 ---------------------- dev-python/websockets/websockets-16.0.ebuild | 60 -------------------- dev-python/websockets/websockets-16.1.ebuild | 60 -------------------- dev-python/websockets/websockets-17.0.ebuild | 61 -------------------- dev-python/websockets/websockets-17.1.ebuild | 61 ++++++++++++++++++++ 7 files changed, 62 insertions(+), 278 deletions(-) delete mode 100644 dev-python/websockets/files/websockets-16.0-py315.patch delete mode 100644 dev-python/websockets/websockets-16.0-r1.ebuild delete mode 100644 dev-python/websockets/websockets-16.0.ebuild delete mode 100644 dev-python/websockets/websockets-16.1.ebuild delete mode 100644 dev-python/websockets/websockets-17.0.ebuild create mode 100644 dev-python/websockets/websockets-17.1.ebuild (limited to 'dev-python/websockets') diff --git a/dev-python/websockets/Manifest b/dev-python/websockets/Manifest index d2247a8b5db0..f7f7f33e08d4 100644 --- a/dev-python/websockets/Manifest +++ b/dev-python/websockets/Manifest @@ -1,5 +1,3 @@ -DIST websockets-16.0.gh.tar.gz 458014 BLAKE2B 409323f84f919064f758ad06bccf526d1aafac7aee791b9fd35908081ad13cbd252ca49cefbfdc870e5526da82e641750ee46f0103e53c10f0e9b35f9483982f SHA512 ed0bfe6e6402c1504680e9afcb7478e06a5f1af6c0761e35a9a6192569b59c5cce5d0a9f0aaea35922e499a3968dba409cb8d398829e9dff6466db5cb5b98b98 DIST websockets-16.1.1.gh.tar.gz 461500 BLAKE2B 65cf3cb3d755ce131d9f342ef57c3db4fdc7434479eb2e6a86728976ef4245c18245380a7ffad2f135f9b459fe0f54c9682299caa13e3286535f6766985a0438 SHA512 7eeff69ebf0b92c93149ce030fd92440787c3d3b9007b5b0669f0f37cc4c297bb2a207a7742e0450e3ecf1b973fe0306ac9e5dcb96c0d2d907956279c41b6cbd -DIST websockets-16.1.gh.tar.gz 461790 BLAKE2B 961b0d16b8310f0fccd62ed00abf8922cb9a1713389a83c93094c1aa5104a42c88c5fa1ca03b06cfb46f51e4650af9b2c8215f1527e7523e126b54e0940ad7ea SHA512 9c45fee3eb7bf9e027289a97154bfed0f99ad5e8be29c77fd68a65f6de0de557421fafeda937b10ef1aa9359f9d5b77383dc3cf5b6ba7527de1bc25b674cf30b DIST websockets-17.0.1.gh.tar.gz 519834 BLAKE2B 1a1c9a94a4ee0c57e148c4b35019b7435db6a45a910364e5d3eede5642e1e15e1572563e70928f7e13599ba39af067c1b57d93aef3ef5d6eaf3dcaa0ecffe4d7 SHA512 f550107733eceb2aa63874591bf1585f6454a2cec45a0efdbb54b0fee719e5600326a1379e386c7540a20465ff6549ae5a5071262c7b8b3b2652ca9cb3ab6b7d -DIST websockets-17.0.gh.tar.gz 518980 BLAKE2B 20a9c63a46e0a6dac6659b1e6b62ffef94a8a9b0c54bb5873a03084312338ae65e5b0798031ea7f043725c2766d97c5a053c38f5fd2ca5a195aca6c05137200a SHA512 1dc5bd2e932a937056a8702c84925d99e98a73009f06fe39e633c60e3e39f07c3f4d7803b50e58107832e5a566120db311286c8534e6bd70379fe413ec3587ec +DIST websockets-17.1.gh.tar.gz 528172 BLAKE2B af60d77c44adc75b11b0fb1a688ea962a51e61dd5686551981d67758a92ed1b46401ed6d7084218f34a860c1394bc813e2b3a3c8098ee93978ab540a17f50405 SHA512 55a6968ae7a9d02db104733422a6e48f712aaea02e8758389b19f27b41e918697a4d7ed7533cc102eac94f4a025ffe7411d9e671ba2ecd69859450f70a1d1bee diff --git a/dev-python/websockets/files/websockets-16.0-py315.patch b/dev-python/websockets/files/websockets-16.0-py315.patch deleted file mode 100644 index 6ce426da962c..000000000000 --- a/dev-python/websockets/files/websockets-16.0-py315.patch +++ /dev/null @@ -1,29 +0,0 @@ -From f3bf8033276aa4fc272940e650c319c517bb3479 Mon Sep 17 00:00:00 2001 -From: Lumir Balhar -Date: Tue, 7 Apr 2026 09:16:08 +0200 -Subject: [PATCH] Python 3.15+ requires C-contiguous buffers for - int.from_bytes() - ---- - src/websockets/utils.py | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/src/websockets/utils.py b/src/websockets/utils.py -index b2a90e52..84904ea0 100644 ---- a/src/websockets/utils.py -+++ b/src/websockets/utils.py -@@ -47,6 +47,14 @@ def apply_mask(data: BytesLike, mask: bytes | bytearray) -> bytes: - if len(mask) != 4: - raise ValueError("mask must contain 4 bytes") - -+ # Python 3.15+ requires C-contiguous buffers for int.from_bytes() -+ # CPython (https://github.com/python/cpython/pull/132109) optimized -+ # int.from_bytes() to use the buffer protocol with PyBUF_SIMPLE, which requires -+ # C-contiguous buffers. Non-contiguous memoryviews (e.g., created by [::-1]) -+ # now raise BufferError. Convert to bytes to create a contiguous copy. -+ if isinstance(data, memoryview) and not data.c_contiguous: -+ data = bytes(data) -+ - data_int = int.from_bytes(data, sys.byteorder) - mask_repeated = mask * (len(data) // 4) + mask[: len(data) % 4] - mask_int = int.from_bytes(mask_repeated, sys.byteorder) diff --git a/dev-python/websockets/websockets-16.0-r1.ebuild b/dev-python/websockets/websockets-16.0-r1.ebuild deleted file mode 100644 index d670bdcd26ef..000000000000 --- a/dev-python/websockets/websockets-16.0-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -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 16.0 -SRC_URI=" - https://github.com/python-websockets/websockets/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="+native-extensions" - -BDEPEND=" - test? ( - dev-python/werkzeug[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=() -EPYTEST_RERUNS=10 -distutils_enable_tests pytest - -PATCHES=( - # https://github.com/python-websockets/websockets/pull/1706 - "${FILESDIR}/${P}-py315.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=( - # 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 - # TODO - tests/asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running - ) - - epytest tests --reruns-delay=2 -} diff --git a/dev-python/websockets/websockets-16.0.ebuild b/dev-python/websockets/websockets-16.0.ebuild deleted file mode 100644 index a2cb723326ce..000000000000 --- a/dev-python/websockets/websockets-16.0.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -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 16.0 -SRC_URI=" - https://github.com/python-websockets/websockets/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="+native-extensions" - -BDEPEND=" - test? ( - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - dev-python/werkzeug[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -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=( - # 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 - # TODO - tests/asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running - ) - - local EPYTEST_PLUGINS=( pytest-rerunfailures ) - epytest tests -p rerunfailures --reruns=10 --reruns-delay=2 -} diff --git a/dev-python/websockets/websockets-16.1.ebuild b/dev-python/websockets/websockets-16.1.ebuild deleted file mode 100644 index 84e373dccd80..000000000000 --- a/dev-python/websockets/websockets-16.1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -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 16.0 -SRC_URI=" - https://github.com/python-websockets/websockets/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="+native-extensions" - -BDEPEND=" - test? ( - dev-python/werkzeug[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=() -EPYTEST_RERUNS=10 -distutils_enable_tests pytest - -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=( - # 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 - # TODO - tests/asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running - ) - - epytest tests --reruns-delay=2 -} diff --git a/dev-python/websockets/websockets-17.0.ebuild b/dev-python/websockets/websockets-17.0.ebuild deleted file mode 100644 index fa4f27c47d22..000000000000 --- a/dev-python/websockets/websockets-17.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -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 16.0 -SRC_URI=" - https://github.com/python-websockets/websockets/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="+native-extensions" - -BDEPEND=" - test? ( - dev-python/trio[${PYTHON_USEDEP}] - dev-python/werkzeug[${PYTHON_USEDEP}] - ) -" - -EPYTEST_PLUGINS=() -EPYTEST_RERUNS=10 -distutils_enable_tests pytest - -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=( - # 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 - # TODO - tests/asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running - ) - - epytest tests --reruns-delay=2 -} diff --git a/dev-python/websockets/websockets-17.1.ebuild b/dev-python/websockets/websockets-17.1.ebuild new file mode 100644 index 000000000000..fa4f27c47d22 --- /dev/null +++ b/dev-python/websockets/websockets-17.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +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 16.0 +SRC_URI=" + https://github.com/python-websockets/websockets/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +BDEPEND=" + test? ( + dev-python/trio[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +EPYTEST_RERUNS=10 +distutils_enable_tests pytest + +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=( + # 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 + # TODO + tests/asyncio/test_server.py::ServerTests::test_close_server_keeps_handlers_running + ) + + epytest tests --reruns-delay=2 +} -- cgit v1.3