| |
@@ -0,0 +1,32 @@
|
| |
+ diff --git a/celery/bin/base.py b/celery/bin/base.py
|
| |
+ index 78d6371..4a69b7b 100644
|
| |
+ --- a/celery/bin/base.py
|
| |
+ +++ b/celery/bin/base.py
|
| |
+ @@ -137,10 +137,10 @@ def handle_preload_options(f):
|
| |
+ class CeleryOption(click.Option):
|
| |
+ """Customized option for Celery."""
|
| |
+
|
| |
+ - def get_default(self, ctx):
|
| |
+ + def get_default(self, ctx, **kwargs):
|
| |
+ if self.default_value_from_context:
|
| |
+ self.default = ctx.obj[self.default_value_from_context]
|
| |
+ - return super().get_default(ctx)
|
| |
+ + return super().get_default(ctx, **kwargs)
|
| |
+
|
| |
+ def __init__(self, *args, **kwargs):
|
| |
+ """Initialize a Celery option."""
|
| |
+ diff --git a/requirements/default.txt b/requirements/default.txt
|
| |
+ index afa9d16..59f77b7 100644
|
| |
+ --- a/requirements/default.txt
|
| |
+ +++ b/requirements/default.txt
|
| |
+ @@ -2,8 +2,8 @@ pytz>dev
|
| |
+ billiard>=3.6.4.0,<4.0
|
| |
+ kombu>=5.1.0,<6.0
|
| |
+ vine>=5.0.0,<6.0
|
| |
+ -click>=7.0,<8.0
|
| |
+ +click>=7.0,<9.0
|
| |
+ click-didyoumean>=0.0.3
|
| |
+ -click-repl>=0.1.6
|
| |
+ +click-repl>=0.2.0
|
| |
+ click-plugins>=1.1.1
|
| |
+ setuptools
|
| |
This builds but I have not tested it manually in any way.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1977508