From 77553d1711dea59bc889efdec6a252ee5f6b4b63 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Mon, 12 Sep 2022 21:49:14 +0100 Subject: [PATCH] Pin CacheControl to prevent missing dependency schema-salad currently requires: - "CacheControl >= 0.11.7, < 0.13" - "lockfile >= 0.9", which is needed for CacheControl's FileCache until 0.12.11 but CacheControl 0.12.12 replaced lockfile with filelock. Prevent the following traceback: ``` self = directory = PosixPath('/tmp/.cache/salad'), forever = False, filemode = 384 dirmode = 448, lock_class = None def __init__( self, directory, forever=False, filemode=0o0600, dirmode=0o0700, lock_class=None, ): try: if lock_class is None: > from filelock import FileLock E ModuleNotFoundError: No module named 'filelock' /tmp/gxpkgtestenvcy0lxY/lib/python3.7/site-packages/cachecontrol/caches/file_cache.py:74: ModuleNotFoundError ``` --- packages/tool_util/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/tool_util/setup.py b/packages/tool_util/setup.py index b49e5880af6..37f080cc0ba 100644 --- a/packages/tool_util/setup.py +++ b/packages/tool_util/setup.py @@ -102,6 +102,7 @@ setup( install_requires=requirements, extras_require={ 'cwl': [ + 'CacheControl<0.12.12', # https://github.com/common-workflow-language/schema_salad/issues/95#issuecomment-1244271884 'cwltool==3.1.20211107152837', ], 'mulled': [