[arch-commits] Commit in python-aiobotocore/repos/community-any (3 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon May 6 13:31:33 UTC 2019
Date: Monday, May 6, 2019 @ 13:31:33
Author: yan12125
Revision: 460897
archrelease: copy trunk to community-any
Added:
python-aiobotocore/repos/community-any/PKGBUILD
(from rev 460896, python-aiobotocore/trunk/PKGBUILD)
python-aiobotocore/repos/community-any/moto-1.3.8.patch
(from rev 460896, python-aiobotocore/trunk/moto-1.3.8.patch)
Deleted:
python-aiobotocore/repos/community-any/PKGBUILD
------------------+
PKGBUILD | 84 ++++++++++++++++++++++++++---------------------------
moto-1.3.8.patch | 26 ++++++++++++++++
2 files changed, 68 insertions(+), 42 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-06 13:31:20 UTC (rev 460896)
+++ PKGBUILD 2019-05-06 13:31:33 UTC (rev 460897)
@@ -1,42 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aiobotocore
-_pkgname=aiobotocore
-pkgver=0.10.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-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')
-
-prepare() {
- cd $_pkgname-$pkgver
-
- # used in a skipped test only
- sed -i '/from dill.source import getsource/d' tests/test_patches.py
-}
-
-build() {
- cd $_pkgname-$pkgver
- python setup.py build
-}
-
-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
-}
-
-package() {
- cd $_pkgname-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-aiobotocore/repos/community-any/PKGBUILD (from rev 460896, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-06 13:31:33 UTC (rev 460897)
@@ -0,0 +1,42 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+pkgver=0.10.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-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"
+ moto-1.3.8.patch)
+sha256sums=('0748808cfe3063e8cb2902d076370034513f321ca10317b2464fadaa718fae85'
+ '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ # 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() {
+ cd $_pkgname-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ # test_patches works only for pinned versions of dependencies
+ PYTHONPATH=build/lib pytest -v -m moto -k 'not test_patches' tests
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
Copied: python-aiobotocore/repos/community-any/moto-1.3.8.patch (from rev 460896, python-aiobotocore/trunk/moto-1.3.8.patch)
===================================================================
--- moto-1.3.8.patch (rev 0)
+++ moto-1.3.8.patch 2019-05-06 13:31:33 UTC (rev 460897)
@@ -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