[arch-commits] Commit in python-aiobotocore/repos/community-any (6 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sat Jan 4 08:11:06 UTC 2020
Date: Saturday, January 4, 2020 @ 08:11:06
Author: yan12125
Revision: 547786
archrelease: copy trunk to community-any
Added:
python-aiobotocore/repos/community-any/PKGBUILD
(from rev 547785, python-aiobotocore/trunk/PKGBUILD)
python-aiobotocore/repos/community-any/fix-tests-with-proxies.patch
(from rev 547785, python-aiobotocore/trunk/fix-tests-with-proxies.patch)
python-aiobotocore/repos/community-any/python-aiobotocore-moto-1.3.14.diff
(from rev 547785, python-aiobotocore/trunk/python-aiobotocore-moto-1.3.14.diff)
Deleted:
python-aiobotocore/repos/community-any/PKGBUILD
python-aiobotocore/repos/community-any/fix-tests-with-proxies.patch
python-aiobotocore/repos/community-any/python-aiobotocore-moto-1.3.14.diff
-------------------------------------+
PKGBUILD | 96 +++++++++++++++++-----------------
fix-tests-with-proxies.patch | 60 ++++++++++-----------
python-aiobotocore-moto-1.3.14.diff | 44 +++++++--------
3 files changed, 100 insertions(+), 100 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-04 08:10:43 UTC (rev 547785)
+++ PKGBUILD 2020-01-04 08:11:06 UTC (rev 547786)
@@ -1,48 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-aiobotocore
-_pkgname=aiobotocore
-pkgver=0.11.0
-pkgrel=3
-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"
- fix-tests-with-proxies.patch
- $pkgname-moto-1.3.14.diff)
-sha256sums=('e2f2ff362745250524df961e50a42fdd0625ac5b3411b49f492d2f828ca9fcaa'
- '248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7'
- '94b560d753ac31709e9ffb3771759561979e061772de1789f7dfe102fe01ca8c')
-
-prepare() {
- cd $_pkgname-$pkgver
-
- patch -Np1 -i ../fix-tests-with-proxies.patch
- # Workaround removal of DEFAULT_TOPIC_POLICY from moto.sns.models
- # See: https://github.com/spulec/moto/pull/2517
- patch -Np1 -i ../$pkgname-moto-1.3.14.diff
-
- # 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-any/PKGBUILD (from rev 547785, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-04 08:11:06 UTC (rev 547786)
@@ -0,0 +1,48 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+pkgver=0.11.1
+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"
+ fix-tests-with-proxies.patch
+ $pkgname-moto-1.3.14.diff)
+sha256sums=('2fd5787ff73a945f7f42f78cc0322d066f570254a805e7c02854895e45f61860'
+ '248aee05a468848dda2c40185f49714ebe8b789913dd7bb49018d69f1f3606f7'
+ '94b560d753ac31709e9ffb3771759561979e061772de1789f7dfe102fe01ca8c')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ patch -Np1 -i ../fix-tests-with-proxies.patch
+ # Workaround removal of DEFAULT_TOPIC_POLICY from moto.sns.models
+ # See: https://github.com/spulec/moto/pull/2517
+ patch -Np1 -i ../$pkgname-moto-1.3.14.diff
+
+ # 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 2020-01-04 08:10:43 UTC (rev 547785)
+++ fix-tests-with-proxies.patch 2020-01-04 08:11:06 UTC (rev 547786)
@@ -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-any/fix-tests-with-proxies.patch (from rev 547785, python-aiobotocore/trunk/fix-tests-with-proxies.patch)
===================================================================
--- fix-tests-with-proxies.patch (rev 0)
+++ fix-tests-with-proxies.patch 2020-01-04 08:11:06 UTC (rev 547786)
@@ -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: python-aiobotocore-moto-1.3.14.diff
===================================================================
--- python-aiobotocore-moto-1.3.14.diff 2020-01-04 08:10:43 UTC (rev 547785)
+++ python-aiobotocore-moto-1.3.14.diff 2020-01-04 08:11:06 UTC (rev 547786)
@@ -1,22 +0,0 @@
-diff --git a/tests/test_sns.py b/tests/test_sns.py
-index e008192..639f0b7 100644
---- a/tests/test_sns.py
-+++ b/tests/test_sns.py
-@@ -2,8 +2,6 @@ import json
- import pytest
- import botocore
-
--from moto.sns.models import DEFAULT_TOPIC_POLICY
--
-
- @pytest.mark.moto
- @pytest.mark.asyncio
-@@ -17,7 +15,7 @@ async def test_topic_attributes(sns_client, topic_arn):
- attributes = topic_properties['Attributes']
-
- assert arn1 == topic_arn
-- assert json.loads(attributes['Policy']) == DEFAULT_TOPIC_POLICY
-+ assert json.loads(attributes['Policy'])
- assert attributes['DisplayName'] == ''
-
- display_name = 'My display name'
Copied: python-aiobotocore/repos/community-any/python-aiobotocore-moto-1.3.14.diff (from rev 547785, python-aiobotocore/trunk/python-aiobotocore-moto-1.3.14.diff)
===================================================================
--- python-aiobotocore-moto-1.3.14.diff (rev 0)
+++ python-aiobotocore-moto-1.3.14.diff 2020-01-04 08:11:06 UTC (rev 547786)
@@ -0,0 +1,22 @@
+diff --git a/tests/test_sns.py b/tests/test_sns.py
+index e008192..639f0b7 100644
+--- a/tests/test_sns.py
++++ b/tests/test_sns.py
+@@ -2,8 +2,6 @@ import json
+ import pytest
+ import botocore
+
+-from moto.sns.models import DEFAULT_TOPIC_POLICY
+-
+
+ @pytest.mark.moto
+ @pytest.mark.asyncio
+@@ -17,7 +15,7 @@ async def test_topic_attributes(sns_client, topic_arn):
+ attributes = topic_properties['Attributes']
+
+ assert arn1 == topic_arn
+- assert json.loads(attributes['Policy']) == DEFAULT_TOPIC_POLICY
++ assert json.loads(attributes['Policy'])
+ assert attributes['DisplayName'] == ''
+
+ display_name = 'My display name'
More information about the arch-commits
mailing list