From 026041601bc53b08f3a24ccc4b7aa3d599ec6e85 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Fri, 3 Apr 2026 17:55:32 +0300 Subject: [PATCH] python-websockets: bump to 16.0, add test.sh Major version bump from 11.0.3 to 16.0. The legacy API (websockets.legacy.*) was removed in 14.0; the current public API (connect/serve in websockets.asyncio.*) is stable and backward-compatible since 12.0. Add test.sh that verifies core imports (frames, http11, datastructures). Changelog: https://websockets.readthedocs.io/en/stable/changelog.html Signed-off-by: Alexandru Ardelean --- lang/python/python-websockets/Makefile | 4 ++-- lang/python/python-websockets/test.sh | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 lang/python/python-websockets/test.sh diff --git a/lang/python/python-websockets/Makefile b/lang/python/python-websockets/Makefile index fac0d741b2..3222be86ec 100644 --- a/lang/python/python-websockets/Makefile +++ b/lang/python/python-websockets/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-websockets -PKG_VERSION:=11.0.3 +PKG_VERSION:=16.0 PKG_RELEASE:=1 PYPI_NAME:=websockets -PKG_HASH:=88fc51d9a26b10fc331be344f1781224a375b78488fc343620184e95a4b27016 +PKG_HASH:=5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5 PKG_MAINTAINER:=Michal Vasilek PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/python-websockets/test.sh b/lang/python/python-websockets/test.sh new file mode 100755 index 0000000000..68b48dfa08 --- /dev/null +++ b/lang/python/python-websockets/test.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +[ "$1" = python3-websockets ] || exit 0 + +python3 - << 'EOF' +import websockets +from websockets.version import version +assert version, "websockets version is empty" + +from websockets.frames import Frame, Opcode +from websockets.http11 import Request, Response +from websockets.datastructures import Headers + +h = Headers([("Content-Type", "text/plain")]) +assert h["Content-Type"] == "text/plain", "Headers lookup failed" +EOF