[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Mon May 9 09:44:35 UTC 2022


    Date: Monday, May 9, 2022 @ 09:44:35
  Author: yan12125
Revision: 1196340

upgpkg: python-aiobotocore 2.2.0-1

Modified:
  python-aiobotocore/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-09 08:20:59 UTC (rev 1196339)
+++ PKGBUILD	2022-05-09 09:44:35 UTC (rev 1196340)
@@ -3,7 +3,7 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 # https://github.com/aio-libs/aiobotocore/releases
-pkgver=2.1.0
+pkgver=2.2.0
 pkgrel=1
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
@@ -15,7 +15,7 @@
               # 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=('f12f889884c485964f692914d18af04f2280b47db3174a6db9b63220cc30c5b5')
+sha256sums=('adc47fa24839b75a6e9351183bb9a0160735a5f08878c87db1cbc0d3f027d0ec')
 
 prepare() {
   cd $_pkgname-$pkgver
@@ -24,6 +24,9 @@
   # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
   sed --in-place=.orig -r "s#'(botocore.*),<.*',#'\1',#" setup.py
   diff -u setup.py{.orig,} || true
+
+  # moto 3.1 rename
+  sed -i "s#'dynamodb2'#'dynamodb'#" tests/mock_server.py
 }
 
 build() {
@@ -37,9 +40,12 @@
   export PYTHONPATH="$PWD"
   # test_lambda uses moto.awslambda, which requires a running Docker service
   # See: https://github.com/spulec/moto/issues/3276
+  # test_version checks lower and upper bounds for dependencies in setup.py,
+  # and they are patched away in prepare()
   pytest -m moto tests \
       --ignore=tests/test_patches.py \
-      --ignore=tests/test_lambda.py
+      --ignore=tests/test_lambda.py \
+      --ignore=tests/test_version.py
 }
 
 package() {



More information about the arch-commits mailing list