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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 09:49:16 UTC 2016


    Date: Saturday, December 24, 2016 @ 09:49:15
  Author: felixonmars
Revision: 284561

archrelease: copy trunk to staging-any

Added:
  python-six/repos/staging-any/
  python-six/repos/staging-any/PKGBUILD
    (from rev 284560, python-six/trunk/PKGBUILD)

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

Copied: python-six/repos/staging-any/PKGBUILD (from rev 284560, python-six/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2016-12-24 09:49:15 UTC (rev 284561)
@@ -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=3
+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