[arch-commits] Commit in python-pyzmq/trunk (2 files)
Kyle Keen
kkeen at archlinux.org
Sat Dec 19 03:53:40 UTC 2020
Date: Saturday, December 19, 2020 @ 03:53:40
Author: kkeen
Revision: 779737
upgpkg: python-pyzmq 20.0.0-1
Modified:
python-pyzmq/trunk/PKGBUILD
Deleted:
python-pyzmq/trunk/asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch
---------------------------------------------------------+
PKGBUILD | 40 ++------------
asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch | 24 --------
2 files changed, 8 insertions(+), 56 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-19 03:44:28 UTC (rev 779736)
+++ PKGBUILD 2020-12-19 03:53:40 UTC (rev 779737)
@@ -1,50 +1,26 @@
# 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"
+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')
-makedepends=('python' 'python2')
-checkdepends=('python-nose' 'python2-nose' 'python-tornado' 'python2-tornado'
- 'python-pytest' 'python2-pytest' 'cython' 'cython2')
+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"
- asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch)
-md5sums=('2833bd5397e4069f63ad1f9f291f1f70'
- '0a2106785a843c3f99411515b03f42a9')
+source=("https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-$pkgver.tar.gz")
+md5sums=('e5f12abd40c785941947cf00282eb0eb')
-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"
+package() {
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
-}
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:44:28 UTC (rev 779736)
+++ asyncio-wait-for-POLLOUT-on-sender-in-can_connect.patch 2020-12-19 03:53:40 UTC (rev 779737)
@@ -1,24 +0,0 @@
-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