From a8b4aea5b1fb17634d226122d847a4d8f7ab26e5c5f61e051c82d9753efabdf9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 21 Aug 2024 11:26:36 +0000 Subject: [PATCH] Accepting request 1194153 from home:yeey:branches:devel:languages:python - Release 1.0.0 * New async client and server #28 (commit) * On a closed connection, return buffered input before raising an exception #30 (commit) * Do not duplicate SSLSocket instances #26 (commit) * Handle broken pipe errors in background thread #29 (commit) * Remove unused argument (commit) * Eliminate race conditions during testing #27 (commit) * Remove python 3.7 from unit tests (commit) OBS-URL: https://build.opensuse.org/request/show/1194153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-simple-websocket?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-simple-websocket.changes | 12 +++++++ python-simple-websocket.spec | 63 +++++++++++++++++++++++++++++++++ simple-websocket-1.0.0.tar.gz | 3 ++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-simple-websocket.changes create mode 100644 python-simple-websocket.spec create mode 100644 simple-websocket-1.0.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-simple-websocket.changes b/python-simple-websocket.changes new file mode 100644 index 0000000..636edc1 --- /dev/null +++ b/python-simple-websocket.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Wed Aug 14 19:43:32 UTC 2024 - Guang Yee + +- Release 1.0.0 + * New async client and server #28 (commit) + * On a closed connection, return buffered input before raising an + exception #30 (commit) + * Do not duplicate SSLSocket instances #26 (commit) + * Handle broken pipe errors in background thread #29 (commit) + * Remove unused argument (commit) + * Eliminate race conditions during testing #27 (commit) + * Remove python 3.7 from unit tests (commit) diff --git a/python-simple-websocket.spec b/python-simple-websocket.spec new file mode 100644 index 0000000..ff8850d --- /dev/null +++ b/python-simple-websocket.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-simple-websocket +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%{?sle15_python_module_pythons} +Name: python-simple-websocket +Version: 1.0.0 +Release: 0 +Summary: Simple WebSocket server and client for Python +License: MIT +URL: https://github.com/miguelgrinberg/simple-websocket +Source: https://files.pythonhosted.org/packages/source/s/simple-websocket/simple-websocket-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module wsproto} +# /SECTION +BuildRequires: fdupes +Requires: python-wsproto +Suggests: python-sphinx +BuildArch: noarch +%python_subpackages + +%description +Simple WebSocket server and client for Python + +%prep +%autosetup -p1 -n simple-websocket-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# FIXME: Disable check for now as the upstream tarball test files are incomplete. i.e. helpers.py +# is needed by excluded from the release tarball for whatever reason. Hence, the tests will +# inevitably failed without it. + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/simple_websocket +%{python_sitelib}/simple_websocket-%{version}.dist-info + +%changelog diff --git a/simple-websocket-1.0.0.tar.gz b/simple-websocket-1.0.0.tar.gz new file mode 100644 index 0000000..447fb0e --- /dev/null +++ b/simple-websocket-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17d2c72f4a2bd85174a97e3e4c88b01c40c3f81b7b648b0cc3ce1305968928c8 +size 13071