[arch-commits] Commit in python-pyzmq/repos (4 files)
Kyle Keen
kkeen at archlinux.org
Sun Dec 4 08:02:41 UTC 2016
Date: Sunday, December 4, 2016 @ 08:02:40
Author: kkeen
Revision: 197858
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
python-pyzmq/repos/community-testing-i686/
python-pyzmq/repos/community-testing-i686/PKGBUILD
(from rev 197857, python-pyzmq/trunk/PKGBUILD)
python-pyzmq/repos/community-testing-x86_64/
python-pyzmq/repos/community-testing-x86_64/PKGBUILD
(from rev 197857, python-pyzmq/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
Copied: python-pyzmq/repos/community-testing-i686/PKGBUILD (from rev 197857, python-pyzmq/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-12-04 08:02:40 UTC (rev 197858)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail dot com>
+pkgbase=python-pyzmq
+pkgname=(python-pyzmq python2-pyzmq)
+pkgver=16.0.2
+pkgrel=1
+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')
+checkdepends=('python-nose' 'python2-nose' 'python-tornado' 'python2-tornado'
+ 'python-pytest' 'python2-pytest')
+#source=("https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz")
+#source=("https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
+source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
+md5sums=('9a8768b00a566a400d70318f8c359cfe')
+
+prepare() {
+ cd "$srcdir"
+ cp -a pyzmq-${pkgver} py2zmq-${pkgver}
+
+ cd "$srcdir/py2zmq-$pkgver"
+ sed -i 's|^#!/usr/bin/env python$|&2|' $(find ./ -name '*.py')
+}
+
+build() {
+ cd "$srcdir"
+}
+
+package_python-pyzmq() {
+ pkgdesc="Python3 bindings for zeromq, written in Cython"
+ cd "$srcdir/pyzmq-$pkgver"
+ python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+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
+}
+
+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-testing-x86_64/PKGBUILD (from rev 197857, python-pyzmq/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-12-04 08:02:40 UTC (rev 197858)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail dot com>
+pkgbase=python-pyzmq
+pkgname=(python-pyzmq python2-pyzmq)
+pkgver=16.0.2
+pkgrel=1
+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')
+checkdepends=('python-nose' 'python2-nose' 'python-tornado' 'python2-tornado'
+ 'python-pytest' 'python2-pytest')
+#source=("https://github.com/zeromq/pyzmq/downloads/pyzmq-$pkgver.tar.gz")
+#source=("https://pypi.python.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
+source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
+md5sums=('9a8768b00a566a400d70318f8c359cfe')
+
+prepare() {
+ cd "$srcdir"
+ cp -a pyzmq-${pkgver} py2zmq-${pkgver}
+
+ cd "$srcdir/py2zmq-$pkgver"
+ sed -i 's|^#!/usr/bin/env python$|&2|' $(find ./ -name '*.py')
+}
+
+build() {
+ cd "$srcdir"
+}
+
+package_python-pyzmq() {
+ pkgdesc="Python3 bindings for zeromq, written in Cython"
+ cd "$srcdir/pyzmq-$pkgver"
+ python3 setup.py install --root="$pkgdir" --optimize=0
+}
+
+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
+}
+
+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