[arch-commits] Commit in python-pyzmq/repos/community-staging-x86_64 (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 11 11:47:56 UTC 2020
Date: Wednesday, November 11, 2020 @ 11:47:56
Author: foutrelis
Revision: 750760
archrelease: copy trunk to community-staging-x86_64
Added:
python-pyzmq/repos/community-staging-x86_64/PKGBUILD
(from rev 750759, python-pyzmq/trunk/PKGBUILD)
python-pyzmq/repos/community-staging-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch
(from rev 750759, python-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch)
Deleted:
python-pyzmq/repos/community-staging-x86_64/PKGBUILD
---------------------------------------------------------+
PKGBUILD | 94 +++++++-------
asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch | 24 +++
2 files changed, 74 insertions(+), 44 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 11:47:51 UTC (rev 750759)
+++ PKGBUILD 2020-11-11 11:47:56 UTC (rev 750760)
@@ -1,44 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail dot com>
-pkgbase=python-pyzmq
-pkgname=(python-pyzmq python2-pyzmq)
-pkgver=19.0.1
-pkgrel=3
-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")
-md5sums=('2833bd5397e4069f63ad1f9f291f1f70')
-
-prepare() {
- cd "$srcdir"
- 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-staging-x86_64/PKGBUILD (from rev 750759, python-pyzmq/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-11 11:47:56 UTC (rev 750760)
@@ -0,0 +1,50 @@
+# 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-staging-x86_64/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (from rev 750759, python-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch)
===================================================================
--- asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch (rev 0)
+++ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-11-11 11:47:56 UTC (rev 750760)
@@ -0,0 +1,24 @@
+From afd72820946f544790c6f70d90ba50eb29f1c6e1 Mon Sep 17 00:00:00 2001
+From: Min RK <benjaminrk at 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)
More information about the arch-commits
mailing list