[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD fix-sqs-tests.diff)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Feb 28 04:19:17 UTC 2021


    Date: Sunday, February 28, 2021 @ 04:19:17
  Author: yan12125
Revision: 875735

upgpkg: python-aiobotocore 1.2.1-2; moto 2.0 compatibility

Added:
  python-aiobotocore/trunk/fix-sqs-tests.diff
Modified:
  python-aiobotocore/trunk/PKGBUILD

--------------------+
 PKGBUILD           |   15 +++++++++++----
 fix-sqs-tests.diff |   12 ++++++++++++
 2 files changed, 23 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-28 04:01:57 UTC (rev 875734)
+++ PKGBUILD	2021-02-28 04:19:17 UTC (rev 875735)
@@ -3,7 +3,7 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 pkgver=1.2.1
-pkgrel=1
+pkgrel=2
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
 url='https://github.com/aio-libs/aiobotocore'
@@ -10,11 +10,15 @@
 license=(Apache)
 depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
 makedepends=(python-setuptools)
-checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio)
+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"
-        unittest-mock.diff)
+        unittest-mock.diff
+        fix-sqs-tests.diff)
 sha256sums=('bdd142e30c73232d17e257b8f01d1b6efd42bd7ef084b44957d86cbd830d6aab'
-            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
+            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e'
+            'd8446453cb399893224d508ea1055d9a5401c0bf2c95f6fc5f09d400f56975dc')
 
 prepare() {
   cd $_pkgname-$pkgver
@@ -22,6 +26,9 @@
   # Use mock from stdlib instead. It has AsyncMock since 3.8
   patch -Np1 -i ../unittest-mock.diff
 
+  # Correctly receive SQS messages. Discovered by https://github.com/spulec/moto/pull/3303
+  patch -Np1 -i ../fix-sqs-tests.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: fix-sqs-tests.diff
===================================================================
--- fix-sqs-tests.diff	                        (rev 0)
+++ fix-sqs-tests.diff	2021-02-28 04:19:17 UTC (rev 875735)
@@ -0,0 +1,12 @@
+diff --git a/tests/test_sqs.py b/tests/test_sqs.py
+index f41e3ae..599eda1 100644
+--- a/tests/test_sqs.py
++++ b/tests/test_sqs.py
+@@ -36,6 +36,7 @@ async def test_put_pull_delete_test(sqs_client, sqs_queue_url):
+ 
+     response = await sqs_client.receive_message(
+         QueueUrl=sqs_queue_url,
++        MessageAttributeNames=['attr1'],
+     )
+     pytest.aio.assert_status_code(response, 200)
+ 



More information about the arch-commits mailing list