Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package django-celery The version in unstable fixes a RC bug, #855877. This was resolved by applying a patch from upstream. https://patch-diff.githubusercontent.com/raw/celery/django-celery/pull/458.patch diff -Nru django-celery-3.1.17/debian/changelog django-celery-3.1.17/debian/changelog --- django-celery-3.1.17/debian/changelog 2016-08-03 08:31:30.000000000 +1000 +++ django-celery-3.1.17/debian/changelog 2017-02-23 08:10:49.000000000 +1100 @@ -1,3 +1,10 @@ +django-celery (3.1.17-4) unstable; urgency=medium + + * Add 0010-Fix-management-command-handling-for-django-1.10.patch to + fix management command. Closes: #855877. + + -- Brian May <b...@debian.org> Thu, 23 Feb 2017 08:10:49 +1100 + django-celery (3.1.17-3.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru django-celery-3.1.17/debian/.git-dpm django-celery-3.1.17/debian/.git-dpm --- django-celery-3.1.17/debian/.git-dpm 2016-08-03 08:31:30.000000000 +1000 +++ django-celery-3.1.17/debian/.git-dpm 2017-02-23 07:54:04.000000000 +1100 @@ -1,6 +1,6 @@ # see git-dpm(1) from git-dpm package -39098cc288ef5f15f9f52a83339a5d3bc59ba6cd -39098cc288ef5f15f9f52a83339a5d3bc59ba6cd +06566a57ca296c8ac4eb59c7b386f4dca817b555 +06566a57ca296c8ac4eb59c7b386f4dca817b555 58751dd4216a267ccad1f8b5932487c51af036e4 58751dd4216a267ccad1f8b5932487c51af036e4 django-celery_3.1.17.orig.tar.gz diff -Nru django-celery-3.1.17/debian/patches/0010-Fix-management-command-handling-for-django-1.10.patch django-celery-3.1.17/debian/patches/0010-Fix-management-command-handling-for-django-1.10.patch --- django-celery-3.1.17/debian/patches/0010-Fix-management-command-handling-for-django-1.10.patch 1970-01-01 10:00:00.000000000 +1000 +++ django-celery-3.1.17/debian/patches/0010-Fix-management-command-handling-for-django-1.10.patch 2017-02-23 07:54:04.000000000 +1100 @@ -0,0 +1,46 @@ +From 06566a57ca296c8ac4eb59c7b386f4dca817b555 Mon Sep 17 00:00:00 2001 +From: Brian May <b...@debian.org> +Date: Thu, 23 Feb 2017 07:52:29 +1100 +Subject: Fix management command handling for django >= 1.10 + +Patch applied from upstream: +https://patch-diff.githubusercontent.com/raw/celery/django-celery/pull/458.patch +--- + djcelery/management/base.py | 24 +++++++++++++++++++++++- + 1 file changed, 23 insertions(+), 1 deletion(-) + +diff --git a/djcelery/management/base.py b/djcelery/management/base.py +index 11520f1..b3f386d 100644 +--- a/djcelery/management/base.py ++++ b/djcelery/management/base.py +@@ -57,7 +57,29 @@ patch_thread_ident() + + + class CeleryCommand(BaseCommand): +- options = BaseCommand.option_list ++ options = () ++ if hasattr(BaseCommand, 'option_list'): ++ options = BaseCommand.option_list ++ else: ++ def add_arguments(self, parser): ++ option_typemap = { ++ "string": str, ++ "int": int, ++ "float": float ++ } ++ for opt in self.option_list: ++ option = {k: v ++ for k, v in opt.__dict__.items() ++ if v is not None} ++ flags = (option.get("_long_opts", []) + ++ option.get("_short_opts", [])) ++ del option["_long_opts"] ++ del option["_short_opts"] ++ if "type" in option: ++ opttype = option["type"] ++ option["type"] = option_typemap.get(opttype, opttype) ++ parser.add_argument(*flags, **option) ++ + skip_opts = ['--app', '--loader', '--config', '--no-color'] + requires_model_validation = VALIDATE_MODELS + keep_base_opts = False diff -Nru django-celery-3.1.17/debian/patches/series django-celery-3.1.17/debian/patches/series --- django-celery-3.1.17/debian/patches/series 2016-08-03 08:31:30.000000000 +1000 +++ django-celery-3.1.17/debian/patches/series 2017-02-23 07:54:04.000000000 +1100 @@ -7,3 +7,4 @@ 0007-Fix-get_model-with-Django-1.9.patch 0008-django-1.10-fix-django.conf.urls.patterns-is-removed.patch 0009-django-1.10-fix-access-to-_default_manager.patch +0010-Fix-management-command-handling-for-django-1.10.patch unblock django-celery/3.1.17-4 -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (100, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)