[arch-commits] Commit in python-aiobotocore/repos/community-any (5 files)
Date: Sunday, July 5, 2020 @ 15:48:49 Author: yan12125 Revision: 657880 archrelease: copy trunk to community-any Added: python-aiobotocore/repos/community-any/PKGBUILD (from rev 657879, python-aiobotocore/trunk/PKGBUILD) python-aiobotocore/repos/community-any/unittest-mock.diff (from rev 657879, python-aiobotocore/trunk/unittest-mock.diff) Deleted: python-aiobotocore/repos/community-any/PKGBUILD python-aiobotocore/repos/community-any/pytest-event-loop.diff python-aiobotocore/repos/community-any/unittest-mock.diff + PKGBUILD | 99 ++- pytest-event-loop.diff | 13 -- unittest-mock.diff | 74 +-- 3 files changed, 85 insertions(+), 101 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-07-05 15:48:28 UTC (rev 657879) +++ PKGBUILD2020-07-05 15:48:49 UTC (rev 657880) @@ -1,51 +0,0 @@ -# Maintainer: Chih-Hsuan Yen - -pkgname=python-aiobotocore -_pkgname=aiobotocore -pkgver=1.0.7 -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) -checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio) -source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz; -unittest-mock.diff -pytest-event-loop.diff) -sha256sums=('0789c379925c2f65a639e978bb20a35f4e242a46d2272f212f159f9a14f28f13' -'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e' -'02700f174c58d754e501169737cf04f06f85f536b3bb4f44f422e213ab600e46') - -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 - patch -Np1 -i ../pytest-event-loop.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/build/lib:$PWD" - # test_lambda uses moto.awslambda, which requires a running Docker service - pytest -v -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 657879, python-aiobotocore/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-07-05 15:48:49 UTC (rev 657880) @@ -0,0 +1,48 @@ +# Maintainer: Chih-Hsuan Yen + +pkgname=python-aiobotocore +_pkgname=aiobotocore +pkgver=1.0.7 +pkgrel=2 +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) +checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio) +source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz; +unittest-mock.diff) +sha256sums=('0789c379925c2f65a639e978bb20a35f4e242a46d2272f212f159f9a14f28f13' +'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 + pytest -v -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: pytest-event-loop.diff === --- pytest-event-loop.diff 2020-07-05 15:48:28 UTC (rev 657879) +++ pytest-event-loop.diff 2020-07-05 15:48:49 UTC (rev 657880) @@ -1,13 +0,0 @@ -diff --git a/tests/conftest.py b/tests/conftest.py -index 4393d32..58d09ab 100644 a/tests/conftest.py -+++ b/tests/conftest.py -@@ -90,7
[arch-commits] Commit in python-aiobotocore/repos/community-any (5 files)
Date: Saturday, June 6, 2020 @ 05:59:45 Author: yan12125 Revision: 639300 archrelease: copy trunk to community-any Added: python-aiobotocore/repos/community-any/PKGBUILD (from rev 639299, python-aiobotocore/trunk/PKGBUILD) python-aiobotocore/repos/community-any/pytest-event-loop.diff (from rev 639299, python-aiobotocore/trunk/pytest-event-loop.diff) python-aiobotocore/repos/community-any/unittest-mock.diff (from rev 639299, python-aiobotocore/trunk/unittest-mock.diff) Deleted: python-aiobotocore/repos/community-any/PKGBUILD python-aiobotocore/repos/community-any/unittest-mock.diff + PKGBUILD | 97 --- pytest-event-loop.diff | 13 ++ unittest-mock.diff | 74 +-- 3 files changed, 101 insertions(+), 83 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-06-06 05:59:11 UTC (rev 639299) +++ PKGBUILD2020-06-06 05:59:45 UTC (rev 639300) @@ -1,46 +0,0 @@ -# Maintainer: Chih-Hsuan Yen - -pkgname=python-aiobotocore -_pkgname=aiobotocore -pkgver=1.0.4 -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) -checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio) -source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz; -unittest-mock.diff) -sha256sums=('ef9cae30ee8fa2b0b70e92a45d221d6ee7e77d2d7dc26a4e79ab13eaa1e7200d' -'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e') - -prepare() { - cd $_pkgname-$pkgver - 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/build/lib:$PWD" - # test_lambda uses moto.awslambda, which requires a running Docker service - pytest -v -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 639299, python-aiobotocore/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-06-06 05:59:45 UTC (rev 639300) @@ -0,0 +1,51 @@ +# Maintainer: Chih-Hsuan Yen + +pkgname=python-aiobotocore +_pkgname=aiobotocore +pkgver=1.0.7 +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) +checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio) +source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz; +unittest-mock.diff +pytest-event-loop.diff) +sha256sums=('0789c379925c2f65a639e978bb20a35f4e242a46d2272f212f159f9a14f28f13' +'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e' +'02700f174c58d754e501169737cf04f06f85f536b3bb4f44f422e213ab600e46') + +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 + patch -Np1 -i ../pytest-event-loop.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/build/lib:$PWD" + # test_lambda uses moto.awslambda, which requires a running Docker service + pytest -v -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/pytest-event-loop.diff (from rev 639299, python-aiobotocore/trunk/pytest-event-loop.diff) === --- pytest-event-loop.diff (rev 0) +++ pytest-event-loop.diff 2020-06-06 05:59:45 UTC (rev 639300) @@ -0,0 +1,13 @@ +diff --git a/tests/conftest.py b/tests/conftest.py +index 4393d32..58d09ab 100644 +---
[arch-commits] Commit in python-aiobotocore/repos/community-any (5 files)
Date: Wednesday, August 14, 2019 @ 16:06:13 Author: yan12125 Revision: 499210 archrelease: copy trunk to community-any Added: python-aiobotocore/repos/community-any/PKGBUILD (from rev 499209, python-aiobotocore/trunk/PKGBUILD) python-aiobotocore/repos/community-any/fix-tests-with-proxies.patch (from rev 499209, python-aiobotocore/trunk/fix-tests-with-proxies.patch) python-aiobotocore/repos/community-any/moto-1.3.8.patch (from rev 499209, python-aiobotocore/trunk/moto-1.3.8.patch) Deleted: python-aiobotocore/repos/community-any/PKGBUILD python-aiobotocore/repos/community-any/moto-1.3.8.patch --+ PKGBUILD | 87 + fix-tests-with-proxies.patch | 30 ++ moto-1.3.8.patch | 52 3 files changed, 101 insertions(+), 68 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-08-14 16:04:01 UTC (rev 499209) +++ PKGBUILD2019-08-14 16:06:13 UTC (rev 499210) @@ -1,42 +0,0 @@ -# Maintainer: Chih-Hsuan Yen - -pkgname=python-aiobotocore -_pkgname=aiobotocore -pkgver=0.10.3 -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=('5af3a575dee8f6d4bda36a237807edc7e864cc0e45c0b20dc07521191ee04759' -'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/PKGBUILD (from rev 499209, python-aiobotocore/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-08-14 16:06:13 UTC (rev 499210) @@ -0,0 +1,45 @@ +# Maintainer: Chih-Hsuan Yen + +pkgname=python-aiobotocore +_pkgname=aiobotocore +pkgver=0.10.3 +pkgrel=2 +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 +fix-tests-with-proxies.patch) +sha256sums=('5af3a575dee8f6d4bda36a237807edc7e864cc0e45c0b20dc07521191ee04759' +'7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c' +'248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7') + +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 + patch -Np1 -i ../fix-tests-with-proxies.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/fix-tests-with-proxies.patch (from rev 499209, python-aiobotocore/trunk/fix-tests-with-proxies.patch) === --- fix-tests-with-proxies.patch(rev 0) +++ fix-tests-with-proxies.patch2019-08-14 16:06:13 UTC (rev 499210) @@ -0,0 +1,30 @@ +diff --git a/tests/conftest.py b/tests/conftest.py +index 2af2ff7..14c2974 100644 +--- a/tests/conftest.py b/tests/conftest.py +@@ -71,18 +71,20 @@ async def assert_num_uploads_found( + @pytest.fixture + def aa_fail_proxy_config(monkeypatch): + # NOTE: name of this fixture must be alphabetically first to run first +-monkeypatch.setenv('HTTP_PROXY', 'http://localhost:54321') +-monkeypatch.setenv('HTTPS_PROXY', 'http://localhost:54321') ++monkeypatch.setenv('http_proxy', 'http://localhost:54321') ++