14
0

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:
Todd R
2014-10-02 16:12:30 +00:00
committed by Git OBS Bridge
parent c024dd7aaf
commit 655e71ad2d
5 changed files with 20 additions and 25 deletions

View File

@@ -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

View File

@@ -16,16 +16,14 @@
#
%define upstream_name websocket-client
Name: python-websocket-client
Version: 0.15.0
Version: 0.18.0
Release: 0
Summary: WebSocket client implementation
License: LGPL-2.1
Group: Development/Languages/Python
Url: https://github.com/liris/websocket-client/releases
Source0: %{upstream_name}-%{version}.tar.gz
Patch0: webSoc_useSystemCert.patch
Source0: websocket-client-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-six
Requires: python
@@ -54,8 +52,7 @@ Requires: python-websocket-client = %{version}
Unit tests for websocket-client
%prep
%setup -q -n %{upstream_name}-%{version}
%patch0
%setup -q -n websocket-client-%{version}
%build
python setup.py build
@@ -72,7 +69,7 @@ python tests/test_websocket.py
%defattr(-,root,root,-)
%doc LICENSE README.rst
%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
%{python_sitelib}/websocket/*
%{python_sitelib}/*egg-info/*

View File

@@ -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)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:17c01763866bbd355a2c6919e86f51b8dad9e0875596abd890ffde1e5dfdb5c6
size 189783

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3bc6c2eb9d154432408d664f1289be0d58473daa4086ac61dcee1ba523f4d610
size 192122