Skip to content

Commit

Permalink
pin to compatible galaxy-util
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jun 24, 2023
1 parent 8aecdcc commit 9e1eb1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
14 changes: 3 additions & 11 deletions cwltool/validate_js.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,12 @@ def get_expressions(
if not isinstance(tool, MutableSequence):
return []

def tmp_expr(
x: Tuple[int, Union[CommentedMap, str, CommentedSeq]]
) -> List[Tuple[str, Optional[SourceLine]]]:
# using a lambda for this broke mypyc v0.910 and before
return get_expressions(
x[1],
cast(ArraySchema, schema).items,
SourceLine(tool, x[0], include_traceback=debug),
)

return list(
itertools.chain(
*map(
tmp_expr,
lambda x: get_expressions(
x[1], getattr(schema, "items"), SourceLine(tool, x[0]) # noqa: B009
),
enumerate(tool),
)
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"cwl-utils >= 0.22",
],
extras_require={
"deps": ["galaxy-tool-util >= 22.1.2, <23"],
"deps": ["galaxy-tool-util >= 22.1.2, <23", "galaxy-util <23"],
},
python_requires=">=3.6, <4",
setup_requires=PYTEST_RUNNER,
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ arcp >= 0.2.0
rdflib-jsonld>=0.4.0, <= 0.6.1;python_version<='3.6'
-rrequirements.txt
galaxy-tool-util >= 22.1.2, < 23
galaxy-util < 23

0 comments on commit 9e1eb1d

Please sign in to comment.