diff --git a/ingestion/Dockerfile.ci b/ingestion/Dockerfile.ci index 37f42003c7ae..bc49bdf9e77b 100644 --- a/ingestion/Dockerfile.ci +++ b/ingestion/Dockerfile.ci @@ -76,13 +76,13 @@ ENV PIP_QUIET=1 RUN pip install --upgrade pip WORKDIR /home/airflow/openmetadata-airflow-apis -RUN pip install "." +RUN PIP_CONSTRAINT=/home/airflow/openmetadata-airflow-apis/constraints.txt pip install "." WORKDIR /home/airflow/ingestion # Argument to provide for Ingestion Dependencies to install. Defaults to all ARG INGESTION_DEPENDENCY="all" -RUN pip install ".[${INGESTION_DEPENDENCY}]" +RUN PIP_CONSTRAINT=/home/airflow/ingestion/constraints.txt pip install ".[${INGESTION_DEPENDENCY}]" # Temporary workaround for https://github.com/open-metadata/OpenMetadata/issues/9593 RUN echo "Image built for $(uname -m)" diff --git a/ingestion/Makefile b/ingestion/Makefile index d9fb87c64a9c..217810ca480d 100644 --- a/ingestion/Makefile +++ b/ingestion/Makefile @@ -11,23 +11,23 @@ endif .PHONY: install install: ## Install the ingestion module to the current environment - python -m pip install $(INGESTION_DIR)/ + PIP_CONSTRAINT=$(INGESTION_DIR)/constraints.txt python -m pip install $(INGESTION_DIR)/ .PHONY: install_dev install_dev: ## Install the ingestion module with dev dependencies - python -m pip install "$(INGESTION_DIR)[dev]/" + PIP_CONSTRAINT=$(INGESTION_DIR)/constraints.txt python -m pip install "$(INGESTION_DIR)[dev]/" .PHONY: install_test install_test: ## Install the ingestion module with test dependencies - python -m pip install "$(INGESTION_DIR)[test]/" + PIP_CONSTRAINT=$(INGESTION_DIR)/constraints.txt python -m pip install "$(INGESTION_DIR)[test]/" .PHONY: install_all install_all: ## Install the ingestion module with all dependencies - python -m pip install "$(INGESTION_DIR)[all]/" + PIP_CONSTRAINT=$(INGESTION_DIR)/constraints.txt python -m pip install "$(INGESTION_DIR)[all]/" .PHONY: install_apis install_apis: ## Install the REST APIs module to the current environment - python -m pip install $(ROOT_DIR)/openmetadata-airflow-apis/ setuptools==69.0.2 + PIP_CONSTRAINT=$(ROOT_DIR)/openmetadata-airflow-apis/constraints.txt python -m pip install $(ROOT_DIR)/openmetadata-airflow-apis/ setuptools==69.0.2 .PHONY: lint lint: ## Run pylint on the Python sources to analyze the codebase diff --git a/ingestion/constraints.txt b/ingestion/constraints.txt new file mode 100644 index 000000000000..0685d33561b5 --- /dev/null +++ b/ingestion/constraints.txt @@ -0,0 +1 @@ +setuptools<72 \ No newline at end of file diff --git a/openmetadata-airflow-apis/constraints.txt b/openmetadata-airflow-apis/constraints.txt new file mode 100644 index 000000000000..0685d33561b5 --- /dev/null +++ b/openmetadata-airflow-apis/constraints.txt @@ -0,0 +1 @@ +setuptools<72 \ No newline at end of file