Exemplo n.º 1
0
def loadable_targets_from_python_package(package_name,
                                         working_directory,
                                         remove_from_path_fn=None):
    module = load_python_module(package_name,
                                working_directory,
                                remove_from_path_fn=remove_from_path_fn)
    return loadable_targets_from_loaded_module(module)
Exemplo n.º 2
0
def loadable_targets_from_python_package(
    package_name: str,
    working_directory: Optional[str],
    remove_from_path_fn: Callable[[], List[str]] = None,
) -> Sequence[LoadableTarget]:
    module = load_python_module(package_name,
                                working_directory,
                                remove_from_path_fn=remove_from_path_fn)
    return loadable_targets_from_loaded_module(module)
Exemplo n.º 3
0
def loadable_targets_from_python_module(module_name, remove_from_path_fn=None):
    module = load_python_module(module_name,
                                warn_only=True,
                                remove_from_path_fn=remove_from_path_fn)
    return loadable_targets_from_loaded_module(module)