[arch-commits] Commit in python-pytools/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Oct 10 02:22:08 UTC 2016
Date: Monday, October 10, 2016 @ 02:22:07
Author: felixonmars
Revision: 191771
upgpkg: python-pytools 2016.2.4-1
Modified:
python-pytools/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-10 00:50:58 UTC (rev 191770)
+++ PKGBUILD 2016-10-10 02:22:07 UTC (rev 191771)
@@ -4,7 +4,7 @@
pkgbase=python-pytools
pkgname=('python2-pytools' 'python-pytools')
-pkgver=2016.2.2
+pkgver=2016.2.4
pkgrel=1
pkgdesc="A collection of tools for Python"
arch=('any')
@@ -13,39 +13,40 @@
makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator'
'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' 'python-numpy'
'python2-numpy')
-checkdepends=('python-pytest' 'python2-pytest')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
source=("https://pypi.io/packages/source/p/pytools/pytools-$pkgver.tar.gz")
-sha512sums=('2f5870dc0c35d91fb0863fcf4819bf60c7e51c1c2645a43dd2e6dde3b3ddaa44248b1a2cb342976c50c0005f632a6efc9af0b6b77b7bb324b0c22ac843c3943f')
+sha512sums=('40fc58a6fbc7bb8dfb02b3a648e14221a6d0e47516dc9f87dc3642491315fca11aad6f8171922c53dba290653f22a01ec4b6293d92949309fe6d7a579e47b2ac')
prepare() {
- cp -a pytools-$pkgver{,-python2}
+ cp -a pytools-$pkgver{,-python2}
}
build() {
- cd "$srcdir"/pytools-$pkgver
- python setup.py build
+ cd "$srcdir"/pytools-$pkgver
+ python setup.py build
- cd "$srcdir"/pytools-$pkgver-python2
- python2 setup.py build
+ cd "$srcdir"/pytools-$pkgver-python2
+ python2 setup.py build
}
check() {
- cd "$srcdir"/pytools-$pkgver
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+ cd "$srcdir"/pytools-$pkgver
+ python setup.py ptr
- cd "$srcdir"/pytools-$pkgver-python2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
+ cd "$srcdir"/pytools-$pkgver-python2
+ python2 setup.py ptr
}
-package_python2-pytools() {
- depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy')
- cd pytools-$pkgver-python2
- python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+package_python-pytools(){
+ depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy')
+
+ cd pytools-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
}
-package_python-pytools(){
- depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy')
- cd pytools-$pkgver
- python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
+package_python2-pytools() {
+ depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy')
+
+ cd pytools-$pkgver-python2
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1
}
-
More information about the arch-commits
mailing list