all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#40036] [PATCH 0/2] 2 ipython packages
@ 2020-03-12  8:11 Efraim Flashner
  2020-03-12  8:14 ` [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel Efraim Flashner
  2020-04-07 16:29 ` bug#40036: [PATCH 0/2] 2 ipython packages Efraim Flashner
  0 siblings, 2 replies; 4+ messages in thread
From: Efraim Flashner @ 2020-03-12  8:11 UTC (permalink / raw)
  To: 40036; +Cc: Efraim Flashner

I packaged these two packages as part of packaging another program and
upstream is the best place for them :)

Efraim Flashner (2):
  gnu: Add python-ipyparallel.
  gnu: Add python-ipython-cluster-helper.

 gnu/packages/python-xyz.scm | 106 ++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)

-- 
2.25.1

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

* [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel.
  2020-03-12  8:11 [bug#40036] [PATCH 0/2] 2 ipython packages Efraim Flashner
@ 2020-03-12  8:14 ` Efraim Flashner
  2020-03-12  8:14   ` [bug#40036] [PATCH 2/2] gnu: Add python-ipython-cluster-helper Efraim Flashner
  2020-04-07 16:29 ` bug#40036: [PATCH 0/2] 2 ipython packages Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: Efraim Flashner @ 2020-03-12  8:14 UTC (permalink / raw)
  To: 40036; +Cc: Efraim Flashner

* 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")
-- 
2.25.1

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

* [bug#40036] [PATCH 2/2] gnu: Add python-ipython-cluster-helper.
  2020-03-12  8:14 ` [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel Efraim Flashner
@ 2020-03-12  8:14   ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2020-03-12  8:14 UTC (permalink / raw)
  To: 40036; +Cc: Efraim Flashner

* 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")
-- 
2.25.1

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

* bug#40036: [PATCH 0/2] 2 ipython packages
  2020-03-12  8:11 [bug#40036] [PATCH 0/2] 2 ipython packages Efraim Flashner
  2020-03-12  8:14 ` [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel Efraim Flashner
@ 2020-04-07 16:29 ` Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2020-04-07 16:29 UTC (permalink / raw)
  To: 40036-done

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

Patches pushed


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-04-07 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-12  8:11 [bug#40036] [PATCH 0/2] 2 ipython packages Efraim Flashner
2020-03-12  8:14 ` [bug#40036] [PATCH 1/2] gnu: Add python-ipyparallel Efraim Flashner
2020-03-12  8:14   ` [bug#40036] [PATCH 2/2] gnu: Add python-ipython-cluster-helper Efraim Flashner
2020-04-07 16:29 ` bug#40036: [PATCH 0/2] 2 ipython packages Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.