[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD botocore-1.23.diff)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Wed Dec 8 03:15:41 UTC 2021


    Date: Wednesday, December 8, 2021 @ 03:15:41
  Author: yan12125
Revision: 1065594

upgpkg: python-aiobotocore 2.0.1-1; add a fix for botocore 1.23

Ref: https://github.com/aio-libs/aiobotocore/issues/905#issuecomment-980524777

Added:
  python-aiobotocore/trunk/botocore-1.23.diff
Modified:
  python-aiobotocore/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   13 +++++++++----
 botocore-1.23.diff |   21 +++++++++++++++++++++
 2 files changed, 30 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-08 02:56:26 UTC (rev 1065593)
+++ PKGBUILD	2021-12-08 03:15:41 UTC (rev 1065594)
@@ -3,8 +3,8 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 # https://github.com/aio-libs/aiobotocore/releases
-pkgver=2.0.0
-pkgrel=2
+pkgver=2.0.1
+pkgrel=1
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
 url='https://github.com/aio-libs/aiobotocore'
@@ -14,12 +14,17 @@
 checkdepends=(python-moto python-pytest python-pytest-asyncio
               # moto optdepends
               python-docker python-yaml python-flask python-flask-cors)
-source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('be7758c3f4a7d4b922e71cbedb7e6a73dd3d795b95b177201a5bd557062016da')
+source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        "botocore-1.23.diff")
+sha256sums=('20da488ef99b4f296274a5012145f85887041e4e2c64e33eb3c2d6e17bf919fc'
+            '67d9e250f2a0b6345be7b24ccf02dabf1d6ccae07b3b4183a113789b1f89d9d5')
 
 prepare() {
   cd $_pkgname-$pkgver
 
+  # From https://github.com/aio-libs/aiobotocore/issues/905#issuecomment-980524777
+  patch -Np1 -i ../botocore-1.23.diff
+
   # Disable dependency pinning
   # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
   sed --in-place=.orig -r "s#'(botocore.*),<.*',#'\1',#" setup.py

Added: botocore-1.23.diff
===================================================================
--- botocore-1.23.diff	                        (rev 0)
+++ botocore-1.23.diff	2021-12-08 03:15:41 UTC (rev 1065594)
@@ -0,0 +1,21 @@
+diff --git a/aiobotocore/client.py b/aiobotocore/client.py
+index 5dee865..13cf364 100644
+--- a/aiobotocore/client.py
++++ b/aiobotocore/client.py
+@@ -28,6 +28,8 @@ class AioClientCreator(ClientCreator):
+         service_name = first_non_none_response(responses, default=service_name)
+         service_model = self._load_service_model(service_name, api_version)
+         cls = await self._create_client_class(service_name, service_model)
++        region_name, client_config = self._normalize_fips_region(
++            region_name, client_config)
+         endpoint_bridge = ClientEndpointBridge(
+             self._endpoint_resolver, scoped_config, client_config,
+             service_signing_name=service_model.metadata.get('signingName'))
+@@ -42,7 +44,6 @@ class AioClientCreator(ClientCreator):
+         self._register_endpoint_discovery(
+             service_client, endpoint_url, client_config
+         )
+-        self._register_lazy_block_unknown_fips_pseudo_regions(service_client)
+         return service_client
+ 
+     async def _create_client_class(self, service_name, service_model):



More information about the arch-commits mailing list