Skip to content

Commit 3c475d5

Browse files
committed
chore: stub for local installation
Signed-off-by: habeck <habeck@us.ibm.com>
1 parent d830fc7 commit 3c475d5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

cpex/tools/cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,17 @@ def _finalize_installation(manifest: PluginManifest, install_type: str, catalog:
448448
)
449449
update_plugins_config_yaml(manifest=manifest)
450450

451+
def _install_from_local(source: str, catalog: PluginCatalog, use_test: bool = False):
452+
"""Handle local-based installation (not yet implemented).
453+
454+
Args:
455+
source: local path.
456+
catalog: The plugin catalog.
457+
458+
Raises:
459+
NotImplementedError: local installation is not yet supported.
460+
"""
461+
raise NotImplementedError("Local installation is not yet implemented")
451462

452463
def _install_from_git(source: str, catalog: PluginCatalog, use_test: bool = False):
453464
"""Handle git-based installation (not yet implemented).
@@ -531,6 +542,7 @@ def install(source: str, install_type: str | None, catalog: PluginCatalog):
531542
"monorepo": _install_from_monorepo,
532543
"pypi": _install_from_pypi,
533544
"test-pypi": _install_from_pypi,
545+
"local": _install_from_local,
534546
}
535547

536548
handler = handlers.get(install_type)

0 commit comments

Comments
 (0)