[arch-commits] Commit in python-sure/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Feb 11 16:48:36 UTC 2017
Date: Saturday, February 11, 2017 @ 16:48:36
Author: felixonmars
Revision: 211871
upgpkg: python-sure 1.4.1-2
- fix permissions
- enable tests
Modified:
python-sure/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-02-11 16:30:40 UTC (rev 211870)
+++ PKGBUILD 2017-02-11 16:48:36 UTC (rev 211871)
@@ -4,31 +4,39 @@
pkgbase=python-sure
pkgname=("python-sure" "python2-sure")
pkgver=1.4.1
-pkgrel=1
+pkgrel=2
pkgdesc="HTTP client mock for Python"
arch=('any')
url="http://github.com/gabrielfalcao/sure"
license=('GPL')
-makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools' 'python2-setuptools')
+makedepends=('python-six' 'python2-six' 'python-mock' 'python2-mock' 'python-setuptools'
+ 'python2-setuptools' 'git')
checkdepends=('python-nose' 'python2-nose')
-source=("https://pypi.io/packages/source/s/sure/sure-$pkgver.tar.gz")
-sha512sums=('09ebd265871957a72c7fdef0b0047af915283aab4c394cb27c05536c66ce7b4480564df45815f25015b1dc5409d7cfe8791b5d2400f6ad359e8f1eff19bc45ea')
+source=("git+https://github.com/gabrielfalcao/sure.git#tag=v$pkgver")
+sha512sums=('SKIP')
prepare() {
- cp -a "sure-$pkgver"{,-py2}
+ cp -a sure{,-py2}
}
+check() {
+ cd "$srcdir"/sure
+ python setup.py test
+
+ cd "$srcdir"/sure-py2
+ python2 setup.py test
+}
+
package_python-sure() {
depends=('python-six' 'python-mock')
- cd sure-$pkgver
- LC_CTYPE=en_US.UTF-8 python3 setup.py install --root="${pkgdir}" --optimize=1
+ cd sure
+ LC_CTYPE=en_US.UTF-8 python3 setup.py install --root="$pkgdir" --optimize=1
}
package_python2-sure() {
depends=('python2-six' 'python2-mock')
- cd sure-$pkgver-py2
- LC_CTYPE=en_US.UTF-8 python2 setup.py install --root="${pkgdir}" --optimize=1
+ cd sure-py2
+ LC_CTYPE=en_US.UTF-8 python2 setup.py install --root="$pkgdir" --optimize=1
}
-
More information about the arch-commits
mailing list