Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-proton-client for 
openSUSE:Factory checked in at 2023-09-26 22:01:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-proton-client (Old)
 and      /work/SRC/openSUSE:Factory/.python-proton-client.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-proton-client"

Tue Sep 26 22:01:51 2023 rev:3 rq:1113551 version:0.7.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-proton-client/python-proton-client.changes    
    2021-11-01 18:36:07.149349740 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-proton-client.new.1770/python-proton-client.changes
      2023-09-26 22:10:47.056151065 +0200
@@ -1,0 +2,10 @@
+Mon Sep 25 16:24:28 UTC 2023 - Matej Cepl <mc...@suse.com>
+
+- Clean up the SPEC file
+
+-------------------------------------------------------------------
+Mon Sep 25 14:52:52 UTC 2023 - Alexandre Vicenzi <alexandre.vice...@suse.com>
+
+- Add urllib3-v2-migration.patch to fix authentication errors.
+
+-------------------------------------------------------------------

New:
----
  urllib3-v2-migration.patch

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

Other differences:
------------------
++++++ python-proton-client.spec ++++++
--- /var/tmp/diff_new_pack.jhbEBs/_old  2023-09-26 22:10:48.032186310 +0200
+++ /var/tmp/diff_new_pack.jhbEBs/_new  2023-09-26 22:10:48.032186310 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-proton-client
 #
-# Copyright (c) 2021 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-%{**}}
 %define skip_python2 1
 Name:           python-proton-client
 Version:        0.7.1
@@ -26,11 +25,13 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/ProtonMail/proton-python-client
 Source:         
https://github.com/ProtonMail/proton-python-client/archive/refs/tags/%{version}.tar.gz#/proton-python-client-%{version}.tar.gz
+Patch1:         urllib3-v2-migration.patch
 BuildRequires:  %{python_module bcrypt}
 BuildRequires:  %{python_module gnupg}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module requests}
-BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
@@ -47,14 +48,14 @@
 wrapper to Proton Technologies API, abstracting from the SRP authentication.
 
 %prep
-%setup -q -n proton-python-client-%{version}
+%autosetup -n proton-python-client-%{version} -p1
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
-%python_expand %fdupes %{buildroot}%{python_sitelib}/proton
+%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # skip test_tlspinning.py as OBS has no network access
@@ -64,5 +65,5 @@
 %license LICENSE
 %doc README.md
 %{python_sitelib}/proton
-%{python_sitelib}/proton_client-*-py*.*-info
+%{python_sitelib}/proton_client-%{version}*-info
 

++++++ urllib3-v2-migration.patch ++++++
diff --git a/proton/cert_pinning.py b/proton/cert_pinning.py
index e39298b..29aa048 100644
--- a/proton/cert_pinning.py
+++ b/proton/cert_pinning.py
@@ -18,7 +18,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
         host,
         hash_dict,
         port=None,
-        strict=False,
         timeout=Timeout.DEFAULT_TIMEOUT,
         maxsize=1,
         block=False,
@@ -44,7 +43,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
             super(TLSPinningHTTPSConnectionPool, self).__init__(
                 host,
                 port,
-                strict,
                 timeout,
                 maxsize,
                 block,
@@ -67,7 +65,6 @@ class TLSPinningHTTPSConnectionPool(HTTPSConnectionPool):
             super(TLSPinningHTTPSConnectionPool, self).__init__(
                 host,
                 port,
-                strict,
                 timeout,
                 maxsize,
                 block,
@@ -181,5 +178,5 @@ class TLSPinningAdapter(HTTPAdapter):
     ):
         self.poolmanager = TLSPinningPoolManager(
             num_pools=connections, maxsize=maxsize, block=block,
-            strict=True, hash_dict=self.hash_dict, **pool_kwargs
+            hash_dict=self.hash_dict, **pool_kwargs
         )

Reply via email to