[arch-commits] Commit in python-aiobotocore/repos/community-any (5 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon Apr 12 01:07:28 UTC 2021
Date: Monday, April 12, 2021 @ 01:07:28
Author: yan12125
Revision: 915846
archrelease: copy trunk to community-any
Added:
python-aiobotocore/repos/community-any/PKGBUILD
(from rev 915845, python-aiobotocore/trunk/PKGBUILD)
python-aiobotocore/repos/community-any/unittest-mock.diff
(from rev 915845, python-aiobotocore/trunk/unittest-mock.diff)
Deleted:
python-aiobotocore/repos/community-any/PKGBUILD
python-aiobotocore/repos/community-any/fix-sqs-tests.diff
python-aiobotocore/repos/community-any/unittest-mock.diff
--------------------+
PKGBUILD | 109 ++++++++++++++++++++++++---------------------------
fix-sqs-tests.diff | 12 -----
unittest-mock.diff | 74 +++++++++++++++++-----------------
3 files changed, 89 insertions(+), 106 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-12 01:07:13 UTC (rev 915845)
+++ PKGBUILD 2021-04-12 01:07:28 UTC (rev 915846)
@@ -1,57 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aiobotocore
-_pkgname=aiobotocore
-pkgver=1.2.2
-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"
- unittest-mock.diff
- fix-sqs-tests.diff)
-sha256sums=('d55978b2563b1b3f35509f242db84fa29f434be70a0be18dbb52fcb3f8b97bc1'
- 'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e'
- 'd8446453cb399893224d508ea1055d9a5401c0bf2c95f6fc5f09d400f56975dc')
-
-prepare() {
- cd $_pkgname-$pkgver
- # community/python-mock is outdated and does not include needed AsyncMock.
- # 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
- 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 915845, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-04-12 01:07:28 UTC (rev 915846)
@@ -0,0 +1,52 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+pkgver=1.3.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"
+ unittest-mock.diff)
+sha256sums=('4c02797d4bc06e8a3b1fd29775e19424501def8df436727ece22c567edc0c31a'
+ 'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
+
+prepare() {
+ cd $_pkgname-$pkgver
+ # community/python-mock is outdated and does not include needed AsyncMock.
+ # Use mock from stdlib instead. It has AsyncMock since 3.8
+ patch -Np1 -i ../unittest-mock.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
+ 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
+}
Deleted: fix-sqs-tests.diff
===================================================================
--- fix-sqs-tests.diff 2021-04-12 01:07:13 UTC (rev 915845)
+++ fix-sqs-tests.diff 2021-04-12 01:07:28 UTC (rev 915846)
@@ -1,12 +0,0 @@
-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)
-
Deleted: unittest-mock.diff
===================================================================
--- unittest-mock.diff 2021-04-12 01:07:13 UTC (rev 915845)
+++ unittest-mock.diff 2021-04-12 01:07:28 UTC (rev 915846)
@@ -1,37 +0,0 @@
-diff --git a/tests/botocore/test_credentials.py b/tests/botocore/test_credentials.py
-index ecbe17e..1b2172e 100644
---- a/tests/botocore/test_credentials.py
-+++ b/tests/botocore/test_credentials.py
-@@ -8,7 +8,7 @@ import datetime
- import json
- import subprocess
-
--import mock
-+from unittest import mock
- from typing import Optional
-
- import pytest
-diff --git a/tests/botocore/test_signers.py b/tests/botocore/test_signers.py
-index 0e4035e..7529760 100644
---- a/tests/botocore/test_signers.py
-+++ b/tests/botocore/test_signers.py
-@@ -1,5 +1,5 @@
- import pytest
--import mock
-+from unittest import mock
-
- import aiobotocore
- import aiobotocore.credentials
-diff --git a/tests/botocore/test_utils.py b/tests/botocore/test_utils.py
-index 3d17b87..4089cf1 100644
---- a/tests/botocore/test_utils.py
-+++ b/tests/botocore/test_utils.py
-@@ -1,7 +1,7 @@
- import asyncio
- import pytest
- import json
--import mock
-+from unittest import mock
- import itertools
- from typing import Union, List, Tuple
-
Copied: python-aiobotocore/repos/community-any/unittest-mock.diff (from rev 915845, python-aiobotocore/trunk/unittest-mock.diff)
===================================================================
--- unittest-mock.diff (rev 0)
+++ unittest-mock.diff 2021-04-12 01:07:28 UTC (rev 915846)
@@ -0,0 +1,37 @@
+diff --git a/tests/botocore/test_credentials.py b/tests/botocore/test_credentials.py
+index ecbe17e..1b2172e 100644
+--- a/tests/botocore/test_credentials.py
++++ b/tests/botocore/test_credentials.py
+@@ -8,7 +8,7 @@ import datetime
+ import json
+ import subprocess
+
+-import mock
++from unittest import mock
+ from typing import Optional
+
+ import pytest
+diff --git a/tests/botocore/test_signers.py b/tests/botocore/test_signers.py
+index 0e4035e..7529760 100644
+--- a/tests/botocore/test_signers.py
++++ b/tests/botocore/test_signers.py
+@@ -1,5 +1,5 @@
+ import pytest
+-import mock
++from unittest import mock
+
+ import aiobotocore
+ import aiobotocore.credentials
+diff --git a/tests/botocore/test_utils.py b/tests/botocore/test_utils.py
+index 3d17b87..4089cf1 100644
+--- a/tests/botocore/test_utils.py
++++ b/tests/botocore/test_utils.py
+@@ -1,7 +1,7 @@
+ import asyncio
+ import pytest
+ import json
+-import mock
++from unittest import mock
+ import itertools
+ from typing import Union, List, Tuple
+
More information about the arch-commits
mailing list