From d69f6c4172130a740a1e74e82473c2e6998ee904 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Thu, 23 Jan 2025 14:39:53 +0100 Subject: [PATCH] mulled-build-tool fix for packages wo version for tools with requirements without version this resulted in a conda install with requirement=None in the package specs which does not work --- lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py b/lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py index a9dfea4d66d7..7dd14757baa6 100644 --- a/lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py +++ b/lib/galaxy/tool_util/deps/mulled/mulled_build_tool.py @@ -52,7 +52,7 @@ def requirements_to_mulled_targets(requirements) -> List["CondaTarget"]: Only package requirements are retained. """ package_requirements = [r for r in requirements if r.type == "package"] - target_str = ",".join([f"{r.name}={r.version}" for r in package_requirements]) + target_str = ",".join([f"{r.name}={r.version}" if r.version else r.name for r in package_requirements]) targets = target_str_to_targets(target_str) return targets