unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 33702@debbugs.gnu.org
Subject: [bug#33702] [PATCH 2/2] gnu: python-celery: Update to 4.2.1.
Date: Tue, 11 Dec 2018 18:09:56 +0100	[thread overview]
Message-ID: <20181211170956.9381-2-mail@cbaines.net> (raw)
In-Reply-To: <20181211170956.9381-1-mail@cbaines.net>

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

  reply	other threads:[~2018-12-11 17:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11  6:55 [bug#33702] [PATCH 0/7] Fix python-kombu, update python-amqp, and add 5 new packages Christopher Baines
2018-12-11  7:06 ` [bug#33702] [PATCH 1/7] gnu: Add python-pytest-sugar Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 2/7] gnu: Add python-serpent Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 3/7] gnu: Add python-case Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 4/7] gnu: Add python-vine Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 5/7] gnu: Add python-pyro4 Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 6/7] gnu: python-amqp: Update to 2.3.2 Christopher Baines
2018-12-11  7:06   ` [bug#33702] [PATCH 7/7] gnu: python-kombu: Update to 4.2.2 Christopher Baines
2018-12-11 17:09 ` [bug#33702] [PATCH 1/2] gnu: python-billiard: Update to 3.5.0.5 Christopher Baines
2018-12-11 17:09   ` Christopher Baines [this message]
2018-12-12  1:53 ` [bug#33702] [PATCH 0/7] Fix python-kombu, update python-amqp, and add 5 new packages Leo Famulari
2018-12-12  8:06   ` bug#33702: " Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181211170956.9381-2-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=33702@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).