diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-06-16 07:43:51 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-06-16 08:32:52 +0000 |
commit | 1d8ee07dbde1439fa286be0c222e5748f2655ae2 (patch) | |
tree | 759c7284b69cb2314a437bd69d80afe1d6a4f50f /community/py-libcloud | |
parent | aac3a16049adcd62137df684f1de94e785c5aaa4 (diff) | |
download | aports-1d8ee07dbde1439fa286be0c222e5748f2655ae2.tar.bz2 aports-1d8ee07dbde1439fa286be0c222e5748f2655ae2.tar.xz |
community/py-libcloud: upgrade to 2.0.0, added check() function, improved APKBUILD
Diffstat (limited to 'community/py-libcloud')
-rw-r--r-- | community/py-libcloud/APKBUILD | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/community/py-libcloud/APKBUILD b/community/py-libcloud/APKBUILD index b7b2e51e73..8ca608cc30 100644 --- a/community/py-libcloud/APKBUILD +++ b/community/py-libcloud/APKBUILD @@ -2,24 +2,27 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-libcloud _pkgname=${pkgname/py-/} -pkgver=1.1.0 -pkgrel=1 +pkgver=2.0.0 +pkgrel=0 pkgdesc="Python library for interacting with many of the popular cloud service providers using a unified API." url="http://libcloud.apache.org/" arch="noarch" license="APACHE2" -depends="" makedepends="py-setuptools python2-dev python3-dev" -install="" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/apache/${pkgname/py-/}/archive/v$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build } package() { @@ -43,6 +46,4 @@ _py3() { _py python3 } -md5sums="ad425197b95e51ecde8c7e3a4b7a9b1e py-libcloud-1.1.0.tar.gz" -sha256sums="cf1aef68ab951a9686af6395262d4d89e51f5fe21bff0a370b452289b14d9b1f py-libcloud-1.1.0.tar.gz" -sha512sums="fa413ffa0ebc644990d9b55102bb95a45d5f8f45744d6645aa7b4a3f071f5d2cc5ca8f9b00e176efd1dfe70f29aaa3b2d6d24d919fc207536728e93ef9f66a60 py-libcloud-1.1.0.tar.gz" +sha512sums="d32d522e0f41fa2d4c5b4b222248bc57b60d8337bdc27813e1df55fb55a41815d8a528f2eba6714acf46dfb4f375c25c60a8ef5254db37812ec610359ab07d71 py-libcloud-2.0.0.tar.gz" |