From patchwork Thu Mar 12 08:14:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 20644 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 06E6627BBEA; Thu, 12 Mar 2020 08:16:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id BA9B227BBE4 for ; Thu, 12 Mar 2020 08:16:10 +0000 (GMT) Received: from localhost ([::1]:37370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCJ0k-0004dl-9k for patchwork@mira.cbaines.net; Thu, 12 Mar 2020 04:16:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCJ0e-0004dV-03 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCJ0c-0003VZ-Q9 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCJ0c-0003VP-Mo for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCJ0c-0006Dh-Ho for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel. References: <20200312081130.7368-1-efraim@flashner.co.il> In-Reply-To: <20200312081130.7368-1-efraim@flashner.co.il> Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Mar 2020 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40036 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40036@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 40036-submit@debbugs.gnu.org id=B40036.158400091923825 (code B ref 40036); Thu, 12 Mar 2020 08:16:02 +0000 Received: (at 40036) by debbugs.gnu.org; 12 Mar 2020 08:15:19 +0000 Received: from localhost ([127.0.0.1]:55891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCIzu-0006CD-T5 for submit@debbugs.gnu.org; Thu, 12 Mar 2020 04:15:19 -0400 Received: from flashner.co.il ([178.62.234.194]:46916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCIzs-0006Bx-Si for 40036@debbugs.gnu.org; Thu, 12 Mar 2020 04:15:17 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 102C34031B; Thu, 12 Mar 2020 08:15:10 +0000 (UTC) From: Efraim Flashner Date: Thu, 12 Mar 2020 10:14:38 +0200 Message-Id: <20200312081439.7478-1-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-ipyparallel): New variable. --- gnu/packages/python-xyz.scm | 58 +++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8e8790b29a..0126d576ed 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5375,6 +5375,64 @@ away.") (define-public python2-ipython-genutils (package-with-python2 python-ipython-genutils)) +(define-public python-ipyparallel + (package + (name "python-ipyparallel") + (version "6.2.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ipyparallel" version)) + (sha256 + (base32 + "0rf0dbpxf5z82bw8lsjj45r3wdd4wc74anz4wiiaf2rbjqlb1ivn")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; RuntimeError: IO Loop failed to start + #:phases + (modify-phases %standard-phases + (add-before 'check 'prepare-for-tests + (lambda _ + (setenv "HOME" (getcwd)) + #t))))) + (propagated-inputs + `(("python-dateutil" ,python-dateutil) + ("python-decorator" ,python-decorator) + ("python-ipykernel" ,python-ipykernel) + ("python-ipython" ,python-ipython) + ("python-ipython-genutils" ,python-ipython-genutils) + ("python-jupyter-client" ,python-jupyter-client) + ("python-pyzmq" ,python-pyzmq) + ("python-tornado" ,python-tornado) + ("python-traitlets" ,python-traitlets))) + (native-inputs + `(("python-ipython" ,python-ipython) + ("python-mock" ,python-mock) + ("python-nose" ,python-nose) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-testpath" ,python-testpath))) + (home-page "https://ipython.org/") + (synopsis "Interactive Parallel Computing with IPython") + (description + "@code{ipyparallel} is a Python package and collection of CLI scripts for +controlling clusters for Jupyter. @code{ipyparallel} contains the following +CLI scripts: +@enumerate +@item ipcluster - start/stop a cluster +@item ipcontroller - start a scheduler +@item ipengine - start an engine +@end enumerate") + (license license:bsd-3))) + +(define-public python2-ipyparallel + (let ((ipyparallel (package-with-python2 python-ipyparallel))) + (package + (inherit ipyparallel) + (propagated-inputs + `(("python2-futures" ,python2-futures) + ,@(package-propagated-inputs ipyparallel)))))) + (define-public python-traitlets (package (name "python-traitlets") From patchwork Thu Mar 12 08:14:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 20645 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 99DBA27BBEA; Thu, 12 Mar 2020 08:16:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5C86927BBE4 for ; Thu, 12 Mar 2020 08:16:12 +0000 (GMT) Received: from localhost ([::1]:37372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCJ0l-0004fc-U6 for patchwork@mira.cbaines.net; Thu, 12 Mar 2020 04:16:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCJ0e-0004dW-E0 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCJ0d-0003Vl-72 for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCJ0d-0003Vh-3s for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCJ0c-0006Dv-WF for guix-patches@gnu.org; Thu, 12 Mar 2020 04:16:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40036] [PATCH 2/2] gnu: Add python-ipython-cluster-helper. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Mar 2020 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40036 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40036@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 40036-submit@debbugs.gnu.org id=B40036.158400095223881 (code B ref 40036); Thu, 12 Mar 2020 08:16:02 +0000 Received: (at 40036) by debbugs.gnu.org; 12 Mar 2020 08:15:52 +0000 Received: from localhost ([127.0.0.1]:55894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCJ0S-0006D7-79 for submit@debbugs.gnu.org; Thu, 12 Mar 2020 04:15:52 -0400 Received: from flashner.co.il ([178.62.234.194]:47098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCJ0Q-0006Ct-LH for 40036@debbugs.gnu.org; Thu, 12 Mar 2020 04:15:50 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id E6FF54031B; Thu, 12 Mar 2020 08:15:44 +0000 (UTC) From: Efraim Flashner Date: Thu, 12 Mar 2020 10:14:39 +0200 Message-Id: <20200312081439.7478-2-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200312081439.7478-1-efraim@flashner.co.il> References: <20200312081439.7478-1-efraim@flashner.co.il> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-ipython-cluster-helper): New variable. --- gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0126d576ed..5f55b48eec 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5433,6 +5433,54 @@ CLI scripts: `(("python2-futures" ,python2-futures) ,@(package-propagated-inputs ipyparallel)))))) +(define-public python-ipython-cluster-helper + (package + (name "python-ipython-cluster-helper") + (version "0.6.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ipython-cluster-helper" version)) + (sha256 + (base32 + "1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj")) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "requirements.txt" + (("ipython.*") "ipython\n")) + #t)))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Test suite can't find IPython. + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (if tests? + (begin + (setenv "HOME" (getcwd)) + (add-installed-pythonpath inputs outputs) + (invoke "python" "example/example.py" "--local")) + #t)))))) + (propagated-inputs + `(("python-ipyparallel" ,python-ipyparallel) + ("python-ipython" ,python-ipython) + ("python-netifaces" ,python-netifaces) + ("python-pyzmq" ,python-pyzmq) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six))) + (home-page "https://github.com/roryk/ipython-cluster-helper") + (synopsis + "Simplify IPython cluster start up and use for multiple schedulers") + (description + "@code{ipython-cluster-helper} creates a throwaway parallel IPython +profile, launches a cluster and returns a view. On program exit it shuts the +cluster down and deletes the throwaway profile.") + (license license:expat))) + +(define-public python2-ipython-cluster-helper + (package-with-python2 python-ipython-cluster-helper)) + (define-public python-traitlets (package (name "python-traitlets")