unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#33707] [PATCH 0/2] Update python-celery and python-billiard.
@ 2018-12-11 16:59 Christopher Baines
  2018-12-11 17:31 ` [bug#33707] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5 Christopher Baines
  2018-12-12  1:51 ` [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Leo Famulari
  0 siblings, 2 replies; 5+ messages in thread
From: Christopher Baines @ 2018-12-11 16:59 UTC (permalink / raw)
  To: 33707

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

Following on from [1], these patches get python-celery building again,
along with updating the package, and updating python-billiard as it's a
dependency.

1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33702


Christopher Baines (2):
  gnu: python-billiard: Update to 3.5.0.5.
  gnu: python-celery: Update to 4.2.1.

 gnu/packages/python.scm | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

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

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

* [bug#33707] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5.
  2018-12-11 16:59 [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Christopher Baines
@ 2018-12-11 17:31 ` Christopher Baines
  2018-12-11 17:31   ` [bug#33707] [PATCH 2/2] gnu: python-celery: Update to 4.2.1 Christopher Baines
  2018-12-12  1:51 ` [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Leo Famulari
  1 sibling, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2018-12-11 17:31 UTC (permalink / raw)
  To: 33707

This is to enable updating python-celery.

* gnu/packages/python.scm (python-billiard): Update to 3.5.0.5.
[native-inputs]: Remove python-nose, add python-case and python-pytest.
---
 gnu/packages/python.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 52e23a19fa..709916d42c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8384,17 +8384,18 @@ RabbitMQ messaging server is the most popular implementation.")
 (define-public python-billiard
   (package
     (name "python-billiard")
-    (version "3.3.0.23")
+    (version "3.5.0.5")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "billiard" version))
        (sha256
         (base32
-         "02wxsc6bhqvzh8j6w758kvgqbnj14l796mvmrcms8fgfamd2lak9"))))
+         "03msmapj3s5zgqk87d646mafz7a01h5bm2wijalgpi0s80ks5na2"))))
     (build-system python-build-system)
     (native-inputs
-     `(("python-nose" ,python-nose)))
+     `(("python-case" ,python-case)
+       ("python-pytest" ,python-pytest)))
     (home-page "https://github.com/celery/billiard")
     (synopsis
      "Python multiprocessing fork with improvements and bugfixes")
-- 
2.18.0

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

* [bug#33707] [PATCH 2/2] gnu: python-celery: Update to 4.2.1.
  2018-12-11 17:31 ` [bug#33707] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5 Christopher Baines
@ 2018-12-11 17:31   ` Christopher Baines
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2018-12-11 17:31 UTC (permalink / raw)
  To: 33707

This is an attempt to get the package building after the update to Python
3.7. I'm not sure this totally works, as the tests detect an incompatibility
with Python 3.7 due to use of "async". But with the tests disabled, you can at
least import the celery module, which is a start.

* gnu/packages/python.scm (python-celery): Update to 4.2.1.
[arguments]: Switch to py.test, from nose, disable the tests and loosen the
requirements on pytest.
[native-inputs]: Remove python-nose, add python-pytest and python-case.
[home-page]: Change from HTTP to HTTPS.
---
 gnu/packages/python.scm | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 709916d42c..1e0af3ff6b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8419,31 +8419,35 @@ Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
 (define-public python-celery
   (package
     (name "python-celery")
-    (version "3.1.24")
+    (version "4.2.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "celery" version))
        (sha256
         (base32
-         "0yh2prhdnx2dgkb67a5drj12hh2zvzx5f611p7mqqg01ydghif4r"))))
+         "0y66rz7z8dfcgs3s0qxmdddlaq57bzbgxgfz896nbp14grkv9nkp"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
+     '(;; TODO The tests fail with Python 3.7
+       ;; https://github.com/celery/celery/issues/4849
+       #:tests? #f
+       #:phases
        (modify-phases %standard-phases
-         ;; These tests break with Python 3.5:
-         ;; https://github.com/celery/celery/issues/2897#issuecomment-253066295
-         (replace 'check
+         (add-after 'unpack 'patch-requirements
            (lambda _
-             (zero?
-               (system* "nosetests" "--exclude=^test_safe_to_remove.*")))))))
+             (substitute* "requirements/test.txt"
+               (("pytest>=3\\.0,<3\\.3")
+                "pytest>=3.0"))
+             #t)))))
     (native-inputs
-     `(("python-nose" ,python-nose)))
+     `(("python-case" ,python-case)
+       ("python-pytest" ,python-pytest)))
     (propagated-inputs
      `(("python-pytz" ,python-pytz)
        ("python-billiard" ,python-billiard)
        ("python-kombu" ,python-kombu)))
-    (home-page "http://celeryproject.org")
+    (home-page "https://celeryproject.org")
     (synopsis "Distributed Task Queue")
     (description "Celery is an asynchronous task queue/job queue based on
 distributed message passing.  It is focused on real-time operation, but
-- 
2.18.0

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

* [bug#33707] [PATCH 0/2] Update python-celery and python-billiard.
  2018-12-11 16:59 [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Christopher Baines
  2018-12-11 17:31 ` [bug#33707] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5 Christopher Baines
@ 2018-12-12  1:51 ` Leo Famulari
  2018-12-12  8:07   ` bug#33707: " Christopher Baines
  1 sibling, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2018-12-12  1:51 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 33707

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

On Tue, Dec 11, 2018 at 05:59:38PM +0100, Christopher Baines wrote:
> Following on from [1], these patches get python-celery building again,
> along with updating the package, and updating python-billiard as it's a
> dependency.
> 
> 1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33702
> 
> 
> Christopher Baines (2):
>   gnu: python-billiard: Update to 3.5.0.5.
>   gnu: python-celery: Update to 4.2.1.

Thanks, LGTM

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

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

* bug#33707: [PATCH 0/2] Update python-celery and python-billiard.
  2018-12-12  1:51 ` [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Leo Famulari
@ 2018-12-12  8:07   ` Christopher Baines
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2018-12-12  8:07 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 33707-done

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


Leo Famulari <leo@famulari.name> writes:

> On Tue, Dec 11, 2018 at 05:59:38PM +0100, Christopher Baines wrote:
>> Following on from [1], these patches get python-celery building again,
>> along with updating the package, and updating python-billiard as it's a
>> dependency.
>> 
>> 1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33702
>> 
>> 
>> Christopher Baines (2):
>>   gnu: python-billiard: Update to 3.5.0.5.
>>   gnu: python-celery: Update to 4.2.1.
>
> Thanks, LGTM

Pushed, thanks for taking a look :)

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

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

end of thread, other threads:[~2018-12-12  8:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11 16:59 [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Christopher Baines
2018-12-11 17:31 ` [bug#33707] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5 Christopher Baines
2018-12-11 17:31   ` [bug#33707] [PATCH 2/2] gnu: python-celery: Update to 4.2.1 Christopher Baines
2018-12-12  1:51 ` [bug#33707] [PATCH 0/2] Update python-celery and python-billiard Leo Famulari
2018-12-12  8:07   ` bug#33707: " Christopher Baines

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).