public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/
@ 2018-08-14 21:00 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2018-08-14 21:00 UTC (permalink / raw
  To: gentoo-commits

commit:     71763e055bbcdf37d8b18c4795dd6afcf8983e85
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon Jul 23 10:14:22 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 20:45:34 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71763e05

dev-python/pyzmq: Version bump to 17.1.0

Bug: https://bugs.gentoo.org/648088
Closes: https://github.com/gentoo/gentoo/pull/9284
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-python/pyzmq/Manifest                          |  1 +
 .../pyzmq/files/pyzmq-17.1.0-test_message.patch    | 22 +++++++
 dev-python/pyzmq/pyzmq-17.1.0.ebuild               | 68 ++++++++++++++++++++++
 3 files changed, 91 insertions(+)

diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest
index 517f91d5166..050424800a2 100644
--- a/dev-python/pyzmq/Manifest
+++ b/dev-python/pyzmq/Manifest
@@ -1 +1,2 @@
 DIST pyzmq-16.0.2.tar.gz 1026531 BLAKE2B b276fea116d56595ff2aca8a00b2b8918c0170cf1522c4bb457f6bb0d44a13e63de18e4d4f53238a1a5b515986e029ffebdded269f191d62eb36d988b328b402 SHA512 40eaf8ce39db86ab3866890d74b92bd6f20d4ae827828a8772003656d899d10ffcfc222d21f344d9daba390824e6c43b9f34e31beb604ec5ee1ec199165f4b96
+DIST pyzmq-17.1.0.tar.gz 1082716 BLAKE2B eed059cad8cc37e9315d16a43768f531ada1274b46bdf91d2ebe83cd0b4c269ea99a8532e3db6d0ea68be31600cf7d29ea4c4e894aa6d04c61534b11fb816d54 SHA512 7f1975c4d02e7d47577049da8df84753905d01672d5a244cef2e5b05e0b6fdb22e88cbb36f2e59831e95a8224819183d9a82baf1f9d7f599da61bcbfe2fc23d3

diff --git a/dev-python/pyzmq/files/pyzmq-17.1.0-test_message.patch b/dev-python/pyzmq/files/pyzmq-17.1.0-test_message.patch
new file mode 100644
index 00000000000..66d0de75e38
--- /dev/null
+++ b/dev-python/pyzmq/files/pyzmq-17.1.0-test_message.patch
@@ -0,0 +1,22 @@
+Disable hanging test
+Bug: https://github.com/zeromq/pyzmq/issues/1202
+
+Patch by Marius Brehler <marbre@linux.sungazer.de>
+--- pyzmq-17.1.0/zmq/tests/test_message.py
++++ pyzmq-17.1.0/zmq/tests/test_message.py
+@@ -14,6 +14,7 @@ import time
+ from pprint import pprint
+ from unittest import TestCase
+ 
++import pytest
+ import zmq
+ from zmq.tests import BaseZMQTestCase, SkipTest, skip_pypy, PYPY
+ from zmq.utils.strtypes import unicode, bytes, b, u
+@@ -262,6 +263,7 @@ class TestFrame(BaseZMQTestCase):
+             self.assertEqual(s,r)
+         self.assertEqual(s, m.bytes)
+     
++    @pytest.mark.skip("test sometimes hangs")
+     def test_buffer_numpy(self):
+         """test non-copying numpy array messages"""
+         try:

diff --git a/dev-python/pyzmq/pyzmq-17.1.0.ebuild b/dev-python/pyzmq/pyzmq-17.1.0.ebuild
new file mode 100644
index 00000000000..cfedc1d359c
--- /dev/null
+++ b/dev-python/pyzmq/pyzmq-17.1.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit flag-o-matic distutils-r1 toolchain-funcs
+
+DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
+HOMEPAGE="http://www.zeromq.org/bindings:python https://pypi.org/project/pyzmq/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc test"
+
+RDEPEND="
+	>=net-libs/zeromq-4.2.2-r2:=[drafts]
+	dev-python/py[${PYTHON_USEDEP}]
+	dev-python/cffi:=[${PYTHON_USEDEP}]
+	$(python_gen_cond_dep 'dev-python/gevent[${PYTHON_USEDEP}]' python2_7)
+"
+DEPEND="${RDEPEND}
+	dev-python/cython[${PYTHON_USEDEP}]
+	test? (
+		dev-python/pytest[${PYTHON_USEDEP}]
+		$(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' -2)
+		>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
+	)
+	doc? (
+		>=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
+		dev-python/numpydoc[${PYTHON_USEDEP}]
+	)"
+
+PATCHES=( "${FILESDIR}"/${P}-test_message.patch )
+
+python_prepare_all() {
+	# Prevent un-needed download during build
+	sed -e "/'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
+	distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+	tc-export CC
+	append-cppflags -DZMQ_BUILD_DRAFT_API=1
+}
+
+python_compile_all() {
+	use doc && emake -C docs html
+}
+
+python_compile() {
+	esetup.py cython --force
+	python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+	distutils-r1_python_compile
+}
+
+python_test() {
+	${EPYTHON} -m pytest -v "${BUILD_DIR}/lib" || die
+}
+
+python_install_all() {
+	use doc && local HTML_DOCS=( docs/build/html/. )
+	distutils-r1_python_install_all
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/
@ 2020-03-31  1:01 Patrick McLean
  0 siblings, 0 replies; 5+ messages in thread
From: Patrick McLean @ 2020-03-31  1:01 UTC (permalink / raw
  To: gentoo-commits

commit:     5dcf4215b1fe204760ac16c934c11a637e88424e
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Mar 31 01:01:08 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Mar 31 01:01:19 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dcf4215

dev-python/pyzmq-19.0.0: bump, py38, add draft USE flag (bug #703252)

Closes: https://bugs.gentoo.org/703252
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/pyzmq/Manifest                       |   1 +
 dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch | 186 ++++++++++++++++++++++++
 dev-python/pyzmq/metadata.xml                   |   3 +
 dev-python/pyzmq/pyzmq-19.0.0.ebuild            |  61 ++++++++
 4 files changed, 251 insertions(+)

diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest
index 050424800a2..82421bd57a3 100644
--- a/dev-python/pyzmq/Manifest
+++ b/dev-python/pyzmq/Manifest
@@ -1,2 +1,3 @@
 DIST pyzmq-16.0.2.tar.gz 1026531 BLAKE2B b276fea116d56595ff2aca8a00b2b8918c0170cf1522c4bb457f6bb0d44a13e63de18e4d4f53238a1a5b515986e029ffebdded269f191d62eb36d988b328b402 SHA512 40eaf8ce39db86ab3866890d74b92bd6f20d4ae827828a8772003656d899d10ffcfc222d21f344d9daba390824e6c43b9f34e31beb604ec5ee1ec199165f4b96
 DIST pyzmq-17.1.0.tar.gz 1082716 BLAKE2B eed059cad8cc37e9315d16a43768f531ada1274b46bdf91d2ebe83cd0b4c269ea99a8532e3db6d0ea68be31600cf7d29ea4c4e894aa6d04c61534b11fb816d54 SHA512 7f1975c4d02e7d47577049da8df84753905d01672d5a244cef2e5b05e0b6fdb22e88cbb36f2e59831e95a8224819183d9a82baf1f9d7f599da61bcbfe2fc23d3
+DIST pyzmq-19.0.0.tar.gz 1150320 BLAKE2B a2af57b1cb809ab72aff1bbee17a7fff5eeeff90805884542579c7cb58c235f8b257a8724c64f55cc8e8eda4a943ec2f54490d546a74bc1532557c46b420e6d2 SHA512 06a395fee62c78f806c43b07362fe2d4b7ac05813d75d4b983f8eefffbe0ca36f64db1591ead719b2866fcfe0867c919033eca0063ca32529e649cd9790461b1

diff --git a/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch b/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch
new file mode 100644
index 00000000000..f56e7c6d3a5
--- /dev/null
+++ b/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch
@@ -0,0 +1,186 @@
+diff --git a/zmq/tests/test_auth.py b/zmq/tests/test_auth.py
+index 003f171..9d882b6 100644
+--- a/zmq/tests/test_auth.py
++++ b/zmq/tests/test_auth.py
+@@ -191,6 +191,7 @@ class TestThreadAuthentication(BaseAuthTestCase):
+         client.close()
+         server.close()
+ 
++    @pytest.mark.skip("sometimes hangs")
+     def test_curve(self):
+         """threaded auth - CURVE"""
+         self.auth.allow('127.0.0.1')
+@@ -309,6 +310,7 @@ class TestThreadAuthentication(BaseAuthTestCase):
+ 
+ 
+     @skip_pypy
++    @pytest.mark.skip("fails with cffi")
+     def test_curve_user_id(self):
+         """threaded auth - CURVE"""
+         self.auth.allow('127.0.0.1')
+diff --git a/zmq/tests/test_constants.py b/zmq/tests/test_constants.py
+index 6b4d0c9..d527b06 100644
+--- a/zmq/tests/test_constants.py
++++ b/zmq/tests/test_constants.py
+@@ -91,6 +91,7 @@ class TestConstants(TestCase):
+                         self.fail("Shouldn't have: zmq.%s=%s" % (name, value))
+ 
+     @pytest.mark.skipif(not zmq.DRAFT_API, reason="Only test draft API if built with draft API")
++    @pytest.mark.skip("fails with cffi")
+     def test_draft(self):
+         zmq_version = zmq.zmq_version_info()
+         for version, new_names in constant_names.draft_in.items():
+diff --git a/zmq/tests/test_draft.py b/zmq/tests/test_draft.py
+index 5bb9e29..934ed50 100644
+--- a/zmq/tests/test_draft.py
++++ b/zmq/tests/test_draft.py
+@@ -20,6 +20,7 @@ class TestDraftSockets(BaseZMQTestCase):
+         super(TestDraftSockets, self).setUp()
+     
+ 
++    @pytest.mark.skip("fails with cffi")
+     def test_client_server(self):
+         client, server = self.create_bound_pair(zmq.CLIENT, zmq.SERVER)
+         client.send(b'request')
+@@ -29,6 +30,7 @@ class TestDraftSockets(BaseZMQTestCase):
+         reply = self.recv(client)
+         assert reply == b'reply'
+ 
++    @pytest.mark.skip("fails with cffi")
+     def test_radio_dish(self):
+         dish, radio = self.create_bound_pair(zmq.DISH, zmq.RADIO)
+         dish.rcvtimeo = 250
+diff --git a/zmq/tests/test_message.py b/zmq/tests/test_message.py
+index d3a6aa8..9ce622c 100644
+--- a/zmq/tests/test_message.py
++++ b/zmq/tests/test_message.py
+@@ -18,6 +18,7 @@ import zmq
+ from zmq.tests import BaseZMQTestCase, SkipTest, skip_pypy, PYPY
+ from zmq.utils.strtypes import unicode, bytes, b, u
+ 
++import pytest
+ 
+ # some useful constants:
+ 
+@@ -71,7 +72,7 @@ class TestFrame(BaseZMQTestCase):
+             m = zmq.Frame(s)
+             b = m.bytes
+             self.assertEqual(s, m.bytes)
+-            if not PYPY:
++            if not PYPY and False:
+                 # check that it copies
+                 self.assert_(b is not s)
+             # check that it copies only once
+@@ -94,6 +95,7 @@ class TestFrame(BaseZMQTestCase):
+             self.assertEqual(len(s), len(m))
+ 
+     @skip_pypy
++    @pytest.mark.skip("seems to be broken")
+     def test_lifecycle1(self):
+         """Run through a ref counting cycle with a copy."""
+         for i in range(5, 16):  # 32, 64,..., 65536
+@@ -130,6 +132,7 @@ class TestFrame(BaseZMQTestCase):
+             del s
+ 
+     @skip_pypy
++    @pytest.mark.skip("seems to be broken")
+     def test_lifecycle2(self):
+         """Run through a different ref counting cycle with a copy."""
+         for i in range(5, 16):  # 32, 64,..., 65536
+@@ -166,6 +169,7 @@ class TestFrame(BaseZMQTestCase):
+             del s
+     
+     @skip_pypy
++    @pytest.mark.skip("fails with cffi")
+     def test_tracker(self):
+         m = zmq.Frame(b'asdf', copy=False, track=True)
+         self.assertFalse(m.tracker.done)
+@@ -186,6 +190,7 @@ class TestFrame(BaseZMQTestCase):
+         self.assertRaises(ValueError, zmq.MessageTracker, m)
+     
+     @skip_pypy
++    @pytest.mark.skip("fails with cffi")
+     def test_multi_tracker(self):
+         m = zmq.Frame(b'asdf', copy=False, track=True)
+         m2 = zmq.Frame(b'whoda', copy=False, track=True)
+@@ -222,6 +227,7 @@ class TestFrame(BaseZMQTestCase):
+         self.assert_(m.buffer is m.buffer)
+     
+     @skip_pypy
++    @pytest.mark.skip("fails with cffi")
+     def test_memoryview_shape(self):
+         """memoryview shape info"""
+         if sys.version_info < (3,):
+@@ -331,6 +337,7 @@ class TestFrame(BaseZMQTestCase):
+             B = numpy.frombuffer(msg, A.dtype).reshape(A.shape)
+             assert_array_equal(A, B)
+ 
++    @pytest.mark.skip("fails with cffi")
+     def test_frame_more(self):
+         """test Frame.more attribute"""
+         frame = zmq.Frame(b"hello")
+diff --git a/zmq/tests/test_security.py b/zmq/tests/test_security.py
+index b73234d..8fdea48 100644
+--- a/zmq/tests/test_security.py
++++ b/zmq/tests/test_security.py
+@@ -9,6 +9,8 @@ import contextlib
+ import time
+ from threading import Thread
+ 
++import pytest
++
+ import zmq
+ from zmq.tests import (
+     BaseZMQTestCase, SkipTest, PYPY
+@@ -114,6 +116,7 @@ class TestSecurity(BaseZMQTestCase):
+         client.connect("%s:%i" % (iface, port))
+         self.bounce(server, client, False)
+ 
++    @pytest.mark.skip("fails with cffi")
+     def test_plain(self):
+         """test PLAIN authentication"""
+         server = self.socket(zmq.DEALER)
+@@ -201,6 +204,7 @@ class TestSecurity(BaseZMQTestCase):
+         # verify that it is equal to the known public key
+         self.assertEqual(derived_public, public)
+          
++    @pytest.mark.skip("fails with cffi")
+     def test_curve(self):
+         """test CURVE encryption"""
+         server = self.socket(zmq.DEALER)
+diff --git a/zmq/tests/test_socket.py b/zmq/tests/test_socket.py
+index 3046663..dcc66d0 100644
+--- a/zmq/tests/test_socket.py
++++ b/zmq/tests/test_socket.py
+@@ -221,6 +221,7 @@ class TestSocket(BaseZMQTestCase):
+         self.assertEqual(rcvd, [b'b'])
+     
+     @skip_pypy
++    @pytest.mark.skip("test hangs")
+     def test_tracker(self):
+         "test the MessageTracker object for tracking when zmq is done with a buffer"
+         addr = 'tcp://127.0.0.1'
+@@ -363,6 +364,7 @@ class TestSocket(BaseZMQTestCase):
+         s.close()
+         self.assertTrue(s.closed)
+     
++    @pytest.mark.skip("fails with cffi")
+     def test_poll(self):
+         a,b = self.create_bound_pair()
+         tic = time.time()
+@@ -502,6 +504,7 @@ class TestSocket(BaseZMQTestCase):
+         self.assertEqual(events, [])
+ 
+     # Travis can't handle how much memory PyPy uses on this test
++    @pytest.mark.skip("test hangs")
+     @mark.skipif(
+         (
+             pypy and on_travis
+@@ -536,6 +539,7 @@ class TestSocket(BaseZMQTestCase):
+         assert view[0] == byte
+         assert view[-1] == byte
+ 
++    @pytest.mark.skip("fails with cffi")
+     def test_custom_serialize(self):
+         a, b = self.create_bound_pair(zmq.DEALER, zmq.ROUTER)
+         def serialize(msg):

diff --git a/dev-python/pyzmq/metadata.xml b/dev-python/pyzmq/metadata.xml
index 7b2bf120e32..6c1c2af5565 100644
--- a/dev-python/pyzmq/metadata.xml
+++ b/dev-python/pyzmq/metadata.xml
@@ -8,4 +8,7 @@
   <upstream>
     <remote-id type="pypi">pyzmq</remote-id>
   </upstream>
+  <use>
+    <flag name="draft">Enable draft API support</flag>
+  </use>
 </pkgmetadata>

diff --git a/dev-python/pyzmq/pyzmq-19.0.0.ebuild b/dev-python/pyzmq/pyzmq-19.0.0.ebuild
new file mode 100644
index 00000000000..be7f07be845
--- /dev/null
+++ b/dev-python/pyzmq/pyzmq-19.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit flag-o-matic distutils-r1 toolchain-funcs
+
+DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
+HOMEPAGE="https://www.zeromq.org/bindings:python https://pypi.org/project/pyzmq/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc +draft test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	>=net-libs/zeromq-4.2.2-r2:=[drafts]
+	dev-python/py[${PYTHON_USEDEP}]
+	dev-python/cffi:=[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+	dev-python/cython[${PYTHON_USEDEP}]
+	test? (
+		>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
+	)
+	doc? (
+		>=dev-python/sphinx-1.3[${PYTHON_USEDEP}]
+		dev-python/numpydoc[${PYTHON_USEDEP}]
+	)"
+
+PATCHES=(
+	"${FILESDIR}/pyzmq-19.0.0-tests.patch"
+)
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+	"dev-python/numpydoc"
+
+python_prepare_all() {
+	# Prevent un-needed download during build
+	sed -e "/'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
+	# some tests fail with cffi backend
+	rm zmq/tests/asyncio/test_asyncio.py || die
+
+	distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+	tc-export CC
+	append-cppflags -DZMQ_BUILD_DRAFT_API=$(usex draft '1' '0')
+}
+
+python_compile() {
+	esetup.py cython --force
+	distutils-r1_python_compile
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/
@ 2020-11-19 11:30 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-11-19 11:30 UTC (permalink / raw
  To: gentoo-commits

commit:     cee3903a6c800bf09f788d72bc2737309b1edbc4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 19 11:26:04 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 19 11:26:28 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cee3903a

dev-python/pyzmq: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyzmq/Manifest                       |   1 -
 dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch | 186 ------------------------
 dev-python/pyzmq/pyzmq-19.0.1_p20200608.ebuild  |  64 --------
 3 files changed, 251 deletions(-)

diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest
index 20950bd9d59..efb9b0bf0ed 100644
--- a/dev-python/pyzmq/Manifest
+++ b/dev-python/pyzmq/Manifest
@@ -1,3 +1,2 @@
-DIST pyzmq-19.0.1_p20200608.tar.gz 390927 BLAKE2B d70a2f615782cc5a53ed2ffab4d5549bc5d15cc1e0e63f640a357fe8575ca327a5976a3e8b11d97c236a31ca17025f37fe423d166b684b5c4aafc139a0941492 SHA512 7f077ed3858c226eb1e3f5e51dfb5d4b517ec94357b37cc66d17cfe2543786b86627ce7eb4c12785a2709a499af998d02642d972c119a637df3cec5201e909d1
 DIST pyzmq-19.0.2.tar.gz 390927 BLAKE2B d70a2f615782cc5a53ed2ffab4d5549bc5d15cc1e0e63f640a357fe8575ca327a5976a3e8b11d97c236a31ca17025f37fe423d166b684b5c4aafc139a0941492 SHA512 7f077ed3858c226eb1e3f5e51dfb5d4b517ec94357b37cc66d17cfe2543786b86627ce7eb4c12785a2709a499af998d02642d972c119a637df3cec5201e909d1
 DIST pyzmq-20.0.0.gh.tar.gz 393041 BLAKE2B 1f22f556f5d0f2755c2e56411fdb9f583bbdfad6315e4e72fbaa1fb18d0ad5436ee0ee8d17497641421cea3f4e1b53b8ff85bf7ced96c8f1c80db0be901ca3d5 SHA512 30359e501e76d6ec14175622d6c970d9ec0f227b372d2b1c6e6650be812dd47017b797a016f5a2da83f72d00536e64d2f005a38003c9a1b4fbb7266f2640782d

diff --git a/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch b/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch
deleted file mode 100644
index f56e7c6d3a5..00000000000
--- a/dev-python/pyzmq/files/pyzmq-19.0.0-tests.patch
+++ /dev/null
@@ -1,186 +0,0 @@
-diff --git a/zmq/tests/test_auth.py b/zmq/tests/test_auth.py
-index 003f171..9d882b6 100644
---- a/zmq/tests/test_auth.py
-+++ b/zmq/tests/test_auth.py
-@@ -191,6 +191,7 @@ class TestThreadAuthentication(BaseAuthTestCase):
-         client.close()
-         server.close()
- 
-+    @pytest.mark.skip("sometimes hangs")
-     def test_curve(self):
-         """threaded auth - CURVE"""
-         self.auth.allow('127.0.0.1')
-@@ -309,6 +310,7 @@ class TestThreadAuthentication(BaseAuthTestCase):
- 
- 
-     @skip_pypy
-+    @pytest.mark.skip("fails with cffi")
-     def test_curve_user_id(self):
-         """threaded auth - CURVE"""
-         self.auth.allow('127.0.0.1')
-diff --git a/zmq/tests/test_constants.py b/zmq/tests/test_constants.py
-index 6b4d0c9..d527b06 100644
---- a/zmq/tests/test_constants.py
-+++ b/zmq/tests/test_constants.py
-@@ -91,6 +91,7 @@ class TestConstants(TestCase):
-                         self.fail("Shouldn't have: zmq.%s=%s" % (name, value))
- 
-     @pytest.mark.skipif(not zmq.DRAFT_API, reason="Only test draft API if built with draft API")
-+    @pytest.mark.skip("fails with cffi")
-     def test_draft(self):
-         zmq_version = zmq.zmq_version_info()
-         for version, new_names in constant_names.draft_in.items():
-diff --git a/zmq/tests/test_draft.py b/zmq/tests/test_draft.py
-index 5bb9e29..934ed50 100644
---- a/zmq/tests/test_draft.py
-+++ b/zmq/tests/test_draft.py
-@@ -20,6 +20,7 @@ class TestDraftSockets(BaseZMQTestCase):
-         super(TestDraftSockets, self).setUp()
-     
- 
-+    @pytest.mark.skip("fails with cffi")
-     def test_client_server(self):
-         client, server = self.create_bound_pair(zmq.CLIENT, zmq.SERVER)
-         client.send(b'request')
-@@ -29,6 +30,7 @@ class TestDraftSockets(BaseZMQTestCase):
-         reply = self.recv(client)
-         assert reply == b'reply'
- 
-+    @pytest.mark.skip("fails with cffi")
-     def test_radio_dish(self):
-         dish, radio = self.create_bound_pair(zmq.DISH, zmq.RADIO)
-         dish.rcvtimeo = 250
-diff --git a/zmq/tests/test_message.py b/zmq/tests/test_message.py
-index d3a6aa8..9ce622c 100644
---- a/zmq/tests/test_message.py
-+++ b/zmq/tests/test_message.py
-@@ -18,6 +18,7 @@ import zmq
- from zmq.tests import BaseZMQTestCase, SkipTest, skip_pypy, PYPY
- from zmq.utils.strtypes import unicode, bytes, b, u
- 
-+import pytest
- 
- # some useful constants:
- 
-@@ -71,7 +72,7 @@ class TestFrame(BaseZMQTestCase):
-             m = zmq.Frame(s)
-             b = m.bytes
-             self.assertEqual(s, m.bytes)
--            if not PYPY:
-+            if not PYPY and False:
-                 # check that it copies
-                 self.assert_(b is not s)
-             # check that it copies only once
-@@ -94,6 +95,7 @@ class TestFrame(BaseZMQTestCase):
-             self.assertEqual(len(s), len(m))
- 
-     @skip_pypy
-+    @pytest.mark.skip("seems to be broken")
-     def test_lifecycle1(self):
-         """Run through a ref counting cycle with a copy."""
-         for i in range(5, 16):  # 32, 64,..., 65536
-@@ -130,6 +132,7 @@ class TestFrame(BaseZMQTestCase):
-             del s
- 
-     @skip_pypy
-+    @pytest.mark.skip("seems to be broken")
-     def test_lifecycle2(self):
-         """Run through a different ref counting cycle with a copy."""
-         for i in range(5, 16):  # 32, 64,..., 65536
-@@ -166,6 +169,7 @@ class TestFrame(BaseZMQTestCase):
-             del s
-     
-     @skip_pypy
-+    @pytest.mark.skip("fails with cffi")
-     def test_tracker(self):
-         m = zmq.Frame(b'asdf', copy=False, track=True)
-         self.assertFalse(m.tracker.done)
-@@ -186,6 +190,7 @@ class TestFrame(BaseZMQTestCase):
-         self.assertRaises(ValueError, zmq.MessageTracker, m)
-     
-     @skip_pypy
-+    @pytest.mark.skip("fails with cffi")
-     def test_multi_tracker(self):
-         m = zmq.Frame(b'asdf', copy=False, track=True)
-         m2 = zmq.Frame(b'whoda', copy=False, track=True)
-@@ -222,6 +227,7 @@ class TestFrame(BaseZMQTestCase):
-         self.assert_(m.buffer is m.buffer)
-     
-     @skip_pypy
-+    @pytest.mark.skip("fails with cffi")
-     def test_memoryview_shape(self):
-         """memoryview shape info"""
-         if sys.version_info < (3,):
-@@ -331,6 +337,7 @@ class TestFrame(BaseZMQTestCase):
-             B = numpy.frombuffer(msg, A.dtype).reshape(A.shape)
-             assert_array_equal(A, B)
- 
-+    @pytest.mark.skip("fails with cffi")
-     def test_frame_more(self):
-         """test Frame.more attribute"""
-         frame = zmq.Frame(b"hello")
-diff --git a/zmq/tests/test_security.py b/zmq/tests/test_security.py
-index b73234d..8fdea48 100644
---- a/zmq/tests/test_security.py
-+++ b/zmq/tests/test_security.py
-@@ -9,6 +9,8 @@ import contextlib
- import time
- from threading import Thread
- 
-+import pytest
-+
- import zmq
- from zmq.tests import (
-     BaseZMQTestCase, SkipTest, PYPY
-@@ -114,6 +116,7 @@ class TestSecurity(BaseZMQTestCase):
-         client.connect("%s:%i" % (iface, port))
-         self.bounce(server, client, False)
- 
-+    @pytest.mark.skip("fails with cffi")
-     def test_plain(self):
-         """test PLAIN authentication"""
-         server = self.socket(zmq.DEALER)
-@@ -201,6 +204,7 @@ class TestSecurity(BaseZMQTestCase):
-         # verify that it is equal to the known public key
-         self.assertEqual(derived_public, public)
-          
-+    @pytest.mark.skip("fails with cffi")
-     def test_curve(self):
-         """test CURVE encryption"""
-         server = self.socket(zmq.DEALER)
-diff --git a/zmq/tests/test_socket.py b/zmq/tests/test_socket.py
-index 3046663..dcc66d0 100644
---- a/zmq/tests/test_socket.py
-+++ b/zmq/tests/test_socket.py
-@@ -221,6 +221,7 @@ class TestSocket(BaseZMQTestCase):
-         self.assertEqual(rcvd, [b'b'])
-     
-     @skip_pypy
-+    @pytest.mark.skip("test hangs")
-     def test_tracker(self):
-         "test the MessageTracker object for tracking when zmq is done with a buffer"
-         addr = 'tcp://127.0.0.1'
-@@ -363,6 +364,7 @@ class TestSocket(BaseZMQTestCase):
-         s.close()
-         self.assertTrue(s.closed)
-     
-+    @pytest.mark.skip("fails with cffi")
-     def test_poll(self):
-         a,b = self.create_bound_pair()
-         tic = time.time()
-@@ -502,6 +504,7 @@ class TestSocket(BaseZMQTestCase):
-         self.assertEqual(events, [])
- 
-     # Travis can't handle how much memory PyPy uses on this test
-+    @pytest.mark.skip("test hangs")
-     @mark.skipif(
-         (
-             pypy and on_travis
-@@ -536,6 +539,7 @@ class TestSocket(BaseZMQTestCase):
-         assert view[0] == byte
-         assert view[-1] == byte
- 
-+    @pytest.mark.skip("fails with cffi")
-     def test_custom_serialize(self):
-         a, b = self.create_bound_pair(zmq.DEALER, zmq.ROUTER)
-         def serialize(msg):

diff --git a/dev-python/pyzmq/pyzmq-19.0.1_p20200608.ebuild b/dev-python/pyzmq/pyzmq-19.0.1_p20200608.ebuild
deleted file mode 100644
index 9b8e49085f0..00000000000
--- a/dev-python/pyzmq/pyzmq-19.0.1_p20200608.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6..9} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit flag-o-matic distutils-r1 toolchain-funcs
-
-EGIT_COMMIT="dd4dac055152d47c829034224cdecf594c7b3f12"
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://www.zeromq.org/bindings:python
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/${EGIT_COMMIT}.tar.gz
-		-> ${P}.tar.gz"
-S=${WORKDIR}/${PN}-${EGIT_COMMIT}
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~mips ~ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="+draft"
-
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts]
-"
-RDEPEND="${DEPEND}
-	dev-python/py[${PYTHON_USEDEP}]
-	dev-python/cffi:=[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	dev-python/cython[${PYTHON_USEDEP}]
-	test? (
-		>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/pyzmq-19.0.0-tests.patch"
-)
-
-distutils_enable_tests pytest
-distutils_enable_sphinx docs \
-	"dev-python/numpydoc"
-
-python_prepare_all() {
-	# probably broken with new numpy
-	sed -i -e 's:test_buffer_numpy:_&:' zmq/tests/test_message.py || die
-
-	distutils-r1_python_prepare_all
-}
-
-python_configure_all() {
-	tc-export CC
-	append-cppflags -DZMQ_BUILD_DRAFT_API=$(usex draft '1' '0')
-}
-
-python_compile() {
-	esetup.py cython --force
-	distutils-r1_python_compile
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/
@ 2023-05-27  5:32 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2023-05-27  5:32 UTC (permalink / raw
  To: gentoo-commits

commit:     cb34db8c6f877b1239ed40e1bd423561c55cd2c2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 05:21:24 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 27 05:32:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb34db8c

dev-python/pyzmq: Use PEP517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../pyzmq/files/pyzmq-25.1.0-build_ext.patch       | 50 ++++++++++++++++++++++
 dev-python/pyzmq/pyzmq-25.1.0.ebuild               |  7 ++-
 2 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/dev-python/pyzmq/files/pyzmq-25.1.0-build_ext.patch b/dev-python/pyzmq/files/pyzmq-25.1.0-build_ext.patch
new file mode 100644
index 000000000000..491ae6b23ea4
--- /dev/null
+++ b/dev-python/pyzmq/files/pyzmq-25.1.0-build_ext.patch
@@ -0,0 +1,50 @@
+From 24d65e10bee5b68751dc36e2ee7e6d6ed35751e5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 27 May 2023 07:11:24 +0200
+Subject: [PATCH] =?UTF-8?q?Call=20distutils'=20finalize=5Foptions()=20earl?=
+ =?UTF-8?q?y=20to=20fix=20build=5Fext=20-j=E2=80=A6?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Call the `finalize_options()` method of overridden distutils commands
+before running the `configure` command, in order to fix errors due
+to unconfigured `--jobs` option.  This can be reproduced by running:
+
+    $ python setup.py build_ext -j12
+    […]
+    error: '<' not supported between instances of 'str' and 'int'
+
+    Fatal: Falling back on bundled libzmq, but config has explicitly prohibited building the libzmq extension.
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index c52723d1..a4f8b4e3 100755
+--- a/setup.py
++++ b/setup.py
+@@ -1107,9 +1107,9 @@ class CheckingBuildExt(build_ext):
+         patch_lib_paths(ext_path, self.compiler.library_dirs)
+ 
+     def finalize_options(self):
++        super().finalize_options()
+         # check version, to prevent confusing undefined constant errors
+         self.distribution.run_command("configure")
+-        return super().finalize_options()
+ 
+ 
+ class ConstantsCommand(Command):
+@@ -1258,8 +1258,8 @@ else:
+             patch_lib_paths(ext_path, self.compiler.library_dirs)
+ 
+         def finalize_options(self):
++            super().finalize_options()
+             self.distribution.run_command("configure")
+-            return super().finalize_options()
+ 
+     cmdclass["cython"] = CythonCommand
+     cmdclass["build_ext"] = zbuild_ext
+-- 
+2.40.1
+

diff --git a/dev-python/pyzmq/pyzmq-25.1.0.ebuild b/dev-python/pyzmq/pyzmq-25.1.0.ebuild
index 6041abf2a4db..2c1cdd0b2335 100644
--- a/dev-python/pyzmq/pyzmq-25.1.0.ebuild
+++ b/dev-python/pyzmq/pyzmq-25.1.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_EXT=1
 # TODO: Find out exactly where this error comes from
 # error: '<' not supported between instances of 'str' and 'int'
-#DISTUTILS_USE_PEP517=setuptools
+DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="threads(+)"
 
@@ -52,6 +52,9 @@ BDEPEND="
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-23.2.0-libdir.patch
+	# fix build_ext -j... invocation used by PEP517 build
+	# https://github.com/zeromq/pyzmq/pull/1872
+	"${FILESDIR}"/${P}-build_ext.patch
 )
 
 EPYTEST_DESELECT=(
@@ -88,6 +91,6 @@ python_prepare_all() {
 }
 
 python_test() {
-	cd "${BUILD_DIR}/lib" || die
+	cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
 	epytest -p no:flaky
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/
@ 2024-11-13  6:55 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2024-11-13  6:55 UTC (permalink / raw
  To: gentoo-commits

commit:     ad7e221f179472d5ada264a2e253938e152ad400
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 06:07:17 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 06:55:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad7e221f

dev-python/pyzmq: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyzmq/Manifest                        |  5 --
 dev-python/pyzmq/files/pyzmq-23.2.0-libdir.patch | 11 ---
 dev-python/pyzmq/files/pyzmq-26.0.3-gcc14.patch  | 53 --------------
 dev-python/pyzmq/pyzmq-25.1.2.ebuild             | 92 ------------------------
 dev-python/pyzmq/pyzmq-26.0.2.ebuild             | 87 ----------------------
 dev-python/pyzmq/pyzmq-26.0.3.ebuild             | 92 ------------------------
 dev-python/pyzmq/pyzmq-26.1.0.ebuild             | 80 ---------------------
 dev-python/pyzmq/pyzmq-26.1.1.ebuild             | 80 ---------------------
 8 files changed, 500 deletions(-)

diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest
index e13ae5564ea9..3baf46d72a72 100644
--- a/dev-python/pyzmq/Manifest
+++ b/dev-python/pyzmq/Manifest
@@ -1,6 +1 @@
-DIST pyzmq-25.1.2.gh.tar.gz 391272 BLAKE2B 80814704e7ea08d407859c1d71338f6ea283efcd1f3994155334aa5b60c4b6cd89167de8c78d19f8efdbeb5f4071f7b5954ea911eb6e7fbb48a0087b86579cab SHA512 b146a6dbce7cbbe2eb1da7ebd64e463067354f1566cdb4ff634b59bbb6d65e16263b6acb2d101a4ea53f870be5c753c9a12f9cc37bc5a81236681ea4fda6c56b
-DIST pyzmq-26.0.2.gh.tar.gz 267895 BLAKE2B c71a0149cb6c596dfcbc760376aa14afa69bd927fcc739698f7d2ea44579dc8437ae605745b383a9b317ff66c092a4f963671e7933cf19f3f73acac16ac06daa SHA512 5772743e71810f9a0c332dcf16f04237eeb0a34ef2efdd22b63258ebe93e6b493a79845090e677a33582a9a80e7bee773160ec7ecfdaf240b655f3819e5b67a5
-DIST pyzmq-26.0.3.gh.tar.gz 268927 BLAKE2B 7504a45776e8c618833702563b50f672a3ecabb3353551ea61d2d2343dd9e955d1d2938046c2f90d115255482b9b6b2c0f1817b238e591b9319ac92a4341c04a SHA512 f4a32164daf9d9521be83008a94089406078779b9e0e56812a826df1fb295cc03781566825697313aa0c2b36b85b0bb760b8fb90959a856a0542b9072cde78c9
-DIST pyzmq-26.1.0.gh.tar.gz 272153 BLAKE2B d99bbdabfb93641361daadbe1ee8d4e5c578ef9faabf4c0457078082bb77d094040da43396e34d48cb2341491460ff39ebc8e5f3a19be2172e73df9fe6655e5c SHA512 288b6799cdc2b77f2972e928558ae74871054809075b534f33af876983da3b1cea35d6fd0fbfcb7caa8f3a458ae00da10935e31791c5c650c5589bfd5db577b0
-DIST pyzmq-26.1.1.gh.tar.gz 272236 BLAKE2B 49ec3c97b3d1b3e943522891ef067c6e4fdd1f5a2fd46f8c2927ba529f97ee8d177253f1a76fc1dd45813832827c8b35a1fc8fba42cf53eac37b59ec40a39251 SHA512 6e9ff9c021696935cb0513edc5eef8a130c56f3c95156a9805acfc174438fab5aaa356779308791b53dc01a166d41e094102ff445959515739102258c8d4e0de
 DIST pyzmq-26.2.0.gh.tar.gz 272883 BLAKE2B a43365afdc49ae845f1e6611bd463e90dbd133867d82c2bfdd3d9431238f68d80bb8073a4406110a91bf6f72cc6d66987a477673277c2b099d74c78f24b49d81 SHA512 ef069f5e71ad1cd39fdf4d5c2ede411752685af2d69ea8ad477c70e51ab011ece492ab25d06feefa7b7c7daefc5fc822d0f87199df2216865ece254c5724c423

diff --git a/dev-python/pyzmq/files/pyzmq-23.2.0-libdir.patch b/dev-python/pyzmq/files/pyzmq-23.2.0-libdir.patch
deleted file mode 100644
index 66d16f24ad73..000000000000
--- a/dev-python/pyzmq/files/pyzmq-23.2.0-libdir.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-https://bugs.gentoo.org/854627
---- a/setup.py
-+++ b/setup.py
-@@ -275,7 +275,6 @@ def settings_from_prefix(prefix=None):
-                 and platform.architecture()[0] == '64bit'
-             ):
-                 settings['library_dirs'] += [pjoin(prefix, 'lib/amd64')]
--            settings['library_dirs'] += [pjoin(prefix, 'lib')]
-         else:
-             # If prefix is not explicitly set, pull it from pkg-config by default.
-             # this is probably applicable across platforms, but i don't have

diff --git a/dev-python/pyzmq/files/pyzmq-26.0.3-gcc14.patch b/dev-python/pyzmq/files/pyzmq-26.0.3-gcc14.patch
deleted file mode 100644
index 8d87af8b7289..000000000000
--- a/dev-python/pyzmq/files/pyzmq-26.0.3-gcc14.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From bc5e214e957eb96c7e23b2c46a075e3850805ff1 Mon Sep 17 00:00:00 2001
-From: Min RK <benjaminrk@gmail.com>
-Date: Thu, 16 May 2024 08:34:51 +0200
-Subject: [PATCH 1/2] cffi: fix type of hint mutex pointer
-
----
- zmq/backend/cffi/_cdefs.h | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/zmq/backend/cffi/_cdefs.h b/zmq/backend/cffi/_cdefs.h
-index 6c9a06558..cf27f5b4e 100644
---- a/zmq/backend/cffi/_cdefs.h
-+++ b/zmq/backend/cffi/_cdefs.h
-@@ -75,13 +75,14 @@ void * malloc(size_t sz);
- void free(void *p);
- int get_ipc_path_max_len(void);
- 
-+typedef ... mutex_t;
-+
- typedef struct _zhint {
-     void *sock;
--    void *mutex;
-+    mutex_t *mutex;
-     size_t id;
- } zhint;
- 
--typedef ... mutex_t;
- mutex_t* mutex_allocate();
- 
- int zmq_wrap_msg_init_data(zmq_msg_t *msg,
-
-From b180ebc07fc04b0576fef50c3969fd48fa58694d Mon Sep 17 00:00:00 2001
-From: Min RK <benjaminrk@gmail.com>
-Date: Sun, 26 May 2024 00:29:06 +0200
-Subject: [PATCH 2/2] maybe it needs to specify struct
-
----
- zmq/backend/cffi/_cdefs.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/zmq/backend/cffi/_cdefs.h b/zmq/backend/cffi/_cdefs.h
-index cf27f5b4e..7833b9b26 100644
---- a/zmq/backend/cffi/_cdefs.h
-+++ b/zmq/backend/cffi/_cdefs.h
-@@ -75,7 +75,7 @@ void * malloc(size_t sz);
- void free(void *p);
- int get_ipc_path_max_len(void);
- 
--typedef ... mutex_t;
-+typedef struct { ...; } mutex_t;
- 
- typedef struct _zhint {
-     void *sock;

diff --git a/dev-python/pyzmq/pyzmq-25.1.2.ebuild b/dev-python/pyzmq/pyzmq-25.1.2.ebuild
deleted file mode 100644
index f2cdc2acb62e..000000000000
--- a/dev-python/pyzmq/pyzmq-25.1.2.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1
-
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://zeromq.org/languages/python/
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/
-"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-IUSE="drafts"
-
-# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled.
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts=]
-"
-# It uses cffi backend for pypy, cython backend for cpython
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	$(python_gen_cond_dep '
-		dev-python/cython[${PYTHON_USEDEP}]
-	' 'python*')
-	test? (
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-23.2.0-libdir.patch
-)
-
-distutils_enable_tests pytest
-# TODO: Package enum_tools
-# distutils_enable_sphinx docs/source \
-# 	dev-python/numpydoc \
-# 	dev-python/sphinx-rtd-theme \
-# 	dev-python/myst-parser
-
-python_prepare_all() {
-	export ZMQ_DRAFT_API=$(usex drafts '1' '0')
-	export ZMQ_PREFIX="${EPREFIX}/usr"
-	distutils-r1_python_prepare_all
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# TODO
-		zmq/tests/test_auth.py
-		zmq/tests/test_cython.py
-		zmq/tests/test_zmqstream.py
-
-		# swap thrashing on low-mem hosts, per Debian:
-		# https://salsa.debian.org/python-team/packages/pyzmq/-/blob/master/debian/patches/skip_large_send
-		zmq/tests/test_socket.py::TestSocket::test_large_send
-	)
-	local EPYTEST_IGNORE=(
-		# Avoid dependency on mypy
-		zmq/tests/test_mypy.py
-	)
-
-	case ${EPYTHON} in
-		pypy3)
-			EPYTEST_DESELECT+=(
-				# not implemented in cffi variant?
-				zmq/tests/test_draft.py::TestDraftSockets
-			)
-	esac
-
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
-	epytest -p asyncio -p rerunfailures
-}

diff --git a/dev-python/pyzmq/pyzmq-26.0.2.ebuild b/dev-python/pyzmq/pyzmq-26.0.2.ebuild
deleted file mode 100644
index f57e936055b3..000000000000
--- a/dev-python/pyzmq/pyzmq-26.0.2.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=scikit-build-core
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1
-
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://zeromq.org/languages/python/
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/
-"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-IUSE="drafts"
-
-# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled.
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts=]
-"
-# It uses cffi backend for pypy, cython backend for cpython
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	dev-python/packaging[${PYTHON_USEDEP}]
-	$(python_gen_cond_dep '
-		>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
-	' 'python*')
-	test? (
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-# TODO: Package enum_tools
-# distutils_enable_sphinx docs/source \
-# 	dev-python/numpydoc \
-# 	dev-python/sphinx-rtd-theme \
-# 	dev-python/myst-parser
-
-src_configure() {
-	DISTUTILS_ARGS=(
-		-DZMQ_DRAFT_API="$(usex drafts)"
-	)
-}
-
-src_test() {
-	# need to move them around to make EPYTEST_IGNORE work cleanly
-	# with tests-in-package and extension modules
-	mv zmq/tests . || die
-	rm -r zmq || die
-	distutils-r1_src_test
-}
-
-python_test() {
-	local EPYTEST_IGNORE=(
-		# Avoid dependency on mypy
-		tests/test_mypy.py
-	)
-
-	case ${EPYTHON} in
-		pypy3)
-			EPYTEST_DESELECT+=(
-				# not implemented in cffi variant?
-				tests/test_draft.py::TestDraftSockets
-			)
-	esac
-
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	# avoid large to reduce memory consumption
-	epytest -p asyncio -p rerunfailures tests -m "not large"
-}

diff --git a/dev-python/pyzmq/pyzmq-26.0.3.ebuild b/dev-python/pyzmq/pyzmq-26.0.3.ebuild
deleted file mode 100644
index d687f53070e1..000000000000
--- a/dev-python/pyzmq/pyzmq-26.0.3.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=scikit-build-core
-PYTHON_COMPAT=( pypy3 python3_{10..13} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1
-
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://zeromq.org/languages/python/
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/
-"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~m68k ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-IUSE="drafts"
-
-# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled.
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts=]
-"
-# It uses cffi backend for pypy, cython backend for cpython
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	dev-python/packaging[${PYTHON_USEDEP}]
-	$(python_gen_cond_dep '
-		>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
-	' 'python*')
-	test? (
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-# TODO: Package enum_tools
-# distutils_enable_sphinx docs/source \
-# 	dev-python/numpydoc \
-# 	dev-python/sphinx-rtd-theme \
-# 	dev-python/myst-parser
-
-PATCHES=(
-	# https://github.com/zeromq/pyzmq/pull/1990
-	"${FILESDIR}/${P}-gcc14.patch"
-)
-
-src_configure() {
-	DISTUTILS_ARGS=(
-		-DZMQ_DRAFT_API="$(usex drafts)"
-	)
-}
-
-src_test() {
-	# need to move them around to make EPYTEST_IGNORE work cleanly
-	# with tests-in-package and extension modules
-	mv zmq/tests . || die
-	rm -r zmq || die
-	distutils-r1_src_test
-}
-
-python_test() {
-	local EPYTEST_IGNORE=(
-		# Avoid dependency on mypy
-		tests/test_mypy.py
-	)
-
-	case ${EPYTHON} in
-		pypy3)
-			EPYTEST_DESELECT+=(
-				# not implemented in cffi variant?
-				tests/test_draft.py::TestDraftSockets
-			)
-	esac
-
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	# avoid large to reduce memory consumption
-	epytest -p asyncio -p rerunfailures tests -m "not large"
-}

diff --git a/dev-python/pyzmq/pyzmq-26.1.0.ebuild b/dev-python/pyzmq/pyzmq-26.1.0.ebuild
deleted file mode 100644
index 360f14ac69ec..000000000000
--- a/dev-python/pyzmq/pyzmq-26.1.0.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=scikit-build-core
-PYTHON_COMPAT=( pypy3 python3_{10..13} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1
-
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://zeromq.org/languages/python/
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/
-"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-IUSE="drafts"
-
-# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled.
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts=]
-"
-# It uses cffi backend for pypy, cython backend for cpython
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	dev-python/packaging[${PYTHON_USEDEP}]
-	$(python_gen_cond_dep '
-		>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
-	' 'python*')
-	test? (
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-# TODO: Package enum_tools
-# distutils_enable_sphinx docs/source \
-# 	dev-python/numpydoc \
-# 	dev-python/sphinx-rtd-theme \
-# 	dev-python/myst-parser
-
-src_configure() {
-	DISTUTILS_ARGS=(
-		-DZMQ_DRAFT_API="$(usex drafts)"
-	)
-}
-
-python_test() {
-	local EPYTEST_IGNORE=(
-		# Avoid dependency on mypy
-		tests/test_mypy.py
-	)
-
-	case ${EPYTHON} in
-		pypy3)
-			EPYTEST_DESELECT+=(
-				# not implemented in cffi variant?
-				tests/test_draft.py::TestDraftSockets
-			)
-	esac
-
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	rm -rf zmq || die
-	# avoid large to reduce memory consumption
-	epytest -p asyncio -p rerunfailures tests -m "not large"
-}

diff --git a/dev-python/pyzmq/pyzmq-26.1.1.ebuild b/dev-python/pyzmq/pyzmq-26.1.1.ebuild
deleted file mode 100644
index 360f14ac69ec..000000000000
--- a/dev-python/pyzmq/pyzmq-26.1.1.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=scikit-build-core
-PYTHON_COMPAT=( pypy3 python3_{10..13} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1
-
-DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library"
-HOMEPAGE="
-	https://zeromq.org/languages/python/
-	https://pypi.org/project/pyzmq/
-	https://github.com/zeromq/pyzmq/
-"
-SRC_URI="
-	https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
-IUSE="drafts"
-
-# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled.
-DEPEND="
-	>=net-libs/zeromq-4.2.2-r2:=[drafts=]
-"
-# It uses cffi backend for pypy, cython backend for cpython
-RDEPEND="
-	${DEPEND}
-"
-BDEPEND="
-	dev-python/packaging[${PYTHON_USEDEP}]
-	$(python_gen_cond_dep '
-		>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
-	' 'python*')
-	test? (
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-		>=dev-python/tornado-5.0.2[${PYTHON_USEDEP}]
-	)
-"
-
-distutils_enable_tests pytest
-# TODO: Package enum_tools
-# distutils_enable_sphinx docs/source \
-# 	dev-python/numpydoc \
-# 	dev-python/sphinx-rtd-theme \
-# 	dev-python/myst-parser
-
-src_configure() {
-	DISTUTILS_ARGS=(
-		-DZMQ_DRAFT_API="$(usex drafts)"
-	)
-}
-
-python_test() {
-	local EPYTEST_IGNORE=(
-		# Avoid dependency on mypy
-		tests/test_mypy.py
-	)
-
-	case ${EPYTHON} in
-		pypy3)
-			EPYTEST_DESELECT+=(
-				# not implemented in cffi variant?
-				tests/test_draft.py::TestDraftSockets
-			)
-	esac
-
-	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-	rm -rf zmq || die
-	# avoid large to reduce memory consumption
-	epytest -p asyncio -p rerunfailures tests -m "not large"
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-11-13  6:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-31  1:01 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyzmq/, dev-python/pyzmq/files/ Patrick McLean
  -- strict thread matches above, loose matches on Subject: below --
2024-11-13  6:55 Michał Górny
2023-05-27  5:32 Michał Górny
2020-11-19 11:30 Michał Górny
2018-08-14 21:00 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox