diff --git a/Makefile b/Makefile index 7a25de922f9..f2754a17e1d 100644 --- a/Makefile +++ b/Makefile @@ -167,8 +167,8 @@ update_all: ## To update all the release related files run make update_all RELE .PHONY: update_maven update_maven: ## To update the common and pom.xml maven version - @echo "Updating Maven projects to version $(RELEASE_VERSION)..."; \ - mvn versions:set -DnewVersion=$(RELEASE_VERSION) + @echo "Updating Maven projects to version $(MVN_RELEASE_VERSION)..."; \ + mvn versions:set -DnewVersion=$(MVN_RELEASE_VERSION) #remove comment and use the below section when want to use this sub module "update_maven" independently to update github actions #make update_maven RELEASE_VERSION=2.2.2 @@ -179,6 +179,7 @@ update_github_action_paths: ## To update the github action ci docker files file_paths="docker/docker-compose-quickstart/Dockerfile \ .github/workflows/docker-openmetadata-db.yml \ .github/workflows/docker-openmetadata-ingestion-base.yml \ + .github/workflows/docker-openmetadata-ingestion-base-slim.yml \ .github/workflows/docker-openmetadata-ingestion.yml \ .github/workflows/docker-openmetadata-postgres.yml \ .github/workflows/docker-openmetadata-server.yml"; \ @@ -195,8 +196,8 @@ update_github_action_paths: ## To update the github action ci docker files .PHONY: update_python_release_paths update_python_release_paths: ## To update the setup.py files - file_paths="ingestion/setup.py \ - openmetadata-airflow-apis/setup.py"; \ + file_paths="ingestion/pyproject.toml \ + openmetadata-airflow-apis/pyproject.toml"; \ echo "Updating Python setup file versions to $(PY_RELEASE_VERSION)... "; \ for file_path in $$file_paths; do \ python3 scripts/update_version.py 2 $$file_path -s $(PY_RELEASE_VERSION) ; \ diff --git a/scripts/update_version.py b/scripts/update_version.py index c8bf177bebe..d7f75097eec 100644 --- a/scripts/update_version.py +++ b/scripts/update_version.py @@ -42,7 +42,7 @@ def update_python_files(file_path, release_version): content = file.read() pattern = r'version\s*=\s*"([^"]+)"' - updated_content = re.sub(pattern, f'version="{release_version}"', content) + updated_content = re.sub(pattern, f'version = "{release_version}"', content) with open(file_path, 'w') as file: file.write(updated_content)