[arch-commits] Commit in python-aiobotocore/trunk (2 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Wed Aug 14 16:04:01 UTC 2019


    Date: Wednesday, August 14, 2019 @ 16:04:01
  Author: yan12125
Revision: 499209

upgpkg: python-aiobotocore 0.10.3-2

* Fix tests on systems with proxies (e.g., https://tests.reproducible-builds.org/)

Added:
  python-aiobotocore/trunk/fix-tests-with-proxies.patch
Modified:
  python-aiobotocore/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |    9 ++++++---
 fix-tests-with-proxies.patch |   30 ++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-14 15:17:23 UTC (rev 499208)
+++ PKGBUILD	2019-08-14 16:04:01 UTC (rev 499209)
@@ -3,7 +3,7 @@
 pkgname=python-aiobotocore
 _pkgname=aiobotocore
 pkgver=0.10.3
-pkgrel=1
+pkgrel=2
 pkgdesc='asyncio support for botocore library using aiohttp'
 arch=(any)
 url='https://github.com/aio-libs/aiobotocore'
@@ -11,9 +11,11 @@
 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)
+        moto-1.3.8.patch
+        fix-tests-with-proxies.patch)
 sha256sums=('5af3a575dee8f6d4bda36a237807edc7e864cc0e45c0b20dc07521191ee04759'
-            '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c')
+            '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c'
+            '248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7')
 
 prepare() {
   cd $_pkgname-$pkgver
@@ -22,6 +24,7 @@
   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() {

Added: fix-tests-with-proxies.patch
===================================================================
--- fix-tests-with-proxies.patch	                        (rev 0)
+++ fix-tests-with-proxies.patch	2019-08-14 16:04:01 UTC (rev 499209)
@@ -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')
++    monkeypatch.setenv('https_proxy', 'http://localhost:54321')
++
++    monkeypatch.delenv('no_proxy', raising=False)
+ 
+ 
+ @pytest.fixture
+ def aa_succeed_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')
++    monkeypatch.setenv('https_proxy', 'http://localhost:54321')
+ 
+     # this will cause us to skip proxying
+-    monkeypatch.setenv('NO_PROXY', 'amazonaws.com')
++    monkeypatch.setenv('no_proxy', 'amazonaws.com')
+ 
+ 
+ @pytest.fixture



More information about the arch-commits mailing list