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-05-12 20:38:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-geventhttpclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-geventhttpclient.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-geventhttpclient"

Fri May 12 20:38:14 2023 rev:7 rq:1086630 version:2.0.9

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-geventhttpclient/python-geventhttpclient.changes
  2022-11-05 14:46:31.154506405 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-geventhttpclient.new.1533/python-geventhttpclient.changes
        2023-05-12 20:40:52.319049387 +0200
@@ -1,0 +2,7 @@
+Thu May  4 20:36:44 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 2.0.9:
+  * Add square brackets for Host header when using IPv6 address
+  * Enable ppc64le wheels
+
+-------------------------------------------------------------------

Old:
----
  geventhttpclient-2.0.8.tar.gz

New:
----
  geventhttpclient-2.0.9.tar.gz

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

Other differences:
------------------
++++++ python-geventhttpclient.spec ++++++
--- /var/tmp/diff_new_pack.ccCnDu/_old  2023-05-12 20:40:52.775051893 +0200
+++ /var/tmp/diff_new_pack.ccCnDu/_new  2023-05-12 20:40:52.779051915 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-geventhttpclient
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,13 @@
 
 
 Name:           python-geventhttpclient
-Version:        2.0.8
+Version:        2.0.9
 Release:        0
 Summary:        HTTP client library for gevent
 License:        MIT
 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
 BuildRequires:  %{python_module Brotli}
 BuildRequires:  %{python_module certifi}
 BuildRequires:  %{python_module devel}
@@ -33,6 +31,7 @@
 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

++++++ geventhttpclient-2.0.8.tar.gz -> geventhttpclient-2.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/geventhttpclient-2.0.8/PKG-INFO 
new/geventhttpclient-2.0.9/PKG-INFO
--- old/geventhttpclient-2.0.8/PKG-INFO 2022-10-15 10:16:51.958776500 +0200
+++ new/geventhttpclient-2.0.9/PKG-INFO 2023-03-13 22:22:41.183661200 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: geventhttpclient
-Version: 2.0.8
+Version: 2.0.9
 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.8/setup.py 
new/geventhttpclient-2.0.9/setup.py
--- old/geventhttpclient-2.0.8/setup.py 2022-10-15 10:16:46.000000000 +0200
+++ new/geventhttpclient-2.0.9/setup.py 2023-03-13 22:22:36.000000000 +0100
@@ -53,7 +53,7 @@
     ]
 
 setup(name='geventhttpclient',
-      version = "2.0.8", # dont forget to update version in __init__.py as well
+      version = "2.0.9", # 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.8/src/geventhttpclient/__init__.py 
new/geventhttpclient-2.0.9/src/geventhttpclient/__init__.py
--- old/geventhttpclient-2.0.8/src/geventhttpclient/__init__.py 2022-10-15 
10:16:46.000000000 +0200
+++ new/geventhttpclient-2.0.9/src/geventhttpclient/__init__.py 2023-03-13 
22:22:36.000000000 +0100
@@ -1,6 +1,6 @@
 # package
 
-__version__ = "2.0.8"  # dont forget to update version in setup.py as well
+__version__ = "2.0.9"  # 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.8/src/geventhttpclient/client.py 
new/geventhttpclient-2.0.9/src/geventhttpclient/client.py
--- old/geventhttpclient-2.0.8/src/geventhttpclient/client.py   2022-10-15 
10:16:46.000000000 +0200
+++ new/geventhttpclient-2.0.9/src/geventhttpclient/client.py   2023-03-13 
22:22:36.000000000 +0100
@@ -175,6 +175,9 @@
         header_fields.update(headers)
         if self.version == self.HTTP_11 and HEADER_HOST not in header_fields:
             host_port = self.host
+            # IPv6 addresses require square brackets in the Host header.
+            if ':' in self.host and self.host[0] != '[' and self.host[-1] != 
']':
+                host_port = '[' + host_port + ']'
             if self.port not in (80, 443):
                 host_port += HOST_PORT_SEP + str(self.port)
             header_fields[HEADER_HOST] = host_port
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.8/src/geventhttpclient/tests/test_http_host.py 
new/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_http_host.py
--- old/geventhttpclient-2.0.8/src/geventhttpclient/tests/test_http_host.py     
1970-01-01 01:00:00.000000000 +0100
+++ new/geventhttpclient-2.0.9/src/geventhttpclient/tests/test_http_host.py     
2023-03-13 22:22:36.000000000 +0100
@@ -0,0 +1,30 @@
+import pytest
+from geventhttpclient import HTTPClient
+from geventhttpclient.client import METHOD_GET
+
+def test_domain():
+    http = HTTPClient('localhost')
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
localhost\r\n") > 0
+
+    http = HTTPClient('localhost', 1234)
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
localhost:1234\r\n") > 0
+
+def test_ipv4():
+    http = HTTPClient('127.0.0.1')
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
127.0.0.1\r\n") > 0
+
+    http = HTTPClient('127.0.0.1', 1234)
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
127.0.0.1:1234\r\n") > 0
+
+def test_ipv6():
+    http = HTTPClient('[::1]')
+    assert http._build_request(METHOD_GET, "").lower().find("host: [::1]\r\n") 
> 0
+
+    http = HTTPClient('[::1]', 1234)
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
[::1]:1234\r\n") > 0
+
+    http = HTTPClient('::1')
+    assert http._build_request(METHOD_GET, "").lower().find("host: [::1]\r\n") 
> 0
+
+    http = HTTPClient('::1', 1234)
+    assert http._build_request(METHOD_GET, "").lower().find("host: 
[::1]:1234\r\n") > 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/geventhttpclient-2.0.8/src/geventhttpclient.egg-info/PKG-INFO 
new/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/PKG-INFO
--- old/geventhttpclient-2.0.8/src/geventhttpclient.egg-info/PKG-INFO   
2022-10-15 10:16:51.000000000 +0200
+++ new/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/PKG-INFO   
2023-03-13 22:22:41.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: geventhttpclient
-Version: 2.0.8
+Version: 2.0.9
 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.8/src/geventhttpclient.egg-info/SOURCES.txt 
new/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/SOURCES.txt
--- old/geventhttpclient-2.0.8/src/geventhttpclient.egg-info/SOURCES.txt        
2022-10-15 10:16:51.000000000 +0200
+++ new/geventhttpclient-2.0.9/src/geventhttpclient.egg-info/SOURCES.txt        
2023-03-13 22:22:41.000000000 +0100
@@ -28,6 +28,7 @@
 src/geventhttpclient/tests/server.key
 src/geventhttpclient/tests/test_client.py
 src/geventhttpclient/tests/test_headers.py
+src/geventhttpclient/tests/test_http_host.py
 src/geventhttpclient/tests/test_httplib.py
 src/geventhttpclient/tests/test_keep_alive.py
 src/geventhttpclient/tests/test_network_failures.py

Reply via email to