public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/, dev-python/ipyparallel/files/
@ 2020-08-07  4:53 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2020-08-07  4:53 UTC (permalink / raw
  To: gentoo-commits

commit:     9e3641c895b7a21aeacf3b02be50a5647f6f478a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  7 04:33:15 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug  7 04:53:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e3641c8

dev-python/ipyparallel: Remove old

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

 dev-python/ipyparallel/Manifest                    |  1 -
 .../ipyparallel-6.2.3-disable-broken-test.patch    | 28 --------
 dev-python/ipyparallel/ipyparallel-6.2.3.ebuild    | 76 ----------------------
 3 files changed, 105 deletions(-)

diff --git a/dev-python/ipyparallel/Manifest b/dev-python/ipyparallel/Manifest
index abcf93dbc6f..bdce308ec70 100644
--- a/dev-python/ipyparallel/Manifest
+++ b/dev-python/ipyparallel/Manifest
@@ -1,2 +1 @@
-DIST ipyparallel-6.2.3.tar.gz 2371030 BLAKE2B 73f96bbed280def33ae243e592ecf2e298afe92287cf3a7edb966859c38c6dcb1f1a43082ab83907aa00e06d571f4b750df28e6885a1c2d1fd1489fd4472a7fc SHA512 ddf479a7776c2ca9fd37aa5b7dd402c136ce62a479333f5f56dce413649f9b928daed56c173ad5325268eaa58667d611257b20c8269899cc06ae2829f973b4c1
 DIST ipyparallel-6.3.0.tar.gz 2380153 BLAKE2B b8312102e1d2b5fc963491ebe8530e2fd73e9f941f7912fbc72a8db51e7255f5cac95a853d15a57e384926ab1aff27f2a3ad13cc45130a8b612be5dc623538ab SHA512 fe621854b9cc3e5f88aeca2b06b63bb689dd2feee0da451a0a90800d8832f4b44b23bb9a15033029cc33179276f31e982a10fc7540e6d13b04f15d96c348a295

diff --git a/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch b/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch
deleted file mode 100644
index b578cd7f73e..00000000000
--- a/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/ipyparallel/tests/test_util.py b/ipyparallel/tests/test_util.py
-index 06fde46..e685a88 100644
---- a/ipyparallel/tests/test_util.py
-+++ b/ipyparallel/tests/test_util.py
-@@ -3,7 +3,8 @@ from ipyparallel import util
- from jupyter_client.localinterfaces import localhost, public_ips
- 
- 
--def test_disambiguate_ip():
-+# This test is broken in gentoo's testing environment
-+def xtest_disambiguate_ip():
-     # garbage in, garbage out
-     public_ip = public_ips()[0]
-     assert util.disambiguate_ip_address('garbage') == 'garbage'
-diff --git a/ipyparallel/tests/test_view.py b/ipyparallel/tests/test_view.py
-index 45cb669..dd335b1 100644
---- a/ipyparallel/tests/test_view.py
-+++ b/ipyparallel/tests/test_view.py
-@@ -823,7 +823,8 @@ class TestView(ClusterTestCase):
-         assert view.apply_sync(find_ipython)
- 
-     @skip_without('cloudpickle')
--    def test_use_cloudpickle(self):
-+    # Broken on Gentoo
-+    def xtest_use_cloudpickle(self):
-         view = self.client[:]
-         view['_a'] = 'engine'
-         sys.modules['__main__']._a = 'client'

diff --git a/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild b/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild
deleted file mode 100644
index 074fd315ca0..00000000000
--- a/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7} )
-PYTHON_REQ_USE="threads(+)"
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
-inherit distutils-r1 eutils
-
-DESCRIPTION="Interactive Parallel Computing with IPython"
-HOMEPAGE="https://ipyparallel.readthedocs.io/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 ~arm64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-# About tests and tornado
-# Upstreams claims to work fine with tornado 5, and it's indeed possible to
-# launch a cluster with tornado 5 installed, but tests definitely don't run with
-# tornado 5 installed. Upstreams CI runs with tornado 4. This is why we limit
-# ourselves to <tornado-5 when running tests.
-
-RDEPEND="
-	dev-python/decorator[${PYTHON_USEDEP}]
-	dev-python/ipykernel[${PYTHON_USEDEP}]
-	dev-python/ipython[${PYTHON_USEDEP}]
-	dev-python/ipython_genutils[${PYTHON_USEDEP}]
-	dev-python/jupyter_client[${PYTHON_USEDEP}]
-	dev-python/python-dateutil[${PYTHON_USEDEP}]
-	>=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}]
-	www-servers/tornado[${PYTHON_USEDEP}]
-	"
-DEPEND="${RDEPEND}
-	dev-python/setuptools[${PYTHON_USEDEP}]
-	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
-	test? (
-		dev-python/ipython[test]
-		dev-python/mock[${PYTHON_USEDEP}]
-		dev-python/pytest[${PYTHON_USEDEP}]
-		dev-python/testpath[${PYTHON_USEDEP}]
-		<www-servers/tornado-5
-	)
-	"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-6.2.3-disable-broken-test.patch"
-)
-
-python_prepare_all() {
-	# Prevent un-needed download during build
-	if use doc; then
-		sed -e "/^    'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
-	fi
-
-	distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
-	if use doc; then
-		emake -C docs html
-		HTML_DOCS=( docs/build/html/. )
-	fi
-}
-
-python_test() {
-	pytest -vs ipyparallel/tests || die
-}
-
-pkg_postinst() {
-	optfeature "Jupyter Notebook integration" dev-python/notebook
-}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/, dev-python/ipyparallel/files/
@ 2022-06-28  9:31 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2022-06-28  9:31 UTC (permalink / raw
  To: gentoo-commits

commit:     c31e15861d20358500ad591cf46999c4424ac13a
Author:     matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Sun Jun 26 23:31:53 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 09:30:08 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c31e1586

dev-python/ipyparallel: increase timeouts for new tests in 8.3.0

Bug: https://bugs.gentoo.org/834198
Signed-off-by: matoro <matoro <AT> users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/26088
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...pyparallel-8.3.0-additional-test-timeouts.patch | 46 ++++++++++++++++++++++
 dev-python/ipyparallel/ipyparallel-8.3.0.ebuild    |  1 +
 dev-python/ipyparallel/ipyparallel-8.4.0.ebuild    |  1 +
 dev-python/ipyparallel/ipyparallel-8.4.1.ebuild    |  1 +
 4 files changed, 49 insertions(+)

diff --git a/dev-python/ipyparallel/files/ipyparallel-8.3.0-additional-test-timeouts.patch b/dev-python/ipyparallel/files/ipyparallel-8.3.0-additional-test-timeouts.patch
new file mode 100644
index 000000000000..22b2910d4d10
--- /dev/null
+++ b/dev-python/ipyparallel/files/ipyparallel-8.3.0-additional-test-timeouts.patch
@@ -0,0 +1,46 @@
+https://bugs.gentoo.org/834198
+
+diff --git a/ipyparallel/tests/test_view.py b/ipyparallel/tests/test_view.py
+index 5b5ca41..4c04d02 100644
+--- a/ipyparallel/tests/test_view.py
++++ b/ipyparallel/tests/test_view.py
+@@ -628,7 +628,7 @@ class TestView(ClusterTestCase):
+         """exceptions in execute requests raise appropriately"""
+         view = self.client[-1]
+         ar = view.execute("1/0")
+-        self.assertRaisesRemote(ZeroDivisionError, ar.get, 2)
++        self.assertRaisesRemote(ZeroDivisionError, ar.get, 20)
+ 
+     def test_remoteerror_render_exception(self):
+         """RemoteErrors get nice tracebacks"""
+@@ -637,7 +637,7 @@ class TestView(ClusterTestCase):
+         ip = get_ipython()
+         ip.user_ns['ar'] = ar
+         with capture_output() as io:
+-            ip.run_cell("ar.get(2)")
++            ip.run_cell("ar.get(20)")
+ 
+         self.assertTrue('ZeroDivisionError' in io.stdout, io.stdout)
+ 
+@@ -649,7 +649,7 @@ class TestView(ClusterTestCase):
+         ip.user_ns['ar'] = ar
+ 
+         with capture_output() as io:
+-            ip.run_cell("ar.get(2)")
++            ip.run_cell("ar.get(20)")
+ 
+         count = min(error.CompositeError.tb_limit, len(view))
+ 
+@@ -689,10 +689,10 @@ class TestView(ClusterTestCase):
+         view = self.client[-1]
+         ar = view.execute("%pylab inline")
+         # at least check if this raised:
+-        reply = ar.get(5)
++        reply = ar.get(50)
+         # include imports, in case user config
+         ar = view.execute("plot(rand(100))", silent=False)
+-        reply = ar.get(5)
++        reply = ar.get(50)
+         assert ar.wait_for_output(5)
+         self.assertEqual(len(reply.outputs), 1)
+         output = reply.outputs[0]

diff --git a/dev-python/ipyparallel/ipyparallel-8.3.0.ebuild b/dev-python/ipyparallel/ipyparallel-8.3.0.ebuild
index 0b986b8cdac3..1128874fd260 100644
--- a/dev-python/ipyparallel/ipyparallel-8.3.0.ebuild
+++ b/dev-python/ipyparallel/ipyparallel-8.3.0.ebuild
@@ -48,6 +48,7 @@ distutils_enable_tests pytest
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch
+	"${FILESDIR}"/${PN}-8.3.0-additional-test-timeouts.patch
 )
 
 src_configure() {

diff --git a/dev-python/ipyparallel/ipyparallel-8.4.0.ebuild b/dev-python/ipyparallel/ipyparallel-8.4.0.ebuild
index 1a3d355d160d..238bb4888e55 100644
--- a/dev-python/ipyparallel/ipyparallel-8.4.0.ebuild
+++ b/dev-python/ipyparallel/ipyparallel-8.4.0.ebuild
@@ -52,6 +52,7 @@ distutils_enable_tests pytest
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch
+	"${FILESDIR}"/${PN}-8.3.0-additional-test-timeouts.patch
 )
 
 src_configure() {

diff --git a/dev-python/ipyparallel/ipyparallel-8.4.1.ebuild b/dev-python/ipyparallel/ipyparallel-8.4.1.ebuild
index 1a3d355d160d..238bb4888e55 100644
--- a/dev-python/ipyparallel/ipyparallel-8.4.1.ebuild
+++ b/dev-python/ipyparallel/ipyparallel-8.4.1.ebuild
@@ -52,6 +52,7 @@ distutils_enable_tests pytest
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch
+	"${FILESDIR}"/${PN}-8.3.0-additional-test-timeouts.patch
 )
 
 src_configure() {


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

* [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/, dev-python/ipyparallel/files/
@ 2023-11-20 15:02 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2023-11-20 15:02 UTC (permalink / raw
  To: gentoo-commits

commit:     35d282e066e7489afcd0e417a7bca0f99bfcd89f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 15:01:30 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 15:02:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35d282e0

dev-python/ipyparallel: Enable pypy3

Sponsored-by: Ex Makhina, Inc. <info-gentoo <AT> exmakhina.com>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../files/ipyparallel-8.6.1-pypy310.patch          | 32 ++++++++++++++++++++++
 dev-python/ipyparallel/ipyparallel-8.6.1.ebuild    |  4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch b/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch
new file mode 100644
index 000000000000..fae998d51972
--- /dev/null
+++ b/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch
@@ -0,0 +1,32 @@
+From 401980b2a79ef15cc3b35fad51163339c8654751 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 20 Nov 2023 15:45:04 +0100
+Subject: [PATCH] Use pre-3.10 serialization code on PyPy3.10
+
+The new serialization code for Python 3.10+ does not seem to work
+on PyPy3.10 7.3.13, as it causes:
+
+    ValueError: no signature found for builtin type <class 'code'>
+
+Switch back to the old code if PyPy is used, at least for the time
+being.  With this change, the test suite passes on PyPy3.10.
+
+Fixes #845
+---
+ ipyparallel/serialize/codeutil.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/ipyparallel/serialize/codeutil.py b/ipyparallel/serialize/codeutil.py
+index 2d3acfa2a..80d107765 100644
+--- a/ipyparallel/serialize/codeutil.py
++++ b/ipyparallel/serialize/codeutil.py
+@@ -27,7 +27,8 @@ def code_ctor(*args):
+ }
+ # pass every supported arg to the code constructor
+ # this should be more forward-compatible
+-if sys.version_info >= (3, 10):
++# (broken on pypy: https://github.com/ipython/ipyparallel/issues/845)
++if sys.version_info >= (3, 10) and not hasattr(sys, "pypy_version_info"):
+     _code_attr_names = tuple(
+         _code_attr_map.get(name, name)
+         for name, param in inspect.signature(types.CodeType).parameters.items()

diff --git a/dev-python/ipyparallel/ipyparallel-8.6.1.ebuild b/dev-python/ipyparallel/ipyparallel-8.6.1.ebuild
index ced2606fd50e..96ee69b90056 100644
--- a/dev-python/ipyparallel/ipyparallel-8.6.1.ebuild
+++ b/dev-python/ipyparallel/ipyparallel-8.6.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 optfeature pypi
@@ -51,6 +51,8 @@ distutils_enable_tests pytest
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch
+	# https://github.com/ipython/ipyparallel/pull/846
+	"${FILESDIR}"/${P}-pypy310.patch
 )
 
 src_configure() {


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

end of thread, other threads:[~2023-11-20 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20 15:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/, dev-python/ipyparallel/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2022-06-28  9:31 Sam James
2020-08-07  4:53 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