summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-six/PKGBUILD46
1 files changed, 25 insertions, 21 deletions
diff --git a/abs/core/python_modules/python-six/PKGBUILD b/abs/core/python_modules/python-six/PKGBUILD
index 0e8986b..33093f7 100644
--- a/abs/core/python_modules/python-six/PKGBUILD
+++ b/abs/core/python_modules/python-six/PKGBUILD
@@ -1,41 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Jelle van der Waa <jelle@vdwaa.nl>
# Contributer: Allan McRae <allan@archlinux.org>
-# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
pkgbase=python-six
pkgname=('python2-six')
-pkgver=1.6.1
-pkgrel=2
+pkgver=1.10.0
+pkgrel=3
pkgdesc="Python 2 and 3 compatibility utilities"
arch=('any')
url="http://pypi.python.org/pypi/six/"
license=('MIT')
-makedepends=('python2')
-source=(http://pypi.python.org/packages/source/s/six/six-$pkgver.tar.gz)
-md5sums=('07d606ac08595d795bf926cc9985674f')
+makedepends=('python2-setuptools')
+checkdepends=('python2-pytest' 'tk')
+source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
+md5sums=('34eed507548117b2ab523ab14b2f8b55')
build() {
- cd $srcdir
- cp -r six-$pkgver six2-$pkgver
+ cp -a six-$pkgver{,-py2}
}
check() {
-# cd $srcdir/six-$pkgver
-# python3 setup.py check
+# cd "$srcdir"/six-$pkgver
+# py.test
- cd $srcdir/six2-$pkgver
- python2 setup.py check
+ cd "$srcdir"/six-$pkgver-py2
+ py.test2
}
-#package_python-six() {
-# depends=('python')
-# cd $srcdir/six-$pkgver
-# python3 setup.py install --root "${pkgdir}" --optimize=1
-# install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-#}
+package_python-six() {
+ depends=('python')
+
+ cd six-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
package_python2-six() {
depends=('python2')
- cd $srcdir/six2-$pkgver
- python2 setup.py install --root "${pkgdir}" --optimize=1
- install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ cd six-$pkgver-py2
+ python2 setup.py install --root "$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}