Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-websockets for
openSUSE:Factory checked in at 2026-07-09 22:18:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-websockets (Old)
and /work/SRC/openSUSE:Factory/.python-websockets.new.1991 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-websockets"
Thu Jul 9 22:18:13 2026 rev:30 rq:1364422 version:16.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-websockets/python-websockets.changes
2026-04-21 12:42:18.220152886 +0200
+++
/work/SRC/openSUSE:Factory/.python-websockets.new.1991/python-websockets.changes
2026-07-09 22:18:24.676148935 +0200
@@ -1,0 +2,6 @@
+Wed Jul 8 03:01:26 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-python-315.patch:
+ * Python 3.15+ requires C-contiguous buffers for int.from_bytes().
+
+-------------------------------------------------------------------
New:
----
support-python-315.patch
----------(New B)----------
New:
- Add patch support-python-315.patch:
* Python 3.15+ requires C-contiguous buffers for int.from_bytes().
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-websockets.spec ++++++
--- /var/tmp/diff_new_pack.wsEKwK/_old 2026-07-09 22:18:25.392173221 +0200
+++ /var/tmp/diff_new_pack.wsEKwK/_new 2026-07-09 22:18:25.396173356 +0200
@@ -28,9 +28,10 @@
Release: 0
Summary: An implementation of the WebSocket Protocol (RFC 6455)
License: BSD-3-Clause
-Group: Development/Languages/Python
URL: https://github.com/aaugustin/websockets
Source:
https://github.com/aaugustin/websockets/archive/%{version}.tar.gz#/websockets-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#python-websockets/websockets#1706
+Patch0: support-python-315.patch
BuildRequires: %{python_module devel >= 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
++++++ support-python-315.patch ++++++
>From f3bf8033276aa4fc272940e650c319c517bb3479 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <[email protected]>
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)