[arch-commits] Commit in python-execnet/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Sep 9 09:15:37 UTC 2015


    Date: Wednesday, September 9, 2015 @ 11:15:37
  Author: fyan
Revision: 139668

archrelease: copy trunk to community-any

Added:
  python-execnet/repos/community-any/
  python-execnet/repos/community-any/PKGBUILD
    (from rev 139667, python-execnet/trunk/PKGBUILD)

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

Copied: python-execnet/repos/community-any/PKGBUILD (from rev 139667, python-execnet/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-09-09 09:15:37 UTC (rev 139668)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-execnet
+pkgname=('python-execnet' 'python2-execnet')
+pkgver=1.4.1
+pkgrel=1
+pkgdesc="Rapid multi-Python deployment"
+arch=('any')
+license=('MIT')
+url="http://codespeak.net/execnet"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-apipkg' 'python2-apipkg')
+checkdepends=('python-pytest' 'python2-pytest' 'procps-ng' 'openssh' 'pypy')
+source=("http://pypi.python.org/packages/source/e/execnet/execnet-$pkgver.tar.gz")
+sha512sums=('e8c0c32e873f8585ff4d4da3b9cbd40046479370f5653f67a98c9029d4535a619731d1b825332fe4af4dc5ebc9ab11ee879ef45df07f08943b1e1685f2255790')
+
+prepare() {
+  cp -a execnet-${pkgver}{,-py2}
+}
+
+build() {
+  cd "$srcdir/execnet-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/execnet-${pkgver}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/execnet-${pkgver}"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test testing
+
+  cd "$srcdir/execnet-${pkgver}-py2"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 testing
+}
+
+package_python-execnet() {
+  depends=('python-apipkg')
+
+  cd execnet-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-execnet() {
+  depends=('python2-apipkg')
+
+  cd execnet-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+



More information about the arch-commits mailing list