Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-requests-unixsocket for openSUSE:Factory checked in at 2023-05-10 16:16:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-requests-unixsocket (Old) and /work/SRC/openSUSE:Factory/.python-requests-unixsocket.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests-unixsocket" Wed May 10 16:16:39 2023 rev:5 rq:1085688 version:0.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-requests-unixsocket/python-requests-unixsocket.changes 2022-01-11 21:20:32.905012796 +0100 +++ /work/SRC/openSUSE:Factory/.python-requests-unixsocket.new.1533/python-requests-unixsocket.changes 2023-05-10 16:16:40.538318503 +0200 @@ -1,0 +2,6 @@ +Tue May 9 11:44:12 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add urllib3-2.patch to make it compatible with urllib3 >= 2.0.0 + gh#msabramo/requests-unixsocket#69 + +------------------------------------------------------------------- New: ---- urllib3-2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-requests-unixsocket.spec ++++++ --- /var/tmp/diff_new_pack.e8xqcZ/_old 2023-05-10 16:16:41.238322644 +0200 +++ /var/tmp/diff_new_pack.e8xqcZ/_new 2023-05-10 16:16:41.242322667 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-requests-unixsocket # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-unixsocket Version: 0.3.0 Release: 0 @@ -25,6 +24,8 @@ Group: Development/Languages/Python URL: https://github.com/msabramo/requests-unixsocket Source: https://files.pythonhosted.org/packages/source/r/requests-unixsocket/requests-unixsocket-%{version}.tar.gz +# PATCH-FIX-UPSTREAM urllib3-2.patch -- gh#msabramo/requests-unixsocket#69 +Patch0: urllib3-2.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -43,7 +44,7 @@ HTTP via a UNIX domain socket. %prep -%setup -q -n requests-unixsocket-%{version} +%autosetup -p1 -n requests-unixsocket-%{version} # do not require additional test deps sed -i -e '/addopts/d' pytest.ini @@ -60,6 +61,7 @@ %files %{python_files} %doc AUTHORS ChangeLog README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/requests_unixsocket +%{python_sitelib}/requests_unixsocket-%{version}*-info %changelog ++++++ urllib3-2.patch ++++++ >From 5a614f60e7b3639758a6b77691b4e0c0d6827e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Roukala=20=28n=C3=A9=20Peres=29?= <martin.rouk...@mupuf.org> Date: Fri, 5 May 2023 09:23:41 +0300 Subject: [PATCH] Inherit HTTPConnection through urllib3.connection, not httplib By inheriting from `urllib3.connection.HTTPConnection` (that inherits from `httplib.HTTPConnection` itself), we can adapt to the internal changes in urllib3 2.0 that added a `request()` method that is incompatible with httplib.HTTPConnection.request. This fixes the incompatibility between urllib3 2.0 and requests 1.26+, which was the first version that stopped vendoring urllib3. Reference: https://github.com/docker/docker-py/issues/3113#issuecomment-1531570788 --- requests_unixsocket/adapters.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) Index: requests-unixsocket-0.3.0/requests_unixsocket/adapters.py =================================================================== --- requests-unixsocket-0.3.0.orig/requests_unixsocket/adapters.py +++ requests-unixsocket-0.3.0/requests_unixsocket/adapters.py @@ -4,11 +4,6 @@ from requests.adapters import HTTPAdapte from requests.compat import urlparse, unquote try: - import http.client as httplib -except ImportError: - import httplib - -try: from requests.packages import urllib3 except ImportError: import urllib3 @@ -16,7 +11,7 @@ except ImportError: # The following was adapted from some code from docker-py # https://github.com/docker/docker-py/blob/master/docker/transport/unixconn.py -class UnixHTTPConnection(httplib.HTTPConnection, object): +class UnixHTTPConnection(urllib3.connection.HTTPConnection, object): def __init__(self, unix_socket_url, timeout=60): """Create an HTTP connection to a unix domain socket