Exemple #1
0
def get_external_pipeline_from_python_location(pipeline_name):
    repository_location_handle = RepositoryLocationHandle.create_python_env_location(
        loadable_target_origin=LoadableTargetOrigin(
            executable_path=sys.executable,
            attribute="nope",
            python_file=file_relative_path(__file__,
                                           "test_default_run_launcher.py"),
        ),
        location_name="nope",
    )

    yield (PythonEnvRepositoryLocation(repository_location_handle).
           get_repository("nope").get_full_external_pipeline(pipeline_name))
Exemple #2
0
def get_bar_repo_handle():
    return (PythonEnvRepositoryLocation(
        get_bar_repo_repository_location_handle()).get_repository(
            'bar_repo').handle)