chore(Makefile): Update Make Recipes for 1.3.0 changes (#14951)

This commit is contained in:
Akash Jain 2024-02-05 23:45:21 +05:30 committed by GitHub
parent 115c62b210
commit 22b7ac3a0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -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) ; \

View File

@ -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)