From be58e0b05f925fc6bbc5aee3b30ef69ed78c4a4e Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Tue, 12 Nov 2024 13:48:33 -0800 Subject: [PATCH] add dynamic version bypass --- .../pipelines/dagger/actions/python/common.py | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/airbyte-ci/connectors/pipelines/pipelines/dagger/actions/python/common.py b/airbyte-ci/connectors/pipelines/pipelines/dagger/actions/python/common.py index 8b30b0c77744..a5e156187417 100644 --- a/airbyte-ci/connectors/pipelines/pipelines/dagger/actions/python/common.py +++ b/airbyte-ci/connectors/pipelines/pipelines/dagger/actions/python/common.py @@ -250,13 +250,20 @@ async def apply_python_development_overrides(context: ConnectorContext, connecto context.logger.info(f"Mounting CDK from '{path_to_cdk}' to '{cdk_mount_dir}'") # Install the airbyte-cdk package from the local directory - connector_container = connector_container.with_directory( - cdk_mount_dir, - directory_to_mount, - ).with_exec( - ["pip", "install", "--force-reinstall", f"{cdk_mount_dir}"], - # TODO: Consider moving to Poetry-native installation: - # ["poetry", "add", cdk_mount_dir] + connector_container = ( + connector_container.with_env_variable( + "POETRY_DYNAMIC_VERSIONING_BYPASS", + "0.0.0-dev.0", # Replace dynamic versioning with dev version + ) + .with_directory( + cdk_mount_dir, + directory_to_mount, + ) + .with_exec( + ["pip", "install", "--force-reinstall", f"{cdk_mount_dir}"], + # TODO: Consider moving to Poetry-native installation: + # ["poetry", "add", cdk_mount_dir] + ) ) return connector_container