Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-geventhttpclient for 
openSUSE:Factory checked in at 2023-12-08 22:32:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-geventhttpclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-geventhttpclient.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-geventhttpclient"

Fri Dec  8 22:32:14 2023 rev:9 rq:1131746 version:2.0.11

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-geventhttpclient/python-geventhttpclient.changes
  2023-08-28 17:14:06.522266689 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-geventhttpclient.new.25432/python-geventhttpclient.changes
       2023-12-08 22:32:45.809567467 +0100
@@ -1,0 +2,7 @@
+Thu Dec  7 22:50:28 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.0.11:
+  * Support Python 3.12
+  * Disable unit tests for no ssl module + fixes for build
+
+-------------------------------------------------------------------

Old:
----
  geventhttpclient-2.0.9.tar.gz

New:
----
  geventhttpclient-2.0.11.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-geventhttpclient.spec ++++++
--- /var/tmp/diff_new_pack.rzearQ/_old  2023-12-08 22:32:46.833605146 +0100
+++ /var/tmp/diff_new_pack.rzearQ/_new  2023-12-08 22:32:46.849605734 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-geventhttpclient
-Version:        2.0.9
+Version:        2.0.11
 Release:        0
 Summary:        HTTP client library for gevent
 License:        MIT

++++++ geventhttpclient-2.0.9.tar.gz -> geventhttpclient-2.0.11.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/geventhttpclient-2.0.9/PKG-INFO 
new/geventhttpclient-2.0.11/PKG-INFO
--- old/geventhttpclient-2.0.9/PKG-INFO 2023-03-13 22:22:41.183661200 +0100
+++ new/geventhttpclient-2.0.11/PKG-INFO        2023-10-03 16:48:18.258110300 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: geventhttpclient
-Version: 2.0.9
+Version: 2.0.11
 Summary: http client library for gevent
 Home-page: http://github.com/gwik/geventhttpclient
 Author: Antonin Amand
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/geventhttpclient-2.0.9/README.mdown 
new/geventhttpclient-2.0.11/README.mdown
--- old/geventhttpclient-2.0.9/README.mdown     2023-03-13 22:22:36.000000000 
+0100
+++ new/geventhttpclient-2.0.11/README.mdown    2023-10-03 16:48:12.000000000 
+0200
@@ -1,7 +1,5 @@
 # geventhttpclient
 
-[![Build 
Status](https://travis-ci.org/gwik/geventhttpclient.svg?branch=master)](https://travis-ci.org/gwik/geventhttpclient)
-
 A high performance, concurrent HTTP client library for python using 
 [gevent](http://gevent.org).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/geventhttpclient-2.0.9/setup.py 
new/geventhttpclient-2.0.11/setup.py
--- old/geventhttpclient-2.0.9/setup.py 2023-03-13 22:22:36.000000000 +0100
+++ new/geventhttpclient-2.0.11/setup.py        2023-10-03 16:48:12.000000000 
+0200
@@ -53,7 +53,7 @@
     ]
 
 setup(name='geventhttpclient',
-      version = "2.0.9", # dont forget to update version in __init__.py as well
+      version = "2.0.11", # dont forget to update version in __init__.py as 
well
       description = 'http client library for gevent',
       long_description = DESC,
       url="http://github.com/gwik/geventhttpclient";,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.9/src/geventhttpclient/__init__.py 
new/geventhttpclient-2.0.11/src/geventhttpclient/__init__.py
--- old/geventhttpclient-2.0.9/src/geventhttpclient/__init__.py 2023-03-13 
22:22:36.000000000 +0100
+++ new/geventhttpclient-2.0.11/src/geventhttpclient/__init__.py        
2023-10-03 16:48:12.000000000 +0200
@@ -1,6 +1,6 @@
 # package
 
-__version__ = "2.0.9"  # dont forget to update version in setup.py as well
+__version__ = "2.0.11"  # dont forget to update version in setup.py as well
 
 from geventhttpclient.client import HTTPClient
 from geventhttpclient.url import URL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.9/src/geventhttpclient/connectionpool.py 
new/geventhttpclient-2.0.11/src/geventhttpclient/connectionpool.py
--- old/geventhttpclient-2.0.9/src/geventhttpclient/connectionpool.py   
2023-03-13 22:22:36.000000000 +0100
+++ new/geventhttpclient-2.0.11/src/geventhttpclient/connectionpool.py  
2023-10-03 16:48:12.000000000 +0200
@@ -1,6 +1,7 @@
 import gevent.queue
 import gevent.socket
 import os
+import sys
 import six
 
 _CA_CERTS = None
@@ -195,7 +196,8 @@
     import gevent.ssl
 
     try:
-        from gevent.ssl import match_hostname
+        if sys.version_info[:2] < (3, 7):
+            from gevent.ssl import match_hostname
     except ImportError:
         from backports.ssl_match_hostname import match_hostname
 
@@ -259,7 +261,7 @@
 
         def after_connect(self, sock):
             super(SSLConnectionPool, self).after_connect(sock)
-            if not self.insecure:
+            if not self.insecure and sys.version_info[:2] < (3, 7):
                 match_hostname(sock.getpeercert(), self._request_host)
 
         def _connect_socket(self, sock, address):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_client.py 
new/geventhttpclient-2.0.11/src/geventhttpclient/tests/test_client.py
--- old/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_client.py        
2023-03-13 22:22:36.000000000 +0100
+++ new/geventhttpclient-2.0.11/src/geventhttpclient/tests/test_client.py       
2023-10-03 16:48:12.000000000 +0200
@@ -34,9 +34,53 @@
     finally:
         server.stop()
 
+
+class HTTPBinClient(HTTPClient):
+    """Special HTTPClient with higher timeout values
+
+    Args:
+        HTTPClient (_type_): _description_
+    """
+
+    def __init__(
+        self,
+        host,
+        port=None,
+        headers=None,
+        block_size=HTTPClient.BLOCK_SIZE,
+        connection_timeout=30.0,
+        network_timeout=30.0,
+        disable_ipv6=True,
+        concurrency=1,
+        ssl=False,
+        ssl_options=None,
+        ssl_context_factory=None,
+        insecure=False,
+        proxy_host=None,
+        proxy_port=None,
+        version=HTTPClient.HTTP_11,
+    ):
+        super().__init__(
+            host,
+            port=port,
+            headers=headers,
+            block_size=block_size,
+            connection_timeout=connection_timeout,
+            network_timeout=network_timeout,
+            disable_ipv6=disable_ipv6,
+            concurrency=concurrency,
+            ssl=ssl,
+            ssl_options=ssl_options,
+            ssl_context_factory=ssl_context_factory,
+            insecure=insecure,
+            proxy_host=proxy_host,
+            proxy_port=proxy_port,
+            version=version,
+        )
+
 @pytest.mark.online
 def test_client_simple():
-    client = HTTPClient('httpbin.org')
+    client = HTTPBinClient('httpbin.org')
     assert client.port == 80
     response = client.get('/')
     assert response.status_code == 200
@@ -45,7 +89,7 @@
 
 @pytest.mark.online
 def test_client_without_leading_slash():
-    client = HTTPClient('httpbin.org')
+    client = HTTPBinClient('httpbin.org')
     with client.get("") as response:
         assert response.status_code == 200
     with client.get("base64/test") as response:
@@ -54,11 +98,11 @@
 test_headers = {'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; de; 
rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17'}
 @pytest.mark.online
 def test_client_with_default_headers():
-    client = HTTPClient.from_url('httpbin.org/', headers=test_headers)
+    client = HTTPBinClient.from_url('httpbin.org/', headers=test_headers)
 
 @pytest.mark.online
 def test_request_with_headers():
-    client = HTTPClient('httpbin.org')
+    client = HTTPBinClient('httpbin.org')
     response = client.get('/', headers=test_headers)
     assert response.status_code == 200
 
@@ -124,7 +168,7 @@
 
 @pytest.mark.online
 def test_multi_queries_greenlet_safe():
-    client = HTTPClient('httpbin.org', concurrency=3)
+    client = HTTPBinClient('httpbin.org', concurrency=3)
     group = gevent.pool.Group()
     event = gevent.event.Event()
 
@@ -134,13 +178,19 @@
         return response, response.read()
 
     count = 0
+    ok_count = 0
 
     gevent.spawn_later(0.2, event.set)
     for response, content in group.imap_unordered(run, xrange(5)):
-        assert response.status_code == 200
+        # occasionally httpbin.org will return 504 :-/
+        assert response.status_code in [200, 504]
+        if response.status_code == 200:
+            ok_count += 1
         assert len(content)
         count += 1
     assert count == 5
+    # ensure at least 3 of requests got 200
+    assert ok_count >= 3
 
 
 class StreamTestIterator(object):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_no_module_ssl.py 
new/geventhttpclient-2.0.11/src/geventhttpclient/tests/test_no_module_ssl.py
--- old/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_no_module_ssl.py 
2023-03-13 22:22:36.000000000 +0100
+++ 
new/geventhttpclient-2.0.11/src/geventhttpclient/tests/test_no_module_ssl.py    
    2023-10-03 16:48:12.000000000 +0200
@@ -1,3 +1,6 @@
+# These tests are broken since gevent 23.7.0. I'm optimistic this is not a 
real issue,
+# it's just that gevent got more picky.
+
 import sys
 import pytest
 
@@ -21,11 +24,13 @@
 
 
 def test_import_with_nossl():
+    return
     with DisableSSL():
         from geventhttpclient import httplib
         from geventhttpclient import HTTPClient
 
 def test_httpclient_raises_with_no_ssl():
+    return
     with DisableSSL():
         from geventhttpclient import HTTPClient
         with pytest.raises(Exception):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/PKG-INFO 
new/geventhttpclient-2.0.11/src/geventhttpclient.egg-info/PKG-INFO
--- old/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/PKG-INFO   
2023-03-13 22:22:41.000000000 +0100
+++ new/geventhttpclient-2.0.11/src/geventhttpclient.egg-info/PKG-INFO  
2023-10-03 16:48:18.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: geventhttpclient
-Version: 2.0.9
+Version: 2.0.11
 Summary: http client library for gevent
 Home-page: http://github.com/gwik/geventhttpclient
 Author: Antonin Amand

Reply via email to