Date: Saturday, March 11, 2023 @ 06:30:42
  Author: yan12125
Revision: 1418517

upgpkg: python-aiobotocore 2.5.0-1; cleanup no-longer-needed hacks

Modified:
  python-aiobotocore/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-11 06:27:48 UTC (rev 1418516)
+++ PKGBUILD    2023-03-11 06:30:42 UTC (rev 1418517)
@@ -3,7 +3,7 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 # https://github.com/aio-libs/aiobotocore/releases
-pkgver=2.4.2
+pkgver=2.5.0
 pkgrel=1
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
@@ -15,7 +15,7 @@
               # moto optdepends
               python-docker python-openapi-spec-validator python-yaml 
python-flask python-flask-cors)
 
source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha256sums=('fe5f60efccaddfb6d1a667cd19e90c9b7d1159cf420a884e517a91917a476c7c')
+sha256sums=('ef7ec846afe19be0832ed7caefd5ef884e48824bf3cb98cdcb117992561d4429')
 
 prepare() {
   cd $_pkgname-$pkgver
@@ -25,9 +25,6 @@
   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
-
   # For pytest-asyncio >= 0.19
   # https://github.com/aio-libs/aiobotocore/issues/965
   echo asyncio_mode = auto >> pytest.ini
@@ -42,19 +39,14 @@
   cd $_pkgname-$pkgver
 
   export PYTHONPATH="$PWD"
-  # Needed since 2.3.0 https://github.com/aio-libs/aiobotocore/issues/948
-  export AWS_SECRET_ACCESS_KEY=test
-  export AWS_ACCESS_KEY_ID=test
   # 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()
-  # test_load_sso_credentials_with_cache_expired: failed with newer botocore
   pytest -m moto tests \
       --ignore=tests/test_patches.py \
       --ignore=tests/test_lambda.py \
-      --ignore=tests/test_version.py \
-      -k 'not test_load_sso_credentials_with_cache_expired'
+      --ignore=tests/test_version.py
 }
 
 package() {

Reply via email to