Commit 47286d4 1 parent 07bbd33 commit 47286d4 Copy full SHA for 47286d4
File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ package_dir=
24
24
=src
25
25
packages = find:
26
26
install_requires =
27
- kombu >=5.3.0a1
28
- celery>=5.3.0a1,<6
27
+ celery >=5.2.0,<6
28
+ kombu
29
29
funcy>=1.17
30
30
shortuuid>=1.0.8
31
31
pywin32>=225; sys_platform == 'win32'
39
39
mkdocstrings-python ==0.7.0
40
40
tests =
41
41
flaky ==3.7.0
42
+ kombu>=5.3.0a1
42
43
pytest ==7.1.2
43
44
pytest-sugar ==0.9.4
44
45
pytest-cov ==3.0.0
Original file line number Diff line number Diff line change 8
8
from kombu .utils .encoding import bytes_to_str
9
9
from kombu .utils .json import loads
10
10
11
+ from ..exceptions import DvcTaskError
11
12
from ..utils import makedirs , remove , unc_path
12
13
13
14
logger = logging .getLogger (__name__ )
14
15
15
16
17
+ def _check_kombu_version ():
18
+ # pylint: disable=import-outside-toplevel
19
+ from kombu import VERSION , __version__
20
+
21
+ # FSApp requires kombu >= 5.3.0
22
+ if VERSION .major < 5 or (VERSION .major == 5 and VERSION .minor < 3 ):
23
+ raise DvcTaskError (
24
+ f"Unsupported Kombu version '{ __version__ } ' found. "
25
+ "dvc-task FSApp requires Kombu >=5.3.0."
26
+ )
27
+
28
+
16
29
def _get_fs_config (
17
30
wdir : str ,
18
31
mkdir : bool = False ,
@@ -78,6 +91,7 @@ def __init__(
78
91
79
92
Additional arguments will be passed into the Celery constructor.
80
93
"""
94
+ _check_kombu_version ()
81
95
super ().__init__ (* args , ** kwargs )
82
96
self .wdir = wdir or os .getcwd ()
83
97
self .conf .update (
You can’t perform that action at this time.
0 commit comments