[arch-commits] Commit in python-aiobotocore/repos/community-staging-any (6 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 4 09:49:53 UTC 2019


    Date: Monday, November 4, 2019 @ 09:49:52
  Author: foutrelis
Revision: 523961

archrelease: copy trunk to community-staging-any

Added:
  python-aiobotocore/repos/community-staging-any/PKGBUILD
    (from rev 523960, python-aiobotocore/trunk/PKGBUILD)
  python-aiobotocore/repos/community-staging-any/fix-tests-with-proxies.patch
    (from rev 523960, python-aiobotocore/trunk/fix-tests-with-proxies.patch)
  python-aiobotocore/repos/community-staging-any/moto-1.3.8.patch
    (from rev 523960, python-aiobotocore/trunk/moto-1.3.8.patch)
Deleted:
  python-aiobotocore/repos/community-staging-any/PKGBUILD
  python-aiobotocore/repos/community-staging-any/fix-tests-with-proxies.patch
  python-aiobotocore/repos/community-staging-any/moto-1.3.8.patch

------------------------------+
 PKGBUILD                     |   92 ++++++++++++++++++++---------------------
 fix-tests-with-proxies.patch |   60 +++++++++++++-------------
 moto-1.3.8.patch             |   52 +++++++++++------------
 3 files changed, 102 insertions(+), 102 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-04 09:49:47 UTC (rev 523960)
+++ PKGBUILD	2019-11-04 09:49:52 UTC (rev 523961)
@@ -1,46 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aiobotocore
-_pkgname=aiobotocore
-pkgver=0.10.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-async_generator)
-checkdepends=(python-flask python-moto python-pytest python-pytest-asyncio)
-source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
-        moto-1.3.8.patch
-        fix-tests-with-proxies.patch)
-sha256sums=('2e8fe12f66f028641d5727983bd211598e71b983d601a4d2618915ed8c7c305d'
-            '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c'
-            '248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  patch -Np1 -i ../moto-1.3.8.patch
-  patch -Np1 -i ../fix-tests-with-proxies.patch
-
-  # Disable dependency pinning
-  # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
-  rm -v tests/test_patches.py
-  sed -i -r "s#'(botocore.*),<.*',#'\1',#" setup.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=build/lib pytest -v -m moto tests
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-aiobotocore/repos/community-staging-any/PKGBUILD (from rev 523960, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-04 09:49:52 UTC (rev 523961)
@@ -0,0 +1,46 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+pkgver=0.10.4
+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=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        moto-1.3.8.patch
+        fix-tests-with-proxies.patch)
+sha256sums=('2e8fe12f66f028641d5727983bd211598e71b983d601a4d2618915ed8c7c305d'
+            '7953b9cf8b4256cf0020098a978ef5c48097dfbaafe1c2cbf22d590ed1b07e5c'
+            '248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  patch -Np1 -i ../moto-1.3.8.patch
+  patch -Np1 -i ../fix-tests-with-proxies.patch
+
+  # Disable dependency pinning
+  # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
+  rm -v tests/test_patches.py
+  sed -i -r "s#'(botocore.*),<.*',#'\1',#" setup.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=build/lib pytest -v -m moto tests
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Deleted: fix-tests-with-proxies.patch
===================================================================
--- fix-tests-with-proxies.patch	2019-11-04 09:49:47 UTC (rev 523960)
+++ fix-tests-with-proxies.patch	2019-11-04 09:49:52 UTC (rev 523961)
@@ -1,30 +0,0 @@
-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

Copied: python-aiobotocore/repos/community-staging-any/fix-tests-with-proxies.patch (from rev 523960, python-aiobotocore/trunk/fix-tests-with-proxies.patch)
===================================================================
--- fix-tests-with-proxies.patch	                        (rev 0)
+++ fix-tests-with-proxies.patch	2019-11-04 09:49:52 UTC (rev 523961)
@@ -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

Deleted: moto-1.3.8.patch
===================================================================
--- moto-1.3.8.patch	2019-11-04 09:49:47 UTC (rev 523960)
+++ moto-1.3.8.patch	2019-11-04 09:49:52 UTC (rev 523961)
@@ -1,26 +0,0 @@
---- 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(

Copied: python-aiobotocore/repos/community-staging-any/moto-1.3.8.patch (from rev 523960, python-aiobotocore/trunk/moto-1.3.8.patch)
===================================================================
--- moto-1.3.8.patch	                        (rev 0)
+++ moto-1.3.8.patch	2019-11-04 09:49:52 UTC (rev 523961)
@@ -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