Date: Saturday, December 19, 2020 @ 03:53:58 Author: kkeen Revision: 779738
archrelease: copy trunk to community-x86_64 Added: python-pyzmq/repos/community-x86_64/PKGBUILD (from rev 779737, python-pyzmq/trunk/PKGBUILD) Deleted: python-pyzmq/repos/community-x86_64/PKGBUILD python-pyzmq/repos/community-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch ---------------------------------------------------------+ PKGBUILD | 76 ++++---------- asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch | 24 ---- 2 files changed, 26 insertions(+), 74 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-12-19 03:53:40 UTC (rev 779737) +++ PKGBUILD 2020-12-19 03:53:58 UTC (rev 779738) @@ -1,50 +0,0 @@ -# Maintainer: Kyle Keen <keenerd at gmail dot com> -pkgbase=python-pyzmq -pkgname=(python-pyzmq python2-pyzmq) -pkgver=19.0.1 -pkgrel=4 -pkgdesc="Python bindings for zeromq, written in Cython" -arch=('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' 'cython' 'cython2') -#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" - asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch) -md5sums=('2833bd5397e4069f63ad1f9f291f1f70' - '0a2106785a843c3f99411515b03f42a9') - -prepare() { - cd "$srcdir" - - # https://github.com/zeromq/pyzmq/issues/1418 - patch -Np1 -d pyzmq-${pkgver} <asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch - - cp -a pyzmq-${pkgver} py2zmq-${pkgver} -} - -check() { - cd "$srcdir/py2zmq-$pkgver" - python2 setup.py build_ext --inplace - python2 setup.py test - cd "$srcdir/pyzmq-$pkgver" - python3 setup.py build_ext --inplace - python3 setup.py test -} - -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 -} Copied: python-pyzmq/repos/community-x86_64/PKGBUILD (from rev 779737, python-pyzmq/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-12-19 03:53:58 UTC (rev 779738) @@ -0,0 +1,26 @@ +# Maintainer: Kyle Keen <keenerd at gmail dot com> +pkgname=python-pyzmq +pkgver=20.0.0 +pkgrel=1 +pkgdesc="Python3 bindings for zeromq, written in Cython" +arch=('x86_64') +url="http://www.zeromq.org/bindings:python" +license=('LGPL') +depends=('zeromq' 'python') +checkdepends=('python-nose' 'python-tornado' 'python-pytest' 'cython') +#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=('e5f12abd40c785941947cf00282eb0eb') + +check() { + cd "$srcdir/pyzmq-$pkgver" + python3 setup.py build_ext --inplace + python3 setup.py test +} + +package() { + cd "$srcdir/pyzmq-$pkgver" + python3 setup.py install --root="$pkgdir" --optimize=0 +} + Deleted: asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch =================================================================== --- asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-12-19 03:53:40 UTC (rev 779737) +++ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-12-19 03:53:58 UTC (rev 779738) @@ -1,24 +0,0 @@ -From afd72820946f544790c6f70d90ba50eb29f1c6e1 Mon Sep 17 00:00:00 2001 -From: Min RK <benjami...@gmail.com> -Date: Wed, 9 Sep 2020 10:16:36 +0200 -Subject: [PATCH] asyncio: wait for POLLOUT on sender in can_connect - -matches login in thread, because POLLOUT will only be set if connection is allowed ---- - zmq/tests/asyncio/_test_asyncio.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/zmq/tests/asyncio/_test_asyncio.py b/zmq/tests/asyncio/_test_asyncio.py -index 335913f3..d631e900 100644 ---- a/zmq/tests/asyncio/_test_asyncio.py -+++ b/zmq/tests/asyncio/_test_asyncio.py -@@ -463,7 +463,8 @@ def go(): - port = server.bind_to_random_port(iface) - client.connect("%s:%i" % (iface, port)) - msg = [b"Hello World"] -- yield from server.send_multipart(msg) -+ if (yield from server.poll(1000, zmq.POLLOUT)): -+ yield from server.send_multipart(msg) - if (yield from client.poll(1000)): - rcvd_msg = yield from client.recv_multipart() - self.assertEqual(rcvd_msg, msg)