Hello community,
here is the log from the commit of package python-geventhttpclient for
openSUSE:Factory checked in at 2020-12-16 10:59:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-geventhttpclient (Old)
and /work/SRC/openSUSE:Factory/.python-geventhttpclient.new.2328 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geventhttpclient"
Wed Dec 16 10:59:43 2020 rev:4 rq:855668 version:1.4.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-geventhttpclient/python-geventhttpclient.changes
2020-08-25 12:39:29.857422726 +0200
+++
/work/SRC/openSUSE:Factory/.python-geventhttpclient.new.2328/python-geventhttpclient.changes
2020-12-16 10:59:45.595527011 +0100
@@ -1,0 +2,16 @@
+Mon Dec 14 00:36:02 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Fix condition around BuildRequirement
+
+-------------------------------------------------------------------
+Sun Dec 13 20:26:16 UTC 2020 - Matej Cepl <[email protected]>
+
+- We don't need to break Python 2.7
+
+-------------------------------------------------------------------
+Fri Dec 11 23:08:43 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add remove_mock.patch to remove dependency on the external mock
+ package (gh#gwik/geventhttpclient#135).
+
+-------------------------------------------------------------------
New:
----
remove_mock.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-geventhttpclient.spec ++++++
--- /var/tmp/diff_new_pack.tjvgGe/_old 2020-12-16 10:59:46.279527683 +0100
+++ /var/tmp/diff_new_pack.tjvgGe/_new 2020-12-16 10:59:46.283527686 +0100
@@ -25,14 +25,19 @@
Group: Development/Languages/Python
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
[email protected]
+# remove dependency on the external module mock
+Patch0: remove_mock.patch
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module dpkt}
BuildRequires: %{python_module gevent}
-BuildRequires: %{python_module mock}
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-certifi
@@ -52,7 +57,7 @@
APIs like Twitter's.
%prep
-%setup -q -n geventhttpclient-%{version}
+%autosetup -p1 -n geventhttpclient-%{version}
%build
%python_build
++++++ remove_mock.patch ++++++
--- 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'
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]