[arch-commits] Commit in python-pyzmq/repos (4 files)

Felix Yan fyan at archlinux.org
Sun Sep 20 09:57:54 UTC 2015


    Date: Sunday, September 20, 2015 @ 11:57:54
  Author: fyan
Revision: 141225

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-pyzmq/repos/community-staging-i686/
  python-pyzmq/repos/community-staging-i686/PKGBUILD
    (from rev 141224, python-pyzmq/trunk/PKGBUILD)
  python-pyzmq/repos/community-staging-x86_64/
  python-pyzmq/repos/community-staging-x86_64/PKGBUILD
    (from rev 141224, python-pyzmq/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   54 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

Copied: python-pyzmq/repos/community-staging-i686/PKGBUILD (from rev 141224, python-pyzmq/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-20 09:57:54 UTC (rev 141225)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail dot com>
+pkgbase=python-pyzmq
+pkgname=(python2-pyzmq python-pyzmq)
+pkgver=14.7.0
+pkgrel=2
+pkgdesc="Python bindings for zeromq, written in Cython"
+arch=(i686 x86_64)
+url="http://www.zeromq.org/bindings:python"
+license=('LGPL')
+depends=(zeromq python)
+makedepends=(python python2 zeromq)
+#source=(https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz)
+source=(https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz)
+md5sums=('87e3abb33af5794db5ae85c667bbf324')
+
+prepare() {
+  cd "$srcdir"
+  cp -a pyzmq-${pkgver} py2zmq-${pkgver}
+}
+
+build() {
+  cd "$srcdir/pyzmq-$pkgver"
+  # py3 errors added in 2.2.0.1 
+  sed -i 's|except socket.error, e:|except socket.error as e:|' zmq/eventloop/ioloop.py
+  sed -i 's|except gevent.Timeout, t:|except gevent.Timeout as t:|' zmq/green/core.py
+  cd "$srcdir/py2zmq-$pkgver"
+  sed -i 's|^#!/usr/bin/env python$|&2|' $(find ./ -name '*.py')
+}
+
+package_python2-pyzmq() {
+  pkgdesc="Python2 bindings for zeromq, written in Cython"
+  depends=(zeromq python2)
+  cd "$srcdir/py2zmq-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+}
+
+package_python-pyzmq() {
+  pkgdesc="Python3 bindings for zeromq, written in Cython"
+  depends=(zeromq python)
+  cd "$srcdir/pyzmq-$pkgver"
+  python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+check()
+{
+  cd "$srcdir/pyzmq-$pkgver"
+  python3 setup.py build_ext --inplace
+  python3 setup.py test
+  cd "$srcdir/py2zmq-$pkgver"
+  python2 setup.py build_ext --inplace
+  python2 setup.py test
+}
+

Copied: python-pyzmq/repos/community-staging-x86_64/PKGBUILD (from rev 141224, python-pyzmq/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-20 09:57:54 UTC (rev 141225)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail dot com>
+pkgbase=python-pyzmq
+pkgname=(python2-pyzmq python-pyzmq)
+pkgver=14.7.0
+pkgrel=2
+pkgdesc="Python bindings for zeromq, written in Cython"
+arch=(i686 x86_64)
+url="http://www.zeromq.org/bindings:python"
+license=('LGPL')
+depends=(zeromq python)
+makedepends=(python python2 zeromq)
+#source=(https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz)
+source=(https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz)
+md5sums=('87e3abb33af5794db5ae85c667bbf324')
+
+prepare() {
+  cd "$srcdir"
+  cp -a pyzmq-${pkgver} py2zmq-${pkgver}
+}
+
+build() {
+  cd "$srcdir/pyzmq-$pkgver"
+  # py3 errors added in 2.2.0.1 
+  sed -i 's|except socket.error, e:|except socket.error as e:|' zmq/eventloop/ioloop.py
+  sed -i 's|except gevent.Timeout, t:|except gevent.Timeout as t:|' zmq/green/core.py
+  cd "$srcdir/py2zmq-$pkgver"
+  sed -i 's|^#!/usr/bin/env python$|&2|' $(find ./ -name '*.py')
+}
+
+package_python2-pyzmq() {
+  pkgdesc="Python2 bindings for zeromq, written in Cython"
+  depends=(zeromq python2)
+  cd "$srcdir/py2zmq-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=0
+}
+
+package_python-pyzmq() {
+  pkgdesc="Python3 bindings for zeromq, written in Cython"
+  depends=(zeromq python)
+  cd "$srcdir/pyzmq-$pkgver"
+  python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+check()
+{
+  cd "$srcdir/pyzmq-$pkgver"
+  python3 setup.py build_ext --inplace
+  python3 setup.py test
+  cd "$srcdir/py2zmq-$pkgver"
+  python2 setup.py build_ext --inplace
+  python2 setup.py test
+}
+



More information about the arch-commits mailing list