diff --git a/python-websocket-client.changes b/python-websocket-client.changes index 09ed757..e8401ce 100644 --- a/python-websocket-client.changes +++ b/python-websocket-client.changes @@ -1,3 +1,66 @@ +------------------------------------------------------------------- +Tue Sep 5 07:57:36 UTC 2017 - dmueller@suse.com + +- properly provide/obsolete python3-websocket-client-test + +------------------------------------------------------------------- +Mon Aug 28 16:25:44 UTC 2017 - tbechtold@suse.com + +- Fix build for Leap 42.3 + +------------------------------------------------------------------- +Tue Aug 15 15:10:45 UTC 2017 - toddrme2178@gmail.com + +- Update license to LGPL 3 +- Fix rpmlint issues + +------------------------------------------------------------------- +Mon Jul 24 23:55:01 UTC 2017 - jengelh@inai.de + +- Grammatical/Typographic corrections to the description. + +------------------------------------------------------------------- +Fri Jul 21 17:46:23 UTC 2017 - toddrme2178@gmail.com + +- Fix singlespec macro usage +- Fix source URL. + +------------------------------------------------------------------- +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..d3abecb 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 @@ -18,93 +18,76 @@ # RHEL provides this backport in its own repository %if 0%{?rhel} == 7 -%define backports python-backports-ssl_match_hostname +%define ssl_match_hostname python-backports-ssl_match_hostname %else -%define backports python-backports.ssl_match_hostname +%define ssl_match_hostname python-backports.ssl_match_hostname %endif +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-websocket-client -Version: 0.37.0 +Version: 0.44.0 Release: 0 Summary: WebSocket client implementation -License: LGPL-2.1 +License: LGPL-3.0 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 -BuildRequires: %backports -BuildRequires: python-setuptools -BuildRequires: python-six -Requires: %backports -Requires: python +Source0: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket_client-%{version}.tar.gz +BuildRequires: %ssl_match_hostname +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros 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: %ssl_match_hostname %endif +Provides: python-websocket-client-test = %{version} +Obsoletes: python-websocket-client-test < %{version} +BuildArch: noarch + +%python_subpackages %description -websocket-client module is WebSocket client for python. This provide the -low level APIs for WebSocket. All APIs are the synchronous functions. +The websocket-client module is a WebSocket client for Python. This provides the +low-level APIs for WebSocket. All APIs are 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 +Websocket-client supports only hybi-13. %prep %setup -q -n websocket_client-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# 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 +%python_install +%python_clone -a %{buildroot}%{_bindir}/wsdump.py +# Use the system certs +%python_expand rm %{buildroot}/%{$python_sitelib}/websocket/cacert.pem + +%python_expand %fdupes %{buildroot}/%{$python_sitelib} + +%if %{with test} %check -python websocket/tests/test_websocket.py +%python_exec websocket/tests/test_websocket.py +%endif %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_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/* +%python_alternative %{_bindir}/wsdump.py +%{python_sitelib}/websocket/ +%{python_sitelib}/websocket_client-%{version}-py*.egg-info %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