[arch-commits] Commit in python-six/repos/extra-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Jul 8 05:36:20 UTC 2016


    Date: Friday, July 8, 2016 @ 05:36:20
  Author: felixonmars
Revision: 271174

archrelease: copy trunk to extra-any

Added:
  python-six/repos/extra-any/PKGBUILD
    (from rev 271173, python-six/trunk/PKGBUILD)
Deleted:
  python-six/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   86 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 45 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-08 05:36:06 UTC (rev 271173)
+++ PKGBUILD	2016-07-08 05:36:20 UTC (rev 271174)
@@ -1,41 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
-# Contributer: Allan McRae <allan at archlinux.org>
-
-pkgbase=python-six
-pkgname=('python2-six' 'python-six')
-pkgver=1.10.0
-pkgrel=1
-pkgdesc="Python 2 and 3 compatibility utilities"
-arch=('any')
-url="http://pypi.python.org/pypi/six/"
-license=('MIT')
-makedepends=('python' 'python2')
-source=(http://pypi.python.org/packages/source/s/six/six-$pkgver.tar.gz)
-md5sums=('34eed507548117b2ab523ab14b2f8b55')
-
-build() {
-  cd $srcdir
-  cp -r six-$pkgver six2-$pkgver
-}
-
-check() {
-  cd $srcdir/six-$pkgver 
-  python3 setup.py check
-
-  cd $srcdir/six2-$pkgver 
-  python2 setup.py check
-}
-
-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_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"
-}

Copied: python-six/repos/extra-any/PKGBUILD (from rev 271173, python-six/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-07-08 05:36:20 UTC (rev 271174)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributer: Allan McRae <allan at archlinux.org>
+
+pkgbase=python-six
+pkgname=('python2-six' 'python-six')
+pkgver=1.10.0
+pkgrel=2
+pkgdesc="Python 2 and 3 compatibility utilities"
+arch=('any')
+url="http://pypi.python.org/pypi/six/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'tk')
+source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
+md5sums=('34eed507548117b2ab523ab14b2f8b55')
+
+build() {
+  cp -a six-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/six-$pkgver
+  py.test
+
+  cd "$srcdir"/six-$pkgver-py2
+  py.test2
+}
+
+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 six-$pkgver-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list