forked from pool/python-websocket-client
Accepting request 253676 from home:TheBlackCat:branches:devel:languages:python
Update to version 0.18.0 OBS-URL: https://build.opensuse.org/request/show/253676 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websocket-client?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 2 15:56:51 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to version 0.18.0
|
||||||
|
- allow override of match_hostname usage on ssl (#105)
|
||||||
|
- Update to version 0.17.0
|
||||||
|
- can't set timeout on a standing websocket connection (#102)
|
||||||
|
- fixed local variable 'error' referenced before assignment (#102, #98)
|
||||||
|
- Update to version 0.16.0
|
||||||
|
- lock some method for multithread. (#92)
|
||||||
|
- disable cert verification. (#89)
|
||||||
|
- Remove upstreamed webSoc_useSystemCert.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 23 22:01:20 UTC 2014 - rschweikert@suse.com
|
Mon Jun 23 22:01:20 UTC 2014 - rschweikert@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -16,16 +16,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define upstream_name websocket-client
|
|
||||||
Name: python-websocket-client
|
Name: python-websocket-client
|
||||||
Version: 0.15.0
|
Version: 0.18.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: WebSocket client implementation
|
Summary: WebSocket client implementation
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/liris/websocket-client/releases
|
Url: https://github.com/liris/websocket-client/releases
|
||||||
Source0: %{upstream_name}-%{version}.tar.gz
|
Source0: websocket-client-%{version}.tar.gz
|
||||||
Patch0: webSoc_useSystemCert.patch
|
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: python-six
|
BuildRequires: python-six
|
||||||
Requires: python
|
Requires: python
|
||||||
@@ -54,8 +52,7 @@ Requires: python-websocket-client = %{version}
|
|||||||
Unit tests for websocket-client
|
Unit tests for websocket-client
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{upstream_name}-%{version}
|
%setup -q -n websocket-client-%{version}
|
||||||
%patch0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
@@ -72,7 +69,7 @@ python tests/test_websocket.py
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%dir %{python_sitelib}/websocket
|
%dir %{python_sitelib}/websocket
|
||||||
%dir %{python_sitelib}/websocket_client-%{version}-py%{py_ver}.egg-info
|
%dir %{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
||||||
%{_bindir}/wsdump.py
|
%{_bindir}/wsdump.py
|
||||||
%{python_sitelib}/websocket/*
|
%{python_sitelib}/websocket/*
|
||||||
%{python_sitelib}/*egg-info/*
|
%{python_sitelib}/*egg-info/*
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
--- websocket/__init__.py.orig
|
|
||||||
+++ websocket/__init__.py
|
|
||||||
@@ -517,8 +517,10 @@ class WebSocket(object):
|
|
||||||
|
|
||||||
if is_secure:
|
|
||||||
if HAVE_SSL:
|
|
||||||
- sslopt = dict(cert_reqs=ssl.CERT_REQUIRED,
|
|
||||||
- ca_certs=os.path.join(os.path.dirname(__file__), "cacert.pem"))
|
|
||||||
+ sslopt = dict(cert_reqs=ssl.CERT_REQUIRED)
|
|
||||||
+ certPath = os.path.join(os.path.dirname(__file__), "cacert.pem")
|
|
||||||
+ if os.path.isfile(certPath):
|
|
||||||
+ sslopt['ca_certs'] = certPath
|
|
||||||
sslopt.update(self.sslopt)
|
|
||||||
self.sock = ssl.wrap_socket(self.sock, **sslopt)
|
|
||||||
match_hostname(self.sock.getpeercert(), hostname)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:17c01763866bbd355a2c6919e86f51b8dad9e0875596abd890ffde1e5dfdb5c6
|
|
||||||
size 189783
|
|
||||||
3
websocket-client-0.18.0.tar.gz
Normal file
3
websocket-client-0.18.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3bc6c2eb9d154432408d664f1289be0d58473daa4086ac61dcee1ba523f4d610
|
||||||
|
size 192122
|
||||||
Reference in New Issue
Block a user