diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 09ed757..12302c7 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Wed Jul 5 05:10:45 UTC 2017 - tbechtold@suse.com + +- update to 0.44.0: + -renames key in sslopt dict (#326) + - Unkown kwarg 'ca_cert' when calling ssl wrap_socket() (#326) + - Race condition in WebSocket ping/pong (#327) + - Implement simple cookie jar(#292) + - fix: when using pppoe redial will block.(#301) + - Fix insecure_pythons list in setup.py(#304) + - Support WEBSOCKET_CLIENT_CA_BUNDLE being directory(#307) + - WebSocketPayloadException under high traffic and limited network connection(#306) + - Not working --nocert parameter in wsdump.py(#315) + - Avoid the app to block on close on certain systems (#320) + - Fix warning is not defined. (#323) + - move to repository to https://github.com/websocket-client/websocket-client.git + - _send_ping warning fails due to missing reference in _logging.__all__ (#294) + - Fix opcode -> op_code (#286) + - Shuffled around example code (#256) + - _send_ping graceful error handling (#262) + - Allow closing WebSocketApp with status/reason/timeout (#265) + - Support universal wheels (#267) + - _url: Added subnet IP address matching in no_proxy host detection (#270) + - fixed Incorrect encoding in continued messages python3 (#261) + - Pass headers for websocket handshake (#271) + - setup.py: Import `logging` before calling it. (#272) + - Implemented close code 1014 (#273) + - Support CA bundle specified by environment variable (#279) + - Response header values should not be converted to lower case (#264) + - Exclude port 443 from host http header (#248) + - Cleanup code (#249) + - Modify a code block directive in README (#250) + - fixed ping/pong timeouet (#253) +- convert to singlespec +- merge -test package + ------------------------------------------------------------------- Tue Nov 15 13:11:34 UTC 2016 - dmueller@suse.com diff --git a/python-websocket-client.spec b/python-websocket-client.spec index 01d71fd..4d2744f 100644 --- a/python-websocket-client.spec +++ b/python-websocket-client.spec @@ -1,7 +1,7 @@ # # spec file for package python-websocket-client # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,29 +24,30 @@ %endif Name: python-websocket-client -Version: 0.37.0 +Version: 0.44.0 Release: 0 Summary: WebSocket client implementation License: LGPL-2.1 Group: Development/Languages/Python Url: https://github.com/liris/websocket-client/releases -Source0: https://pypi.io/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz +Source0: https://file.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz BuildRequires: %backports -BuildRequires: python-setuptools -BuildRequires: python-six -Requires: %backports +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros Requires: python Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -BuildRequires: python-argparse -BuildRequires: python-unittest2 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +%ifpython2 +Requires: %backports +Provides: python-websocket-client-test = %{version} +Obsoletes: python-websocket-client-test < %{version} %endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages %description websocket-client module is WebSocket client for python. This provide the @@ -54,57 +55,34 @@ low level APIs for WebSocket. All APIs are the synchronous functions. websocket-client supports only hybi-13. -%package test -Summary: Unit tests -Group: Development/Languages/Python -Requires: python-websocket-client = %{version} - -%description test -Unit tests for websocket-client - %prep %setup -q -n websocket_client-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/wsdump.py # Use the system certs rm %{buildroot}/%{python_sitelib}/websocket/cacert.pem -# update alternatives -mv %{buildroot}%{_bindir}/wsdump.py %{buildroot}%{_bindir}/wsdump.py-%{py_ver} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/wsdump.py -ln -sf %{_sysconfdir}/alternatives/wsdump.py %{buildroot}/%{_bindir}/wsdump.py %check -python websocket/tests/test_websocket.py +%python_exec websocket/tests/test_websocket.py %post -update-alternatives \ - --install %{_bindir}/wsdump.py wsdump.py %{_bindir}/wsdump.py-%{py_ver} 20 +%python_install_alternative wsdump.py %postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove wsdump.py %{_bindir}/wsdump.py-%{py_ver} -fi +%python_uninstall_alternative wsdump.py -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %dir %{python_sitelib}/websocket %dir %{python_sitelib}/websocket_client-%{version}-py*.egg-info -%{_bindir}/wsdump.py -%{_bindir}/wsdump.py-%{py_ver} -%exclude %{python_sitelib}/websocket/tests/ +%python_alternative %{_bindir}/wsdump.py %{python_sitelib}/websocket/* %{python_sitelib}/*egg-info/* -%ghost %{_sysconfdir}/alternatives/wsdump.py - -%files test -%defattr(-,root,root,-) -%dir %{python_sitelib}/websocket/tests -%{python_sitelib}/websocket/tests/* %changelog diff --git a/websocket_client-0.37.0.tar.gz b/websocket_client-0.37.0.tar.gz deleted file mode 100644 index dba28ca..0000000 --- a/websocket_client-0.37.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:678b246d816b94018af5297e72915160e2feb042e0cde1a9397f502ac3a52f41 -size 194246 diff --git a/websocket_client-0.44.0.tar.gz b/websocket_client-0.44.0.tar.gz new file mode 100644 index 0000000..14c3fef --- /dev/null +++ b/websocket_client-0.44.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15f585566e2ea7459136a632b9785aa081093064391878a448c382415e948d72 +size 194701