[arch-commits] Commit in python-aiobotocore/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Monday, May 9, 2022 @ 09:44:49
  Author: yan12125
Revision: 1196341

archrelease: copy trunk to community-any

Added:
  python-aiobotocore/repos/community-any/PKGBUILD
    (from rev 1196340, python-aiobotocore/trunk/PKGBUILD)
Deleted:
  python-aiobotocore/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  102 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 54 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-09 09:44:35 UTC (rev 1196340)
+++ PKGBUILD	2022-05-09 09:44:49 UTC (rev 1196341)
@@ -1,48 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aiobotocore
-_pkgname=aiobotocore
-# https://github.com/aio-libs/aiobotocore/releases
-pkgver=2.1.0
-pkgrel=1
-pkgdesc='asyncio support for botocore library using aiohttp'
-arch=(any)
-url='https://github.com/aio-libs/aiobotocore'
-license=(Apache)
-depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
-makedepends=(python-setuptools)
-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=('f12f889884c485964f692914d18af04f2280b47db3174a6db9b63220cc30c5b5')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  # Disable dependency pinning
-  # 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
-}
-
-build() {
-  cd $_pkgname-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  export PYTHONPATH="$PWD"
-  # test_lambda uses moto.awslambda, which requires a running Docker service
-  # See: https://github.com/spulec/moto/issues/3276
-  pytest -m moto tests \
-      --ignore=tests/test_patches.py \
-      --ignore=tests/test_lambda.py
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-aiobotocore/repos/community-any/PKGBUILD (from rev 1196340, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-09 09:44:49 UTC (rev 1196341)
@@ -0,0 +1,54 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+# https://github.com/aio-libs/aiobotocore/releases
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='asyncio support for botocore library using aiohttp'
+arch=(any)
+url='https://github.com/aio-libs/aiobotocore'
+license=(Apache)
+depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
+makedepends=(python-setuptools)
+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=('adc47fa24839b75a6e9351183bb9a0160735a5f08878c87db1cbc0d3f027d0ec')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # Disable dependency pinning
+  # 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() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  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_version.py
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list