[arch-commits] Commit in python-aiobotocore/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sat Sep 28 08:07:28 UTC 2019
Date: Saturday, September 28, 2019 @ 08:07:27
Author: yan12125
Revision: 511960
upgpkg: python-aiobotocore 0.10.3-3
* Remove upper bound of botocore dependency; simplify disabling of version pinning
Modified:
python-aiobotocore/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-28 07:50:33 UTC (rev 511959)
+++ PKGBUILD 2019-09-28 08:07:27 UTC (rev 511960)
@@ -3,7 +3,7 @@
pkgname=python-aiobotocore
_pkgname=aiobotocore
pkgver=0.10.3
-pkgrel=2
+pkgrel=3
pkgdesc='asyncio support for botocore library using aiohttp'
arch=(any)
url='https://github.com/aio-libs/aiobotocore'
@@ -10,7 +10,7 @@
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"
+source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz"
moto-1.3.8.patch
fix-tests-with-proxies.patch)
sha256sums=('5af3a575dee8f6d4bda36a237807edc7e864cc0e45c0b20dc07521191ee04759'
@@ -20,11 +20,13 @@
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
+
+ # 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() {
@@ -35,8 +37,7 @@
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
+ PYTHONPATH=build/lib pytest -v -m moto tests
}
package() {
More information about the arch-commits
mailing list