Accepting request 687637 from devel:languages:python
- Update to 0.54.0: * many fixes all around, see ChangeLog file - Drop merged use_system_cabundle.patch OBS-URL: https://build.opensuse.org/request/show/687637 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websocket-client?expand=0&rev=11
This commit is contained in:
commit
8e47d0e382
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 6 19:47:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.54.0:
|
||||||
|
* many fixes all around, see ChangeLog file
|
||||||
|
- Drop merged use_system_cabundle.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:55:59 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:55:59 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-websocket-client
|
# spec file for package python-websocket-client
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -23,17 +23,14 @@
|
|||||||
%else
|
%else
|
||||||
%define ssl_match_hostname python-backports.ssl_match_hostname
|
%define ssl_match_hostname python-backports.ssl_match_hostname
|
||||||
%endif
|
%endif
|
||||||
%bcond_without test
|
|
||||||
Name: python-websocket-client
|
Name: python-websocket-client
|
||||||
Version: 0.46.0
|
Version: 0.54.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: WebSocket client implementation
|
Summary: WebSocket client implementation
|
||||||
License: LGPL-2.1-only
|
License: LGPL-2.1-only
|
||||||
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: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/w/websocket_client/websocket_client-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE use_system_cabundle.patch bnc#1076519
|
|
||||||
Patch0: use_system_cabundle.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{ssl_match_hostname}
|
BuildRequires: %{ssl_match_hostname}
|
||||||
@ -58,21 +55,17 @@ Websocket-client supports only hybi-13.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n websocket_client-%{version}
|
%setup -q -n websocket_client-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||||
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
|
%python_clone -a %{buildroot}%{_bindir}/wsdump.py
|
||||||
|
|
||||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_exec websocket/tests/test_websocket.py
|
%python_exec websocket/tests/test_websocket.py
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative wsdump.py
|
%python_install_alternative wsdump.py
|
||||||
@ -82,7 +75,7 @@ Websocket-client supports only hybi-13.
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst ChangeLog
|
||||||
%python_alternative %{_bindir}/wsdump.py
|
%python_alternative %{_bindir}/wsdump.py
|
||||||
%{python_sitelib}/websocket/
|
%{python_sitelib}/websocket/
|
||||||
%{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
%{python_sitelib}/websocket_client-%{version}-py*.egg-info
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
diff -Naur a/setup.py b/setup.py
|
|
||||||
--- a/setup.py 2017-12-24 07:47:39.000000000 +0100
|
|
||||||
+++ b/setup.py 2018-01-18 10:54:20.090661863 +0100
|
|
||||||
@@ -63,7 +63,6 @@
|
|
||||||
packages=["websocket", "websocket.tests"],
|
|
||||||
package_data={
|
|
||||||
'websocket.tests': ['data/*.txt'],
|
|
||||||
- 'websocket': ["cacert.pem"]
|
|
||||||
},
|
|
||||||
tests_require=tests_require,
|
|
||||||
test_suite="websocket.tests"
|
|
||||||
diff -Naur a/websocket/_http.py b/websocket/_http.py
|
|
||||||
--- a/websocket/_http.py 2017-12-09 08:07:42.000000000 +0100
|
|
||||||
+++ b/websocket/_http.py 2018-01-18 10:55:01.854569515 +0100
|
|
||||||
@@ -176,8 +176,7 @@
|
|
||||||
if os.environ.get('WEBSOCKET_CLIENT_CA_BUNDLE'):
|
|
||||||
certPath = os.environ.get('WEBSOCKET_CLIENT_CA_BUNDLE')
|
|
||||||
else:
|
|
||||||
- certPath = os.path.join(
|
|
||||||
- os.path.dirname(__file__), "cacert.pem")
|
|
||||||
+ certPath = ssl.get_default_verify_paths().cafile
|
|
||||||
if os.path.isfile(certPath) and user_sslopt.get('ca_certs', None) is None \
|
|
||||||
and user_sslopt.get('ca_cert', None) is None:
|
|
||||||
sslopt['ca_certs'] = certPath
|
|
||||||
diff -Naur a/websocket_client.egg-info/SOURCES.txt b/websocket_client.egg-info/SOURCES.txt
|
|
||||||
--- a/websocket_client.egg-info/SOURCES.txt 2017-12-30 12:28:30.000000000 +0100
|
|
||||||
+++ b/websocket_client.egg-info/SOURCES.txt 2018-01-18 10:54:31.166637627 +0100
|
|
||||||
@@ -20,7 +20,6 @@
|
|
||||||
websocket/_ssl_compat.py
|
|
||||||
websocket/_url.py
|
|
||||||
websocket/_utils.py
|
|
||||||
-websocket/cacert.pem
|
|
||||||
websocket/tests/__init__.py
|
|
||||||
websocket/tests/test_cookiejar.py
|
|
||||||
websocket/tests/test_websocket.py
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:933f6bbf08b381f2adbca9e93d7e7958ba212b42c73acb310b18f0fbe74f3738
|
|
||||||
size 203950
|
|
3
websocket_client-0.54.0.tar.gz
Normal file
3
websocket_client-0.54.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e51562c91ddb8148e791f0155fdb01325d99bb52c4cdbb291aee7a3563fd0849
|
||||||
|
size 36413
|
Loading…
Reference in New Issue
Block a user