|
14 | 14 | from typing import TYPE_CHECKING, Callable, List, Optional
|
15 | 15 |
|
16 | 16 | import toml
|
17 |
| -from dagger import CacheSharingMode, CacheVolume, Client, Container, DaggerError, Directory, File, Platform, Secret |
| 17 | +from dagger import CacheVolume, Client, Container, DaggerError, Directory, File, Platform, Secret |
18 | 18 | from dagger.engine._version import CLI_VERSION as dagger_engine_version
|
19 | 19 | from pipelines import consts
|
20 | 20 | from pipelines.consts import (
|
@@ -365,36 +365,6 @@ def with_python_connector_source(context: ConnectorContext) -> Container:
|
365 | 365 | return with_python_package(context, testing_environment, connector_source_path)
|
366 | 366 |
|
367 | 367 |
|
368 |
| -async def with_python_connector_installed(context: ConnectorContext) -> Container: |
369 |
| - """Install an airbyte connector python package in a testing environment. |
370 |
| -
|
371 |
| - Args: |
372 |
| - context (ConnectorContext): The current test context, providing the repository directory from which the connector sources will be pulled. |
373 |
| - Returns: |
374 |
| - Container: A python environment container (with the connector installed). |
375 |
| - """ |
376 |
| - connector_source_path = str(context.connector.code_directory) |
377 |
| - testing_environment: Container = with_testing_dependencies(context) |
378 |
| - exclude = [ |
379 |
| - f"{context.connector.code_directory}/{item}" |
380 |
| - for item in [ |
381 |
| - "secrets", |
382 |
| - "metadata.yaml", |
383 |
| - "bootstrap.md", |
384 |
| - "icon.svg", |
385 |
| - "README.md", |
386 |
| - "Dockerfile", |
387 |
| - "acceptance-test-docker.sh", |
388 |
| - "build.gradle", |
389 |
| - ".hypothesis", |
390 |
| - ".dockerignore", |
391 |
| - ] |
392 |
| - ] |
393 |
| - return await with_installed_python_package( |
394 |
| - context, testing_environment, connector_source_path, additional_dependency_groups=["dev", "tests", "main"], exclude=exclude |
395 |
| - ) |
396 |
| - |
397 |
| - |
398 | 368 | async def with_ci_credentials(context: PipelineContext, gsm_secret: Secret) -> Container:
|
399 | 369 | """Install the ci_credentials package in a python environment.
|
400 | 370 |
|
|
0 commit comments