Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-requests-toolbelt for 
openSUSE:Factory checked in at 2023-05-09 13:06:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-toolbelt (Old)
 and      /work/SRC/openSUSE:Factory/.python-requests-toolbelt.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-requests-toolbelt"

Tue May  9 13:06:00 2023 rev:12 rq:1084860 version:1.0.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-requests-toolbelt/python-requests-toolbelt.changes
        2023-04-22 21:59:35.708906055 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-requests-toolbelt.new.1533/python-requests-toolbelt.changes
      2023-05-09 13:06:02.828560048 +0200
@@ -1,0 +2,21 @@
+Thu May  4 18:10:01 UTC 2023 - Matej Cepl <mc...@suse.com>
+
+- Upgrade to 1.0.0:
+  - Breaking Changes
+    - Removed Google App Engine support to allow using urllib3 2.0
+  - New Features
+    - Add support for preparing requests in BaseUrlSession
+  - Fixed Bugs
+    - Ensured the test suite no longer reaches the Internet
+    - Fix urllib3 warning to only emit on X509Adapter usage
+    - Fixing missing newline in dump utility
+  - Miscellaneous
+    - Added explicit support for Python 3.11
+- Remove upstreamed patches:
+  - fix-tests.patch
+  - remove_mock.patch
+  - requests-toolbelt-pr246-collections.abc.patch
+- Add 356-add-missing-casette-files.patch which adds missing
+  casette test files (gh#requests/toolbelt!356).
+
+-------------------------------------------------------------------

Old:
----
  fix-tests.patch
  remove_mock.patch
  requests-toolbelt-0.9.1.tar.gz
  requests-toolbelt-pr246-collections.abc.patch

New:
----
  356-add-missing-casette-files.patch
  requests-toolbelt-1.0.0.tar.gz

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

Other differences:
------------------
++++++ python-requests-toolbelt.spec ++++++
--- /var/tmp/diff_new_pack.Jrttuc/_old  2023-05-09 13:06:04.468569810 +0200
+++ /var/tmp/diff_new_pack.Jrttuc/_new  2023-05-09 13:06:04.476569857 +0200
@@ -16,10 +16,9 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{?sle15_python_module_pythons}
 Name:           python-requests-toolbelt
-Version:        0.9.1
+Version:        1.0.0
 Release:        0
 Summary:        A utility belt for advanced users of python3-requests
 License:        Apache-2.0
@@ -27,15 +26,12 @@
 Source:         
https://files.pythonhosted.org/packages/source/r/requests-toolbelt/requests-toolbelt-%{version}.tar.gz
 # Replace expired test certificate
 Source1:        test_cert.p12
-Patch0:         fix-tests.patch
-# PATCH-FIX-UPSTREAM remove_mock.patch bsc#[0-9]+ mc...@suse.com
-# remove dependency on the external mock package
-Patch1:         remove_mock.patch
-# PATCH-FIX-UPSTREAM requests-toolbelt-pr246-collections.abc.patch -- fix 
python310 deprecation. gh#requests/toolbelt#246
-Patch2:         
https://github.com/requests/toolbelt/pull/246.patch#/requests-toolbelt-pr246-collections.abc.patch
 # PATCH-FIX-OPENSUSE Stop using PyOpenSSLCompat, it generates widespread
 # DeprecationWarnings
-Patch3:         stop-using-pyopenssl-compat.patch
+Patch0:         stop-using-pyopenssl-compat.patch
+# PATCH-FIX-UPSTREAM 356-add-missing-casette-files.patch 
gh#requests/toolbelt!356 mc...@suse.com
+# add missing casette files
+Patch1:         356-add-missing-casette-files.patch
 BuildRequires:  %{python_module requests >= 2.12.2}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -47,7 +43,8 @@
 # gh#pyca/cryptography#5606
 BuildRequires:  %{python_module pyOpenSSL >= 19.1.0}
 BuildRequires:  %{python_module pytest}
-%if 0%{suse_version} <= 1500
+BuildRequires:  %{python_module trustme}
+%if 0%{?suse_version} <= 1500
 BuildRequires:  python-mock
 %endif
 # /SECTION
@@ -78,11 +75,13 @@
 export OPENSSL_CONF=''
 
 # Requires network access
-%pytest -k 'not (TestFileFromURLWrapper or test_reads_file_from_url_wrapper)'
+%pytest
+# -k 'not network'
 
 %files %{python_files}
 %license LICENSE
 %doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/requests_toolbelt
+%{python_sitelib}/requests_toolbelt-%{version}*-info
 
 %changelog

++++++ 356-add-missing-casette-files.patch ++++++
++++ 1645 lines (skipped)

++++++ requests-toolbelt-0.9.1.tar.gz -> requests-toolbelt-1.0.0.tar.gz ++++++
++++ 3720 lines of diff (skipped)

++++++ stop-using-pyopenssl-compat.patch ++++++
--- /var/tmp/diff_new_pack.Jrttuc/_old  2023-05-09 13:06:04.660570952 +0200
+++ /var/tmp/diff_new_pack.Jrttuc/_new  2023-05-09 13:06:04.664570976 +0200
@@ -1,7 +1,9 @@
-Index: requests-toolbelt-0.9.1/requests_toolbelt/adapters/x509.py
-===================================================================
---- requests-toolbelt-0.9.1.orig/requests_toolbelt/adapters/x509.py
-+++ requests-toolbelt-0.9.1/requests_toolbelt/adapters/x509.py
+---
+ requests_toolbelt/adapters/x509.py |   27 ++++-----------------------
+ 1 file changed, 4 insertions(+), 23 deletions(-)
+
+--- a/requests_toolbelt/adapters/x509.py
++++ b/requests_toolbelt/adapters/x509.py
 @@ -8,6 +8,7 @@ X.509 certificate without needing to con
  """
  
@@ -10,11 +12,8 @@
  from cryptography import x509
  from cryptography.hazmat.primitives.serialization import 
(load_pem_private_key,
                                                            
load_der_private_key)
-@@ -18,19 +19,8 @@ from datetime import datetime
- from requests.adapters import HTTPAdapter
- import requests
+@@ -20,16 +21,6 @@ import requests
  
--from .._compat import PyOpenSSLContext
  from .. import exceptions as exc
  
 -"""
@@ -28,25 +27,25 @@
 -    from _ssl import PROTOCOL_SSLv23 as PROTOCOL
 -
  
- class X509Adapter(HTTPAdapter):
-     r"""Adapter for use with X.509 certificates.
-@@ -81,7 +71,6 @@ class X509Adapter(HTTPAdapter):
-     """
+ PyOpenSSLContext = None
+ 
+@@ -84,7 +75,6 @@ class X509Adapter(HTTPAdapter):
  
      def __init__(self, *args, **kwargs):
+         self._import_pyopensslcontext()
 -        self._check_version()
          cert_bytes = kwargs.pop('cert_bytes', None)
          pk_bytes = kwargs.pop('pk_bytes', None)
          password = kwargs.pop('password', None)
-@@ -118,15 +107,6 @@ class X509Adapter(HTTPAdapter):
-             kwargs['ssl_context'] = self.ssl_context
-         return super(X509Adapter, self).proxy_manager_for(*args, **kwargs)
+@@ -136,15 +126,6 @@ class X509Adapter(HTTPAdapter):
+                 except ImportError:
+                     PyOpenSSLContext = None
  
 -    def _check_version(self):
 -        if PyOpenSSLContext is None:
 -            raise exc.VersionMismatchError(
 -                "The X509Adapter requires at least Requests 2.12.0 to be "
--                "installed. Version {0} was found instead.".format(
+-                "installed. Version {} was found instead.".format(
 -                    requests.__version__
 -                )
 -            )
@@ -54,7 +53,7 @@
  
  def check_cert_dates(cert):
      """Verify that the supplied client cert is not invalid."""
-@@ -172,7 +152,7 @@ def create_ssl_context(cert_byes, pk_byt
+@@ -190,7 +171,7 @@ def create_ssl_context(cert_byes, pk_byt
          raise ValueError('Cert and key could not be parsed from '
                           'provided data')
      check_cert_dates(cert)
@@ -65,27 +64,4 @@
 +    ssl_context.use_certificate(X509.from_cryptography(cert))
 +    ssl_context.use_privatekey(PKey.from_cryptography_key(key))
      return ssl_context
-Index: requests-toolbelt-0.9.1/requests_toolbelt/_compat.py
-===================================================================
---- requests-toolbelt-0.9.1.orig/requests_toolbelt/_compat.py
-+++ requests-toolbelt-0.9.1/requests_toolbelt/_compat.py
-@@ -49,17 +49,7 @@ else:
-     except ImportError:
-         from urllib3.contrib import appengine as gaecontrib
- 
--if requests.__build__ < 0x021200:
--    PyOpenSSLContext = None
--else:
--    try:
--        from requests.packages.urllib3.contrib.pyopenssl \
--                import PyOpenSSLContext
--    except ImportError:
--        try:
--            from urllib3.contrib.pyopenssl import PyOpenSSLContext
--        except ImportError:
--            PyOpenSSLContext = None
-+PyOpenSSLContext = None
- 
- PY3 = sys.version_info > (3, 0)
- 
 

Reply via email to