public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/files/, dev-python/ipyparallel/
@ 2019-05-01 16:48 Virgil Dupras
  0 siblings, 0 replies; 3+ messages in thread
From: Virgil Dupras @ 2019-05-01 16:48 UTC (permalink / raw
  To: gentoo-commits

commit:     ccf95cde7832367d8a56430af1744a87376dfde7
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Wed May  1 16:17:06 2019 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Wed May  1 16:44:39 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf95cde

dev-python/ipyparallel: bump to 6.2.3

Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 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 insertions(+)

diff --git a/dev-python/ipyparallel/Manifest b/dev-python/ipyparallel/Manifest
index e1d2b7893b9..229e61c6a6e 100644
--- a/dev-python/ipyparallel/Manifest
+++ b/dev-python/ipyparallel/Manifest
@@ -1 +1,2 @@
 DIST ipyparallel-6.0.2.tar.gz 2366627 BLAKE2B 333d6043c1e3635a37ebd464a5eb6bd0d21d0815abf106f8a7dd138128790d89ccb856dd981c281ce023cded589e6352fd6cd48efab61c8955abfbfea157eb35 SHA512 2dab781eac81bb3c2d4eedff9689448ed8d4317b47a1e8110a0b16147f986428f6fefe13acd12ee8604ec7775aee46a5f62c7d6a676bda7f8d3d39d95d90f28d
+DIST ipyparallel-6.2.3.tar.gz 2371030 BLAKE2B 73f96bbed280def33ae243e592ecf2e298afe92287cf3a7edb966859c38c6dcb1f1a43082ab83907aa00e06d571f4b750df28e6885a1c2d1fd1489fd4472a7fc SHA512 ddf479a7776c2ca9fd37aa5b7dd402c136ce62a479333f5f56dce413649f9b928daed56c173ad5325268eaa58667d611257b20c8269899cc06ae2829f973b4c1

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
new file mode 100644
index 00000000000..b578cd7f73e
--- /dev/null
+++ b/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch
@@ -0,0 +1,28 @@
+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
new file mode 100644
index 00000000000..2a43f855e58
--- /dev/null
+++ b/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+PYTHON_REQ_USE="threads(+)"
+
+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"
+
+# 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}]
+	$(python_gen_cond_dep '<dev-python/ipython-6[${PYTHON_USEDEP}]' 'python2_7')
+	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}]
+	virtual/python-futures[${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/files/, dev-python/ipyparallel/
@ 2021-11-14  8:35 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2021-11-14  8:35 UTC (permalink / raw
  To: gentoo-commits

commit:     6d3fe771b9ff45f5c3f1fef2aff83992c5326b10
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 14 08:35:42 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 14 08:35:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d3fe771

dev-python/ipyparallel: crank up test timeouts

Closes: https://bugs.gentoo.org/823458
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/ipyparallel-7.1.0-test-timeouts.patch    | 48 ++++++++++++++++++++++
 dev-python/ipyparallel/ipyparallel-7.1.0.ebuild    |  4 ++
 2 files changed, 52 insertions(+)

diff --git a/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch b/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch
new file mode 100644
index 000000000000..2b0614e95d7d
--- /dev/null
+++ b/dev-python/ipyparallel/files/ipyparallel-7.1.0-test-timeouts.patch
@@ -0,0 +1,48 @@
+https://bugs.gentoo.org/823458
+
+From: Sam James <sam@gentoo.org>
+Date: Sun, 14 Nov 2021 08:34:15 +0000
+Subject: [PATCH] Crank up test timeouts
+
+--- a/ipyparallel/tests/__init__.py
++++ b/ipyparallel/tests/__init__.py
+@@ -74,7 +74,7 @@ def setup():
+     while not os.path.exists(engine_json) or not os.path.exists(client_json):
+         if cp.poll() is not None:
+             raise RuntimeError("The test controller exited with status %s" % cp.poll())
+-        elif time.time() - tic > 15:
++        elif time.time() - tic > 60:
+             raise RuntimeError("Timeout waiting for the test controller to start.")
+         time.sleep(0.1)
+     add_engines(1)
+@@ -107,7 +107,7 @@ def add_engines(n=1, profile='iptest', total=False):
+     while len(rc) < base + n:
+         if any([ep.poll() is not None for ep in eps]):
+             raise RuntimeError("A test engine failed to start.")
+-        elif time.time() - tic > 15:
++        elif time.time() - tic > 60:
+             raise RuntimeError("Timeout waiting for engines to connect.")
+         time.sleep(0.1)
+     rc.close()
+--- a/ipyparallel/tests/test_lbview.py
++++ b/ipyparallel/tests/test_lbview.py
+@@ -21,7 +21,7 @@ class TestLoadBalancedView(ClusterTestCase):
+         self.assertRaisesRemote(error.EngineError, ar.get, 10)
+         eid = ar.engine_id
+         tic = time.time()
+-        while eid in self.client.ids and time.time() - tic < 5:
++        while eid in self.client.ids and time.time() - tic < 30:
+             time.sleep(0.01)
+         assert eid not in self.client.ids
+ 
+--- a/ipyparallel/tests/test_view.py
++++ b/ipyparallel/tests/test_view.py
+@@ -47,7 +47,7 @@ class TestView(ClusterTestCase):
+         ar = view.apply_async(conditional_crash, ipp.Reference("should_crash"))
+         self.assertRaisesRemote(error.EngineError, ar.get, 10)
+         tic = time.perf_counter()
+-        while eid in self.client.ids and time.perf_counter() - tic < 5:
++        while eid in self.client.ids and time.perf_counter() - tic < 30:
+             time.sleep(0.05)
+         assert eid not in self.client.ids
+ 

diff --git a/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild b/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild
index 5c708589464c..a2f3bb4d73d9 100644
--- a/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild
+++ b/dev-python/ipyparallel/ipyparallel-7.1.0.ebuild
@@ -42,6 +42,10 @@ BDEPEND="${RDEPEND}
 # distutils_enable_sphinx docs/source
 distutils_enable_tests pytest
 
+PATCHES=(
+	"${FILESDIR}"/${PN}-7.1.0-test-timeouts.patch
+)
+
 python_test() {
 	local deselect=(
 		# we don't run a mongo instance for tests


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/files/, dev-python/ipyparallel/
@ 2024-03-22  4:38 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2024-03-22  4:38 UTC (permalink / raw
  To: gentoo-commits

commit:     094b080b97c80fc6e710d88bc4b3fa1cc2a75ed2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 22 03:42:59 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar 22 04:38:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=094b080b

dev-python/ipyparallel: Remove old

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

 dev-python/ipyparallel/Manifest                    |  1 -
 .../files/ipyparallel-8.6.1-pypy310.patch          | 32 --------
 dev-python/ipyparallel/ipyparallel-8.6.1.ebuild    | 89 ----------------------
 3 files changed, 122 deletions(-)

diff --git a/dev-python/ipyparallel/Manifest b/dev-python/ipyparallel/Manifest
index a84e0cf0a5f8..309b4cf0c591 100644
--- a/dev-python/ipyparallel/Manifest
+++ b/dev-python/ipyparallel/Manifest
@@ -1,2 +1 @@
-DIST ipyparallel-8.6.1.tar.gz 6807935 BLAKE2B 23847974e9d5d1d06a64a6b01c845f539848c602b6ba6a22c64d8e0bd35a783ec3a09fc6618ae08490d35e49d497c1db61176f8c70065c4e61ec234a7fd00545 SHA512 e83447f9d52eed87e8513d2ee74d2d6b589a5c04b5bf6dfece6d87565dd9c5e46abd280eb5ab64266b2e759dec1007ab007d0b8232b6239768190bd6900f53ff
 DIST ipyparallel-8.7.0.tar.gz 6798726 BLAKE2B 2f948ab19883e9364cab82227ad9918010f144ccf8d9899c54e4a3a9df99bd42faf6001ba837e6c7bfb25738c6ad25f766396b76ba7fa5097d84f385d69dbc68 SHA512 96b9a3c1435dcb609c81856e5fc2763265a14610483e9d6c1a0b1fe5f7d6981d42d8f0d7b0c245cdf1fec10d4a832854dc745ca02ce90623734216dc858bb322

diff --git a/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch b/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch
deleted file mode 100644
index fae998d51972..000000000000
--- a/dev-python/ipyparallel/files/ipyparallel-8.6.1-pypy310.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-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
deleted file mode 100644
index 96ee69b90056..000000000000
--- a/dev-python/ipyparallel/ipyparallel-8.6.1.ebuild
+++ /dev/null
@@ -1,89 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( pypy3 python3_{10..12} )
-PYTHON_REQ_USE="threads(+)"
-
-inherit distutils-r1 optfeature pypi
-
-DESCRIPTION="Interactive Parallel Computing with IPython"
-HOMEPAGE="
-	https://ipyparallel.readthedocs.io/
-	https://github.com/ipython/ipyparallel/
-	https://pypi.org/project/ipyparallel/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
-
-RDEPEND="
-	dev-python/entrypoints[${PYTHON_USEDEP}]
-	dev-python/decorator[${PYTHON_USEDEP}]
-	>=dev-python/pyzmq-18[${PYTHON_USEDEP}]
-	>=dev-python/traitlets-4.3[${PYTHON_USEDEP}]
-	>=dev-python/ipython-4[${PYTHON_USEDEP}]
-	dev-python/jupyter-client[${PYTHON_USEDEP}]
-	dev-python/jupyter-server[${PYTHON_USEDEP}]
-	>=dev-python/ipykernel-4.4[${PYTHON_USEDEP}]
-	dev-python/psutil[${PYTHON_USEDEP}]
-	>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
-	dev-python/tqdm[${PYTHON_USEDEP}]
-	>=dev-python/tornado-5.1[${PYTHON_USEDEP}]
-"
-BDEPEND="
-	dev-python/flit-core[${PYTHON_USEDEP}]
-	test? (
-		dev-python/ipython[test]
-		dev-python/mock[${PYTHON_USEDEP}]
-		dev-python/pytest-asyncio[${PYTHON_USEDEP}]
-		dev-python/pytest-tornado[${PYTHON_USEDEP}]
-		dev-python/testpath[${PYTHON_USEDEP}]
-	)
-"
-
-# TODO: package myst_parser
-# distutils_enable_sphinx docs/source
-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() {
-	export IPP_DISABLE_JS=1
-}
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# we don't run a mongo instance for tests
-		ipyparallel/tests/test_mongodb.py::TestMongoBackend
-		# TODO
-		ipyparallel/tests/test_util.py::test_disambiguate_ip
-		# Gets upset that a timeout _doesn't_ occur, presumably because
-		# we're cranking up too many test timeouts. Oh well.
-		# bug #823458#c3
-		ipyparallel/tests/test_asyncresult.py::AsyncResultTest::test_wait_for_send
-		# We could patch the timeout for these too but they're going to be inherently
-		# fragile anyway based on what they do.
-		ipyparallel/tests/test_client.py::TestClient::test_activate
-		ipyparallel/tests/test_client.py::TestClient::test_lazy_all_targets
-		ipyparallel/tests/test_client.py::TestClient::test_wait_for_engines
-	)
-	epytest
-}
-
-python_install_all() {
-	distutils-r1_python_install_all
-	# move /usr/etc stuff to /etc
-	mv "${ED}/usr/etc" "${ED}/etc" || die
-}
-
-pkg_postinst() {
-	optfeature "Jupyter Notebook integration" dev-python/notebook
-}


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

end of thread, other threads:[~2024-03-22  4:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-01 16:48 [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/files/, dev-python/ipyparallel/ Virgil Dupras
  -- strict thread matches above, loose matches on Subject: below --
2021-11-14  8:35 Sam James
2024-03-22  4:38 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