diff env/lib/python3.7/site-packages/planemo/commands/cmd_brew.py @ 5:9b1c78e6ba9c draft default tip

"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author shellac
date Mon, 01 Jun 2020 08:59:25 -0400
parents 79f47841a781
children
line wrap: on
line diff
--- a/env/lib/python3.7/site-packages/planemo/commands/cmd_brew.py	Thu May 14 16:47:39 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,40 +0,0 @@
-"""Module describing the planemo ``brew`` command."""
-import click
-from galaxy.tool_util.deps import (
-    brew_exts,
-    brew_util,
-)
-from galaxy.tool_util.deps.requirements import parse_requirements_from_xml
-from galaxy.tool_util.loader_directory import load_tool_elements_from_path
-from galaxy.util import bunch
-
-from planemo import options
-from planemo.cli import command_function
-
-
-@click.command('brew')
-@options.optional_tools_arg()
-@options.brew_option()
-@command_function
-def cli(ctx, path, brew=None):
-    """Install tool requirements using brew.
-
-    An experimental approach to versioning brew recipes will be used.
-    See full discussion on the homebrew-science issues page here -
-    https://github.com/Homebrew/homebrew-science/issues/1191. Information
-    on the implementation can be found at
-    https://github.com/jmchilton/platform-brew
-    until a more permanent project home is setup.
-    """
-    for (tool_path, tool_xml) in load_tool_elements_from_path(path):
-        ctx.log('Brewing requirements from tool %s',
-                click.format_filename(tool_path))
-        mock_args = bunch.Bunch(brew=brew)
-        brew_context = brew_exts.BrewContext(mock_args)
-        requirements, containers = parse_requirements_from_xml(tool_xml)
-
-        for recipe_context in brew_util.requirements_to_recipe_contexts(
-            requirements,
-            brew_context
-        ):
-            brew_exts.versioned_install(recipe_context)