Skip to content

Commit f55829c

Browse files
authored
Merge pull request #1275 from bernt-matthias/topic/22.05
bump galaxy packages to 22.05
2 parents 2c71d88 + 5992585 commit f55829c

File tree

15 files changed

+16
-24
lines changed

15 files changed

+16
-24
lines changed

planemo/commands/cmd_autoupdate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def cli(ctx, paths, **kwds): # noqa C901
9393

9494
if any(r.type in {RunnableType.galaxy_tool, RunnableType.directory} for r in runnables):
9595
# update Galaxy tools
96-
for (tool_path, tool_xml) in yield_tool_sources_on_paths(ctx, paths, recursive):
96+
for tool_path, tool_xml in yield_tool_sources_on_paths(ctx, paths, recursive):
9797
if tool_path.split("/")[-1] in tools_to_skip:
9898
info("Skipping tool %s" % tool_path)
9999
continue

planemo/commands/cmd_ci_find_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def cli(ctx, paths, **kwds):
2727
operations over for continuous integration operations.
2828
"""
2929
tool_paths = []
30-
for (tool_path, tool_source) in yield_tool_sources_on_paths(ctx, paths, recursive=True):
30+
for tool_path, tool_source in yield_tool_sources_on_paths(ctx, paths, recursive=True):
3131
if is_tool_load_error(tool_source):
3232
continue
3333
tool_paths.append(tool_path)

planemo/commands/cmd_shed_diff.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def cli(ctx, paths, **kwds):
8484
}
8585

8686
def diff(realized_repository):
87-
8887
# We create a temporary redirection from kwds's
8988
# output to our tempfile. This lets us capture the
9089
# diff and redirect it to their requested location as

planemo/conda.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def collect_conda_targets(ctx, paths, recursive=False, found_tool_callback=None)
8787
else:
8888
real_paths.append(path)
8989

90-
for (tool_path, tool_source) in yield_tool_sources_on_paths(
90+
for tool_path, tool_source in yield_tool_sources_on_paths(
9191
ctx, real_paths, recursive=recursive, exclude_deprecated=True
9292
):
9393
if found_tool_callback:
@@ -132,9 +132,7 @@ def collect_conda_target_lists_and_tool_paths(ctx, paths, recursive=False, found
132132
"""
133133
conda_target_lists = set()
134134
tool_paths = collections.defaultdict(list)
135-
for (tool_path, tool_source) in yield_tool_sources_on_paths(
136-
ctx, paths, recursive=recursive, yield_load_errors=False
137-
):
135+
for tool_path, tool_source in yield_tool_sources_on_paths(ctx, paths, recursive=recursive, yield_load_errors=False):
138136
try:
139137
if found_tool_callback:
140138
found_tool_callback(tool_path)
@@ -153,7 +151,7 @@ def collect_conda_target_lists_and_tool_paths(ctx, paths, recursive=False, found
153151

154152
def tool_source_conda_targets(tool_source):
155153
"""Load CondaTarget object from supplied abstract tool source."""
156-
requirements, _ = tool_source.parse_requirements_and_containers()
154+
requirements, *_ = tool_source.parse_requirements_and_containers()
157155
return conda_util.requirements_to_conda_targets(requirements)
158156

159157

planemo/engine/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test(self, runnables, test_timeout):
7575
test_cases = [t for tl in map(cases, runnables) for t in tl]
7676
test_results = self._collect_test_results(test_cases, test_timeout)
7777
tests = []
78-
for (test_case, run_response) in test_results:
78+
for test_case, run_response in test_results:
7979
test_case_data = test_case.structured_test_data(run_response)
8080
tests.append(test_case_data)
8181
test_data = {

planemo/galaxy/activity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ def _get_metadata(self, history_content_type, content_id):
414414
raise Exception("Unknown history content type encountered [%s]" % history_content_type)
415415

416416
def collect_outputs(self, ctx, output_directory):
417-
418417
outputs_dict = {}
419418
# TODO: rather than creating a directory just use
420419
# Galaxy paths if they are available in this

planemo/galaxy/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
TYPE_CHECKING,
2727
)
2828

29-
from galaxy.containers.docker_model import DockerVolume
3029
from galaxy.tool_util.deps import docker_util
30+
from galaxy.tool_util.deps.container_volumes import DockerVolume
3131
from galaxy.util.commands import argv_to_str
3232
from packaging.version import parse as parse_version
3333

planemo/galaxy/workflows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def describe_outputs(runnable, gi=None):
164164
workflow = _raw_dict(runnable.path)
165165

166166
outputs = []
167-
for (order_index, step) in workflow["steps"].items():
167+
for order_index, step in workflow["steps"].items():
168168
optional = False
169169
if not step.get("tool_id"):
170170
# One of the parameter types ... need eliminate this guesswork on the Galaxy side
@@ -370,7 +370,6 @@ def _elements_to_test_def(
370370

371371

372372
def _job_inputs_template_from_invocation(invocation_id, galaxy_url, galaxy_api_key):
373-
374373
user_gi = gi(url=galaxy_url, key=galaxy_api_key)
375374
invocation = user_gi.invocations.show_invocation(invocation_id)
376375
template = {}

planemo/reports/allure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def process(self, structured_data, file_modication_datetime=None):
5252
plugin_manager.unregister(plugin=self.logger)
5353

5454
def process_test_case(self, test_case, file_modication_datetime=None):
55-
5655
with self.lifecycle.schedule_test_case() as test_result:
5756
test_index = test_case["id"]
5857
test_data = test_case.get("data") or {}

planemo/shed/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ def __init__(self, repo_pairs, description=None):
963963
def __str__(self):
964964
contents = '<repositories description="%s">' % self.description
965965
line_template = ' <repository owner="%s" name="%s" />\n'
966-
for (owner, name) in self.repo_pairs:
966+
for owner, name in self.repo_pairs:
967967
contents += line_template % (owner, name)
968968
contents += "</repositories>"
969969
return contents
@@ -1021,7 +1021,7 @@ def _realize_to(self, ctx, directory, name, multiple, **kwds):
10211021
continue
10221022
realized_file.realize_to(directory)
10231023

1024-
for (name, contents) in config.get("_files", {}).items():
1024+
for name, contents in config.get("_files", {}).items():
10251025
path = os.path.join(directory, name)
10261026
with open(path, "w") as f:
10271027
f.write(contents)

0 commit comments

Comments
 (0)