Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/
Date: Fri, 11 Sep 2020 09:31:45
Message-Id: 1599816696.688eaee1fd0ea731d77f598aadf36eb0c1a682e9.mgorny@gentoo
1 commit: 688eaee1fd0ea731d77f598aadf36eb0c1a682e9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 09:28:37 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 09:31:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=688eaee1
7
8 dev-python/pyzmq: Bump to 19.0.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyzmq/Manifest | 1 +
13 dev-python/pyzmq/pyzmq-19.0.2.ebuild | 93 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest
17 index fc8bb651962..3bb9af9b1a1 100644
18 --- a/dev-python/pyzmq/Manifest
19 +++ b/dev-python/pyzmq/Manifest
20 @@ -1 +1,2 @@
21 DIST pyzmq-19.0.1_p20200608.tar.gz 390927 BLAKE2B d70a2f615782cc5a53ed2ffab4d5549bc5d15cc1e0e63f640a357fe8575ca327a5976a3e8b11d97c236a31ca17025f37fe423d166b684b5c4aafc139a0941492 SHA512 7f077ed3858c226eb1e3f5e51dfb5d4b517ec94357b37cc66d17cfe2543786b86627ce7eb4c12785a2709a499af998d02642d972c119a637df3cec5201e909d1
22 +DIST pyzmq-19.0.2.tar.gz 390927 BLAKE2B d70a2f615782cc5a53ed2ffab4d5549bc5d15cc1e0e63f640a357fe8575ca327a5976a3e8b11d97c236a31ca17025f37fe423d166b684b5c4aafc139a0941492 SHA512 7f077ed3858c226eb1e3f5e51dfb5d4b517ec94357b37cc66d17cfe2543786b86627ce7eb4c12785a2709a499af998d02642d972c119a637df3cec5201e909d1
23
24 diff --git a/dev-python/pyzmq/pyzmq-19.0.2.ebuild b/dev-python/pyzmq/pyzmq-19.0.2.ebuild
25 new file mode 100644
26 index 00000000000..d484501919b
27 --- /dev/null
28 +++ b/dev-python/pyzmq/pyzmq-19.0.2.ebuild
29 @@ -0,0 +1,93 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{6..9} )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +inherit flag-o-matic distutils-r1 toolchain-funcs
39 +
40 +EGIT_COMMIT="dd4dac055152d47c829034224cdecf594c7b3f12"
41 +DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
42 +HOMEPAGE="
43 + https://www.zeromq.org/bindings:python
44 + https://pypi.org/project/pyzmq/
45 + https://github.com/zeromq/pyzmq/"
46 +SRC_URI="
47 + https://github.com/zeromq/pyzmq/archive/${EGIT_COMMIT}.tar.gz
48 + -> ${P}.tar.gz"
49 +S=${WORKDIR}/${PN}-${EGIT_COMMIT}
50 +
51 +LICENSE="LGPL-3"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
54 +IUSE="+draft"
55 +
56 +DEPEND="
57 + >=net-libs/zeromq-4.2.2-r2:=[drafts]
58 +"
59 +RDEPEND="${DEPEND}
60 + dev-python/py[${PYTHON_USEDEP}]
61 + dev-python/cffi:=[${PYTHON_USEDEP}]
62 +"
63 +BDEPEND="
64 + dev-python/cython[${PYTHON_USEDEP}]
65 + test? (
66 + >=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
67 + )
68 +"
69 +
70 +distutils_enable_tests pytest
71 +distutils_enable_sphinx docs \
72 + "dev-python/numpydoc"
73 +
74 +python_configure_all() {
75 + tc-export CC
76 + append-cppflags -DZMQ_BUILD_DRAFT_API=$(usex draft '1' '0')
77 +}
78 +
79 +python_compile() {
80 + esetup.py cython --force
81 + distutils-r1_python_compile
82 +}
83 +
84 +python_test() {
85 + local deselect=(
86 + # lore says it sometimes hangs
87 + zmq/tests/test_auth.py::TestThreadAuthentication::test_curve
88 +
89 + # broken tests
90 + zmq/tests/test_auth.py::TestThreadAuthentication::test_curve_user_id
91 + zmq/tests/test_constants.py::TestConstants::test_draft
92 + zmq/tests/test_context.py::TestContext::test_mockable
93 + zmq/tests/test_draft.py::TestDraftSockets::test_client_server
94 + zmq/tests/test_draft.py::TestDraftSockets::test_radio_dish
95 + zmq/tests/test_message.py::TestFrame::test_buffer_numpy
96 + zmq/tests/test_message.py::TestFrame::test_bytes
97 + zmq/tests/test_message.py::TestFrame::test_frame_more
98 + zmq/tests/test_message.py::TestFrame::test_lifecycle1
99 + zmq/tests/test_message.py::TestFrame::test_lifecycle2
100 + zmq/tests/test_message.py::TestFrame::test_memoryview_shape
101 + zmq/tests/test_message.py::TestFrame::test_multi_tracker
102 + zmq/tests/test_message.py::TestFrame::test_tracker
103 + zmq/tests/test_security.py::TestSecurity::test_curve
104 + zmq/tests/test_security.py::TestSecurity::test_plain
105 + zmq/tests/test_socket.py::TestSocket::test_large_send
106 + zmq/tests/test_socket.py::TestSocket::test_tracker
107 + zmq/tests/test_socket.py::TestSocketGreen::test_large_send
108 +
109 + # hanging tests
110 + zmq/tests/test_socket.py::TestSocketGreen::test_tracker
111 + zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_blacklist
112 + zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_curve
113 + zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_plain
114 + )
115 + [[ ${EPYTHON} == python3.9 ]] && deselect+=(
116 + # crashes python
117 + zmq/tests/test_socket.py::TestSocketGreen
118 + )
119 +
120 + pytest -vv ${deselect[@]/#/--deselect } ||
121 + die "Tests failed with ${EPYTHON}"
122 +}