Date: Saturday, December 19, 2020 @ 04:00:33 Author: kkeen Revision: 779740
archrelease: copy trunk to community-x86_64 Added: python2-pyzmq/repos/community-x86_64/ python2-pyzmq/repos/community-x86_64/PKGBUILD (from rev 779739, python2-pyzmq/trunk/PKGBUILD) python2-pyzmq/repos/community-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (from rev 779739, python2-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch) ---------------------------------------------------------+ PKGBUILD | 34 ++++++++++++++ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch | 24 +++++++++ 2 files changed, 58 insertions(+) Copied: python2-pyzmq/repos/community-x86_64/PKGBUILD (from rev 779739, python2-pyzmq/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-12-19 04:00:33 UTC (rev 779740) @@ -0,0 +1,34 @@ +# Maintainer: Kyle Keen <keenerd at gmail dot com> +pkgname=python2-pyzmq +pkgver=19.0.2 +pkgrel=1 +pkgdesc="Python2 bindings for zeromq, written in Cython" +arch=('x86_64') +url="http://www.zeromq.org/bindings:python" +license=('LGPL') +depends=('zeromq' 'python2') +checkdepends=('python2-nose' 'python2-tornado' 'python2-pytest' '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=('200abc1a75bdcfff7adf61304f46f55e' + '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 +} + +check() { + cd "$srcdir/pyzmq-$pkgver" + python2 setup.py build_ext --inplace + python2 setup.py test +} + +package() { + cd "$srcdir/pyzmq-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=0 +} Copied: python2-pyzmq/repos/community-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (from rev 779739, python2-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch) =================================================================== --- community-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (rev 0) +++ community-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-12-19 04:00:33 UTC (rev 779740) @@ -0,0 +1,24 @@ +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)