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 2024-05-24 19:50:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-unixsocket (Old)
 and      /work/SRC/openSUSE:Factory/.python-requests-unixsocket.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requests-unixsocket"

Fri May 24 19:50:02 2024 rev:7 rq:1176153 version:0.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-requests-unixsocket/python-requests-unixsocket.changes
    2023-06-12 15:24:49.378473949 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-requests-unixsocket.new.24587/python-requests-unixsocket.changes
 2024-05-24 19:50:06.067232438 +0200
@@ -1,0 +2,8 @@
+Thu May 23 08:28:38 UTC 2024 - Markéta Machová <mmach...@suse.com>
+
+- Add requests232.patch to fix compatibility with new requests
+- The project appears unmaintained
+  * living fork: https://gitlab.com/thelabnyc/requests-unixsocket2
+  * patching here for expediency reasons
+
+-------------------------------------------------------------------

New:
----
  requests232.patch

BETA DEBUG BEGIN:
  New:
- Add requests232.patch to fix compatibility with new requests
- The project appears unmaintained
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-requests-unixsocket.spec ++++++
--- /var/tmp/diff_new_pack.2GbVzc/_old  2024-05-24 19:50:07.047268224 +0200
+++ /var/tmp/diff_new_pack.2GbVzc/_new  2024-05-24 19:50:07.051268370 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-requests-unixsocket
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@
 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
+# PATCH-FIX-UPSTREAM https://github.com/msabramo/requests-unixsocket/pull/72 
adapters: fix for requests 2.32.2+
+Patch1:         requests232.patch
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ requests232.patch ++++++
>From 24811e26b049602bc70fdf6d91e39424200a95ad Mon Sep 17 00:00:00 2001
From: Simon Deziel <simon.dez...@canonical.com>
Date: Wed, 22 May 2024 12:02:20 -0400
Subject: [PATCH] adapters: fix for requests 2.32.2+

Signed-off-by: Simon Deziel <simon.dez...@canonical.com>
---
 requests_unixsocket/adapters.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/requests_unixsocket/adapters.py b/requests_unixsocket/adapters.py
index 83e1400..4ef7174 100644
--- a/requests_unixsocket/adapters.py
+++ b/requests_unixsocket/adapters.py
@@ -63,6 +63,10 @@ def __init__(self, timeout=60, pool_connections=25, *args, 
**kwargs):
             pool_connections, dispose_func=lambda p: p.close()
         )
 
+    # Fix for requests 2.32.2+: https://github.com/psf/requests/pull/6710
+    def get_connection_with_tls_context(self, request, verify, proxies=None, 
cert=None):
+        return self.get_connection(request.url, proxies)
+
     def get_connection(self, url, proxies=None):
         proxies = proxies or {}
         proxy = proxies.get(urlparse(url.lower()).scheme)

Reply via email to