[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD moto-1.3.8.patch)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon May 6 13:31:15 UTC 2019
Date: Monday, May 6, 2019 @ 13:31:15
Author: yan12125
Revision: 460895
upgpkg: python-aiobotocore 0.10.2-1
Mark tests incompatible with moto 1.3.8 with xfail
Added:
python-aiobotocore/trunk/moto-1.3.8.patch
Modified:
python-aiobotocore/trunk/PKGBUILD
------------------+
PKGBUILD | 12 ++++++------
moto-1.3.8.patch | 26 ++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-06 13:31:09 UTC (rev 460894)
+++ PKGBUILD 2019-05-06 13:31:15 UTC (rev 460895)
@@ -10,8 +10,10 @@
license=(Apache)
depends=(python python-aiohttp python-botocore python-wrapt python-async_generator)
checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio)
-source=("$pkgname-$pkgver.tar.gz"::"https://github.com/aio-libs/aiobotocore/archive/$pkgver.tar.gz")
-sha256sums=('0748808cfe3063e8cb2902d076370034513f321ca10317b2464fadaa718fae85')
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/aio-libs/aiobotocore/archive/$pkgver.tar.gz"
+ moto-1.3.8.patch)
+sha256sums=('0748808cfe3063e8cb2902d076370034513f321ca10317b2464fadaa718fae85'
+ '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c')
prepare() {
cd $_pkgname-$pkgver
@@ -18,6 +20,8 @@
# used in a skipped test only
sed -i '/from dill.source import getsource/d' tests/test_patches.py
+
+ patch -Np1 -i ../moto-1.3.8.patch
}
build() {
@@ -28,10 +32,6 @@
check() {
cd $_pkgname-$pkgver
- # https://github.com/spulec/moto/issues/1941
- export AWS_ACCESS_KEY_ID=foobar
- export AWS_SECRET_ACCESS_KEY=foobar
-
# test_patches works only for pinned versions of dependencies
PYTHONPATH=build/lib pytest -v -m moto -k 'not test_patches' tests
}
Added: moto-1.3.8.patch
===================================================================
--- moto-1.3.8.patch (rev 0)
+++ moto-1.3.8.patch 2019-05-06 13:31:15 UTC (rev 460895)
@@ -0,0 +1,26 @@
+--- aiobotocore-0.10.2/tests/test_basic_s3.py.orig 2019-05-06 21:25:17.837243558 +0800
++++ aiobotocore-0.10.2/tests/test_basic_s3.py 2019-05-06 21:25:24.003906932 +0800
+@@ -311,6 +311,7 @@
+ assert data == b'foo'
+
+
++ at pytest.mark.xfail(reason='Incompatible with moto 1.3.8')
+ @pytest.mark.moto
+ @pytest.mark.asyncio
+ async def test_copy_with_query_string(s3_client, create_object, bucket_name):
+@@ -329,6 +330,7 @@
+ assert data == b'foo'
+
+
++ at pytest.mark.xfail(reason='Incompatible with moto 1.3.8')
+ @pytest.mark.moto
+ @pytest.mark.asyncio
+ async def test_can_copy_with_dict_form(s3_client, create_object, bucket_name):
+@@ -347,6 +349,7 @@
+ assert data == b'foo'
+
+
++ at pytest.mark.xfail(reason='Incompatible with moto 1.3.8')
+ @pytest.mark.moto
+ @pytest.mark.asyncio
+ async def test_can_copy_with_dict_form_with_version(
More information about the arch-commits
mailing list