Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aiobotocore for 
openSUSE:Factory checked in at 2021-06-16 20:35:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiobotocore (Old)
 and      /work/SRC/openSUSE:Factory/.python-aiobotocore.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aiobotocore"

Wed Jun 16 20:35:10 2021 rev:7 rq:900359 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aiobotocore/python-aiobotocore.changes    
2021-04-23 17:50:50.374816244 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-aiobotocore.new.32437/python-aiobotocore.changes
 2021-06-16 20:37:05.475350588 +0200
@@ -1,0 +2,7 @@
+Wed Jun 16 10:23:07 UTC 2021 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Update to 1.3.1
+  * TCPConnector: change deprecated ssl_context to SSL
+  * fix non awaited generate presigned url calls #868
+
+-------------------------------------------------------------------
@@ -5,0 +13 @@
+- from version 1.2.2
@@ -7,0 +16 @@
+- from version version 1.2.1
@@ -10 +19,4 @@
-  * use passed in http_session_cls param to create_client (#797)
+- from version 1.2.0
+  * bump botocore to 1.19.52
+  * use passed in http_session_cls param to create_client #797
+- from version 1.1.2

Old:
----
  aiobotocore-1.3.0.tar.gz

New:
----
  aiobotocore-1.3.1.tar.gz

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

Other differences:
------------------
++++++ python-aiobotocore.spec ++++++
--- /var/tmp/diff_new_pack.c0xOxS/_old  2021-06-16 20:37:05.811351162 +0200
+++ /var/tmp/diff_new_pack.c0xOxS/_new  2021-06-16 20:37:05.815351169 +0200
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %endif
 Name:           python-aiobotocore
-Version:        1.3.0
+Version:        1.3.1
 Release:        0
 Summary:        Async client for aws services
 License:        Apache-2.0

++++++ aiobotocore-1.3.0.tar.gz -> aiobotocore-1.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/CHANGES.rst 
new/aiobotocore-1.3.1/CHANGES.rst
--- old/aiobotocore-1.3.0/CHANGES.rst   2021-04-10 01:07:45.000000000 +0200
+++ new/aiobotocore-1.3.1/CHANGES.rst   2021-06-12 02:02:14.000000000 +0200
@@ -1,5 +1,10 @@
 Changes
 -------
+1.3.1 (2021-06-11)
+^^^^^^^^^^^^^^^^^^
+* TCPConnector: change deprecated ssl_context to ssl
+* fix non awaited generate presigned url calls # 868
+
 1.3.0 (2021-04-09)
 ^^^^^^^^^^^^^^^^^^
 * Bump to botocore 1.20.49 #856
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/PKG-INFO 
new/aiobotocore-1.3.1/PKG-INFO
--- old/aiobotocore-1.3.0/PKG-INFO      2021-04-10 01:07:46.315323400 +0200
+++ new/aiobotocore-1.3.1/PKG-INFO      2021-06-12 02:02:15.752863600 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: aiobotocore
-Version: 1.3.0
+Version: 1.3.1
 Summary: Async client for aws services using botocore and aiohttp
 Home-page: https://github.com/aio-libs/aiobotocore
 Author: Nikolay Novik
@@ -209,6 +209,11 @@
         
         Changes
         -------
+        1.3.1 (2021-06-11)
+        ^^^^^^^^^^^^^^^^^^
+        * TCPConnector: change deprecated ssl_context to ssl
+        * fix non awaited generate presigned url calls # 868
+        
         1.3.0 (2021-04-09)
         ^^^^^^^^^^^^^^^^^^
         * Bump to botocore 1.20.49 #856
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore/__init__.py 
new/aiobotocore-1.3.1/aiobotocore/__init__.py
--- old/aiobotocore-1.3.0/aiobotocore/__init__.py       2021-04-10 
01:07:45.000000000 +0200
+++ new/aiobotocore-1.3.1/aiobotocore/__init__.py       2021-06-12 
02:02:14.000000000 +0200
@@ -1,4 +1,4 @@
 from .session import get_session, AioSession
 
 __all__ = ['get_session', 'AioSession']
-__version__ = '1.3.0'
+__version__ = '1.3.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore/endpoint.py 
new/aiobotocore-1.3.1/aiobotocore/endpoint.py
--- old/aiobotocore-1.3.0/aiobotocore/endpoint.py       2021-04-10 
01:07:45.000000000 +0200
+++ new/aiobotocore-1.3.1/aiobotocore/endpoint.py       2021-06-12 
02:02:14.000000000 +0200
@@ -310,7 +310,7 @@
         connector = aiohttp.TCPConnector(
             limit=max_pool_connections,
             verify_ssl=bool(verify),
-            ssl_context=ssl_context,
+            ssl=ssl_context,
             **connector_args)
 
         aio_session = http_session_cls(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore/handlers.py 
new/aiobotocore-1.3.1/aiobotocore/handlers.py
--- old/aiobotocore-1.3.0/aiobotocore/handlers.py       1970-01-01 
01:00:00.000000000 +0100
+++ new/aiobotocore-1.3.1/aiobotocore/handlers.py       2021-06-12 
02:02:14.000000000 +0200
@@ -0,0 +1,38 @@
+from botocore.handlers import 
_get_presigned_url_source_and_destination_regions, \
+    _get_cross_region_presigned_url
+
+
+async def inject_presigned_url_ec2(params, request_signer, model, **kwargs):
+    # The customer can still provide this, so we should pass if they do.
+    if 'PresignedUrl' in params['body']:
+        return
+    src, dest = _get_presigned_url_source_and_destination_regions(
+        request_signer, params['body'])
+    url = await _get_cross_region_presigned_url(
+        request_signer, params, model, src, dest)
+    params['body']['PresignedUrl'] = url
+    # EC2 Requires that the destination region be sent over the wire in
+    # addition to the source region.
+    params['body']['DestinationRegion'] = dest
+
+
+async def inject_presigned_url_rds(params, request_signer, model, **kwargs):
+    # SourceRegion is not required for RDS operations, so it's possible that
+    # it isn't set. In that case it's probably a local copy so we don't need
+    # to do anything else.
+    if 'SourceRegion' not in params['body']:
+        return
+
+    src, dest = _get_presigned_url_source_and_destination_regions(
+        request_signer, params['body'])
+
+    # Since SourceRegion isn't actually modeled for RDS, it needs to be
+    # removed from the request params before we send the actual request.
+    del params['body']['SourceRegion']
+
+    if 'PreSignedUrl' in params['body']:
+        return
+
+    url = await _get_cross_region_presigned_url(
+        request_signer, params, model, src, dest)
+    params['body']['PreSignedUrl'] = url
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore/session.py 
new/aiobotocore-1.3.1/aiobotocore/session.py
--- old/aiobotocore-1.3.0/aiobotocore/session.py        2021-04-10 
01:07:45.000000000 +0200
+++ new/aiobotocore-1.3.1/aiobotocore/session.py        2021-06-12 
02:02:14.000000000 +0200
@@ -8,9 +8,26 @@
 from .parsers import AioResponseParserFactory
 from .signers import add_generate_presigned_url, add_generate_presigned_post, \
     add_generate_db_auth_token
+from .handlers import inject_presigned_url_ec2, inject_presigned_url_rds
+from botocore.handlers import \
+    inject_presigned_url_rds as boto_inject_presigned_url_rds, \
+    inject_presigned_url_ec2 as boto_inject_presigned_url_ec2
+from botocore.signers import \
+    add_generate_presigned_url as boto_add_generate_presigned_url, \
+    add_generate_presigned_post as boto_add_generate_presigned_post, \
+    add_generate_db_auth_token as boto_add_generate_db_auth_token
 from .credentials import create_credential_resolver, AioCredentials
 
 
+_HANDLER_MAPPING = {
+    boto_inject_presigned_url_ec2: inject_presigned_url_ec2,
+    boto_inject_presigned_url_rds: inject_presigned_url_rds,
+    boto_add_generate_presigned_url: add_generate_presigned_url,
+    boto_add_generate_presigned_post: add_generate_presigned_post,
+    boto_add_generate_db_auth_token: add_generate_db_auth_token,
+}
+
+
 class ClientCreatorContext:
     def __init__(self, coro):
         self._coro = coro
@@ -34,11 +51,11 @@
 
         super().__init__(session_vars, event_hooks, include_builtin_handlers, 
profile)
 
-        # Register our own handlers.  These normally happen via
-        # `botocore.handlers.BUILTIN_HANDLERS`
-        self.register('creating-client-class', add_generate_presigned_url)
-        self.register('creating-client-class.s3', add_generate_presigned_post)
-        self.register('creating-client-class.rds', add_generate_db_auth_token),
+    def register(self, event_name, handler, unique_id=None,
+                 unique_id_uses_count=False):
+        handler = _HANDLER_MAPPING.get(handler, handler)
+
+        return super().register(event_name, handler, unique_id, 
unique_id_uses_count)
 
     def _register_response_parser_factory(self):
         self._components.register_component('response_parser_factory',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore.egg-info/PKG-INFO 
new/aiobotocore-1.3.1/aiobotocore.egg-info/PKG-INFO
--- old/aiobotocore-1.3.0/aiobotocore.egg-info/PKG-INFO 2021-04-10 
01:07:46.000000000 +0200
+++ new/aiobotocore-1.3.1/aiobotocore.egg-info/PKG-INFO 2021-06-12 
02:02:15.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: aiobotocore
-Version: 1.3.0
+Version: 1.3.1
 Summary: Async client for aws services using botocore and aiohttp
 Home-page: https://github.com/aio-libs/aiobotocore
 Author: Nikolay Novik
@@ -209,6 +209,11 @@
         
         Changes
         -------
+        1.3.1 (2021-06-11)
+        ^^^^^^^^^^^^^^^^^^
+        * TCPConnector: change deprecated ssl_context to ssl
+        * fix non awaited generate presigned url calls # 868
+        
         1.3.0 (2021-04-09)
         ^^^^^^^^^^^^^^^^^^
         * Bump to botocore 1.20.49 #856
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aiobotocore-1.3.0/aiobotocore.egg-info/SOURCES.txt 
new/aiobotocore-1.3.1/aiobotocore.egg-info/SOURCES.txt
--- old/aiobotocore-1.3.0/aiobotocore.egg-info/SOURCES.txt      2021-04-10 
01:07:46.000000000 +0200
+++ new/aiobotocore-1.3.1/aiobotocore.egg-info/SOURCES.txt      2021-06-12 
02:02:15.000000000 +0200
@@ -11,6 +11,7 @@
 aiobotocore/credentials.py
 aiobotocore/endpoint.py
 aiobotocore/eventstream.py
+aiobotocore/handlers.py
 aiobotocore/hooks.py
 aiobotocore/paginate.py
 aiobotocore/parsers.py

Reply via email to