[arch-commits] Commit in python-moto/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sat Jul 20 08:47:31 UTC 2019
Date: Saturday, July 20, 2019 @ 08:47:31
Author: yan12125
Revision: 492258
upgpkg: python-moto 1.3.13-1
* Switch back to PyPI tarballs as upstream often forgets to add git tags.
* Add a workaround for an boto 2.x issue. It breaks building on https://tests.reproducible-builds.org/archlinux/ as the latter uses proxies.
Modified:
python-moto/trunk/PKGBUILD
----------+
PKGBUILD | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-07-20 08:39:24 UTC (rev 492257)
+++ PKGBUILD 2019-07-20 08:47:31 UTC (rev 492258)
@@ -3,7 +3,7 @@
pkgname=python-moto
_pkgname=moto
-pkgver=1.3.10
+pkgver=1.3.13
pkgrel=1
pkgdesc='Moto is a library to mock out the boto library.'
arch=(any)
@@ -18,9 +18,9 @@
optdepends=(
'python-flask: for moto_server'
)
-source=("https://github.com/spulec/moto/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+source=("https://files.pythonhosted.org/packages/source/m/moto/moto-$pkgver.tar.gz"
moto-fix-setup.patch::https://github.com/yan12125/moto/commit/92bf8eff12b49def8e9689c57d26184c548546d0.patch)
-sha256sums=('3ecb76df66c47a59dd9cc7218f08265c04f2b963561b9d50a246221a63999d23'
+sha256sums=('95d48d8ebaad47fb5bb4233854cf1cf8523ec5307d50eb1e4017ce10f1960b66'
'913485b0605c1b9cbb445b1862eb91ee6130430d5b735836f8e1b093565924d8')
prepare() {
@@ -42,6 +42,13 @@
check() {
cd $_pkgname-$pkgver
+ # boto 2.x is broken with proxies https://github.com/boto/boto/issues/2869
+ # XXX: is there a way to skip boto 2.x tests only?
+ if [ -n "$http_proxy" -o -n "$https_proxy" ] ; then
+ warning "Skipping tests as some tests do not work with proxies."
+ return
+ fi
+
TZ=UTC nosetests -sv ./tests/ --exclude='test_iot.*' --exclude='test_lambda.*'
}
More information about the arch-commits
mailing list