14
0
forked from pool/python-txWS

Accepting request 1089605 from home:pgajdos:python

- do not require six
- added patches
  fix https://github.com/MostAwesomeDude/txWS/issues/36
  + python-txWS-no-python2.patch
  05aadd036a
  + python-txWS-tobytes.patch
- added sources
  9e3a2a464b
  + tests.py

OBS-URL: https://build.opensuse.org/request/show/1089605
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-txWS?expand=0&rev=9
This commit is contained in:
2023-05-30 13:40:35 +00:00
committed by Git OBS Bridge
parent 757abba350
commit 10b8f8bb61
5 changed files with 546 additions and 8 deletions

26
python-txWS-tobytes.patch Normal file
View File

@@ -0,0 +1,26 @@
Index: txWS-0.9.1/txws.py
===================================================================
--- txWS-0.9.1.orig/txws.py
+++ txWS-0.9.1/txws.py
@@ -211,7 +211,7 @@ def mask(buf, key):
buf = array.array("B", buf)
for i in range(len(buf)):
buf[i] ^= key[i % 4]
- return buf.tostring()
+ return buf.tobytes()
def make_hybi07_frame(buf, opcode=0x1):
"""
Index: txWS-0.9.1/setup.py
===================================================================
--- txWS-0.9.1.orig/setup.py
+++ txWS-0.9.1/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name="txWS",
py_modules=["txws"],
- setup_requires=["vcversioner", "six"],
+ setup_requires=["vcversioner"],
vcversioner={},
author="Corbin Simpson",
author_email="simpsoco@osuosl.org",