Skip to content

Commit 9e1eb1d

Browse files
committed
pin to compatible galaxy-util
1 parent 8aecdcc commit 9e1eb1d

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

cwltool/validate_js.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,12 @@ def get_expressions(
8787
if not isinstance(tool, MutableSequence):
8888
return []
8989

90-
def tmp_expr(
91-
x: Tuple[int, Union[CommentedMap, str, CommentedSeq]]
92-
) -> List[Tuple[str, Optional[SourceLine]]]:
93-
# using a lambda for this broke mypyc v0.910 and before
94-
return get_expressions(
95-
x[1],
96-
cast(ArraySchema, schema).items,
97-
SourceLine(tool, x[0], include_traceback=debug),
98-
)
99-
10090
return list(
10191
itertools.chain(
10292
*map(
103-
tmp_expr,
93+
lambda x: get_expressions(
94+
x[1], getattr(schema, "items"), SourceLine(tool, x[0]) # noqa: B009
95+
),
10496
enumerate(tool),
10597
)
10698
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"cwl-utils >= 0.22",
133133
],
134134
extras_require={
135-
"deps": ["galaxy-tool-util >= 22.1.2, <23"],
135+
"deps": ["galaxy-tool-util >= 22.1.2, <23", "galaxy-util <23"],
136136
},
137137
python_requires=">=3.6, <4",
138138
setup_requires=PYTEST_RUNNER,

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ arcp >= 0.2.0
99
rdflib-jsonld>=0.4.0, <= 0.6.1;python_version<='3.6'
1010
-rrequirements.txt
1111
galaxy-tool-util >= 22.1.2, < 23
12+
galaxy-util < 23

0 commit comments

Comments
 (0)