Try to install and import plugins from repo
(plugins: List[str])
| 452 | |
| 453 | |
| 454 | def register_plugins_repo(plugins: List[str]) -> None: |
| 455 | """ Try to install and import plugins from repo""" |
| 456 | if plugins is not None: |
| 457 | install_requirements_by_names(plugins) |
| 458 | modules = [] |
| 459 | for plugin in plugins: |
| 460 | module_name, module_version, _ = get_modules_from_package(plugin) |
| 461 | modules.extend(module_name) |
| 462 | import_plugins(modules) |
| 463 | |
| 464 | |
| 465 | def register_modelhub_repo(model_dir, allow_remote=False) -> None: |
no test coverage detected
searching dependent graphs…