forked from pool/python-geventhttpclient
Accepting request 1033498 from home:pgajdos:python
- version update to 2.0.8 * lot of changes, see https://github.com/geventhttpclient/geventhttpclient/releases - do not require python-six - deleted patches - remove_mock.patch (upstreamed) OBS-URL: https://build.opensuse.org/request/show/1033498 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geventhttpclient?expand=0&rev=16
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3f0ab18d84ef26ba0c9df73ae2a41ba30a46072b447f2e36c740400de4a63d44
|
||||
size 58183
|
3
geventhttpclient-2.0.8.tar.gz
Normal file
3
geventhttpclient-2.0.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5f782c419643f74be4d0918c0d2b63956ef6ddc7a2127f07cbb8033a75ab366f
|
||||
size 76142
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 4 10:52:22 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- version update to 2.0.8
|
||||
* lot of changes, see
|
||||
https://github.com/geventhttpclient/geventhttpclient/releases
|
||||
- do not require python-six
|
||||
- deleted patches
|
||||
- remove_mock.patch (upstreamed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 16 14:50:32 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-geventhttpclient
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-geventhttpclient
|
||||
Version: 1.4.5
|
||||
Version: 2.0.8
|
||||
Release: 0
|
||||
Summary: HTTP client library for gevent
|
||||
License: MIT
|
||||
@@ -27,22 +27,21 @@ URL: https://github.com/gwik/geventhttpclient
|
||||
Source: https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM remove_mock.patch gh#gwik/geventhttpclient#135 mcepl@suse.com
|
||||
# remove dependency on the external module mock
|
||||
Patch0: remove_mock.patch
|
||||
BuildRequires: %{python_module Brotli}
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module dpkt}
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
%if 0%{?suse_version} <= 1500
|
||||
BuildRequires: python-mock
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Brotli
|
||||
Requires: python-certifi
|
||||
Requires: python-gevent
|
||||
Requires: python-six
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -74,7 +73,7 @@ sed -i '/sock.last_seen_sni/ d' src/geventhttpclient/tests/test_ssl.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.mdown
|
||||
%license LICENSE-MIT
|
||||
%license LICENSE.txt
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
||||
|
@@ -1,21 +0,0 @@
|
||||
--- a/src/geventhttpclient/tests/test_ssl.py
|
||||
+++ b/src/geventhttpclient/tests/test_ssl.py
|
||||
@@ -1,5 +1,7 @@
|
||||
-import mock
|
||||
-from mock import patch, Mock
|
||||
+try:
|
||||
+ import unittest.mock as mock
|
||||
+except ImportError:
|
||||
+ import mock
|
||||
|
||||
import dpkt.ssl
|
||||
import six
|
||||
@@ -117,7 +119,7 @@ def _get_sni_sent_from_client(**addition
|
||||
('127.0.0.1', server_port)
|
||||
)
|
||||
with mock.patch(
|
||||
- 'gevent.socket.getaddrinfo', Mock(return_value=[mock_addrinfo])
|
||||
+ 'gevent.socket.getaddrinfo', mock.Mock(return_value=[mock_addrinfo])
|
||||
):
|
||||
|
||||
server_host = 'some_foo'
|
Reference in New Issue
Block a user