[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD pytest-event-loop.diff)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Jul 5 15:48:31 UTC 2020


    Date: Sunday, July 5, 2020 @ 15:48:28
  Author: yan12125
Revision: 657879

upgpkg: python-aiobotocore 1.0.7-2; fix non-reproducibility; drop unneeded patch

* The pytest issue seems fixed with pytest-asyncio 0.12.0
  https://github.com/pytest-dev/pytest-asyncio/pull/156

* Importing Python modules from build/lib in check() leads to .pyc files that
  have paths /build/python-aiobotocore/src/...

Modified:
  python-aiobotocore/trunk/PKGBUILD
Deleted:
  python-aiobotocore/trunk/pytest-event-loop.diff

------------------------+
 PKGBUILD               |   11 ++++-------
 pytest-event-loop.diff |   13 -------------
 2 files changed, 4 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 15:47:00 UTC (rev 657878)
+++ PKGBUILD	2020-07-05 15:48:28 UTC (rev 657879)
@@ -3,7 +3,7 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 pkgver=1.0.7
-pkgrel=1
+pkgrel=2
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
 url='https://github.com/aio-libs/aiobotocore'
@@ -11,11 +11,9 @@
 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)
+        unittest-mock.diff)
 sha256sums=('0789c379925c2f65a639e978bb20a35f4e242a46d2272f212f159f9a14f28f13'
-            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e'
-            '02700f174c58d754e501169737cf04f06f85f536b3bb4f44f422e213ab600e46')
+            'ffb6b7e922632f4c2de5c93f61ab53e1730cfe151b0a2dde5dfce6260405866e')
 
 prepare() {
   cd $_pkgname-$pkgver
@@ -22,7 +20,6 @@
   # 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
@@ -38,7 +35,7 @@
 check() {
   cd $_pkgname-$pkgver
 
-  export PYTHONPATH="$PWD/build/lib:$PWD"
+  export PYTHONPATH="$PWD"
   # test_lambda uses moto.awslambda, which requires a running Docker service
   pytest -v -m moto tests \
       --ignore=tests/test_patches.py \

Deleted: pytest-event-loop.diff
===================================================================
--- pytest-event-loop.diff	2020-07-05 15:47:00 UTC (rev 657878)
+++ pytest-event-loop.diff	2020-07-05 15:48:28 UTC (rev 657879)
@@ -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 +90,7 @@ def aa_succeed_proxy_config(monkeypatch):
- 
- 
- @pytest.fixture
--def session():
-+def session(event_loop):
-     session = aiobotocore.session.AioSession()
-     return session
- 


More information about the arch-commits mailing list