-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #12436 - Migrate to pyproject.toml #14025
Changes from all commits
7e08113
d802294
c7f8059
209cf25
b995023
ee406af
e774f2d
6caeb1e
8624002
e0f79c1
0060e34
8beb7ac
513edfd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ include ingestion/Makefile | |
|
||
.PHONY: help | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[35m%-30s\033[0m %s\n", $$1, $$2}' | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":"}; {printf "\033[35m%-35s\033[0m %s\n", $$2, $$3}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to fix this. The changes from #13677 left the |
||
|
||
.PHONY: install_e2e_tests | ||
install_e2e_tests: ## Install the ingestion module with e2e test dependencies (playwright) | ||
|
@@ -24,40 +24,6 @@ yarn_install_cache: ## Use Yarn to install UI dependencies | |
yarn_start_dev_ui: ## Run the UI locally with Yarn | ||
cd openmetadata-ui/src/main/resources/ui && yarn start | ||
|
||
## Ingestion Core | ||
.PHONY: core_install_dev | ||
core_install_dev: ## Prepare a venv for the ingestion-core module | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cleaning up the ingestion-core since we're not really making any use of it. We can recover the files if we have the need in the future |
||
cd ingestion-core; \ | ||
rm -rf venv; \ | ||
python3 -m venv venv; \ | ||
. venv/bin/activate; \ | ||
python3 -m pip install ".[dev]" | ||
|
||
.PHONY: core_clean | ||
core_clean: ## Clean the ingestion-core generated files | ||
rm -rf ingestion-core/src/metadata/generated | ||
rm -rf ingestion-core/build | ||
rm -rf ingestion-core/dist | ||
|
||
.PHONY: core_generate | ||
core_generate: ## Generate the pydantic models from the JSON Schemas to the ingestion-core module | ||
$(MAKE) core_install_dev | ||
mkdir -p ingestion-core/src/metadata/generated; \ | ||
. ingestion-core/venv/bin/activate; \ | ||
datamodel-codegen --input openmetadata-spec/src/main/resources/json/schema --input-file-type jsonschema --output ingestion-core/src/metadata/generated/schema | ||
$(MAKE) core_py_antlr | ||
|
||
.PHONY: core_bump_version_dev | ||
core_bump_version_dev: ## Bump a `dev` version to the ingestion-core module. To be used when schemas are updated | ||
$(MAKE) core_install_dev | ||
cd ingestion-core; \ | ||
. venv/bin/activate; \ | ||
python -m incremental.update metadata --dev | ||
|
||
.PHONY: core_py_antlr | ||
core_py_antlr: ## Generate the Python core code for parsing FQNs under ingestion-core | ||
antlr4 -Dlanguage=Python3 -o ingestion-core/src/metadata/generated/antlr ${PWD}/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/*.g4 | ||
|
||
.PHONY: py_antlr | ||
py_antlr: ## Generate the Python code for parsing FQNs | ||
antlr4 -Dlanguage=Python3 -o ingestion/src/metadata/generated/antlr ${PWD}/openmetadata-spec/src/main/antlr4/org/openmetadata/schema/*.g4 | ||
|
@@ -171,7 +137,7 @@ generate-schema-docs: ## Generates markdown files for documenting the JSON Sche | |
|
||
#Upgrade release automation scripts below | ||
.PHONY: update_all | ||
update_all: ## To update all the release related files run make update_all RELEASE_VERSION=2.2.2 PY_RELEASE_VERSION=2.2.2.2 | ||
update_all: ## To update all the release related files run make update_all RELEASE_VERSION=2.2.2 PY_RELEASE_VERSION=2.2.2.2 | ||
@echo "The release version is: $(RELEASE_VERSION)" ; \ | ||
echo "The python metadata release version: $(PY_RELEASE_VERSION)" ; \ | ||
$(MAKE) update_maven ; \ | ||
|
@@ -184,15 +150,15 @@ update_all: ## To update all the release related files run make update_all RELEA | |
#make update_all RELEASE_VERSION=2.2.2 PY_RELEASE_VERSION=2.2.2.2 | ||
|
||
.PHONY: update_maven | ||
update_maven: ## To update the common and pom.xml maven version | ||
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) | ||
#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 | ||
|
||
|
||
.PHONY: update_github_action_paths | ||
update_github_action_paths: ## To update the github action ci docker files | ||
update_github_action_paths: ## To update the github action ci docker files | ||
@echo "Updating docker github action release version to $(RELEASE_VERSION)... "; \ | ||
file_paths="docker/docker-compose-quickstart/Dockerfile \ | ||
.github/workflows/docker-openmetadata-db.yml \ | ||
|
@@ -212,7 +178,7 @@ update_github_action_paths: ## To update the github action ci docker files | |
#make update_github_action_paths RELEASE_VERSION=2.2.2 | ||
|
||
.PHONY: update_python_release_paths | ||
update_python_release_paths: ## To update the setup.py files | ||
update_python_release_paths: ## To update the setup.py files | ||
file_paths="ingestion/setup.py \ | ||
openmetadata-airflow-apis/setup.py"; \ | ||
echo "Updating Python setup file versions to $(PY_RELEASE_VERSION)... "; \ | ||
|
@@ -223,7 +189,7 @@ update_python_release_paths: ## To update the setup.py files | |
#make update_python_release_paths PY_RELEASE_VERSION=2.2.2.2 | ||
|
||
.PHONY: update_dockerfile_version | ||
update_dockerfile_version: ## To update the dockerfiles version | ||
update_dockerfile_version: ## To update the dockerfiles version | ||
@file_paths="docker/docker-compose-ingestion/docker-compose-ingestion.yml \ | ||
docker/docker-compose-openmetadata/docker-compose-openmetadata.yml \ | ||
docker/docker-compose-quickstart/docker-compose-postgres.yml \ | ||
|
@@ -236,7 +202,7 @@ update_dockerfile_version: ## To update the dockerfiles version | |
#make update_dockerfile_version RELEASE_VERSION=2.2.2 | ||
|
||
.PHONY: update_ingestion_dockerfile_version | ||
update_ingestion_dockerfile_version: ## To update the ingestion dockerfiles version | ||
update_ingestion_dockerfile_version: ## To update the ingestion dockerfiles version | ||
@file_paths="ingestion/Dockerfile \ | ||
ingestion/operators/docker/Dockerfile"; \ | ||
echo "Updating ingestion dockerfile release version to $(PY_RELEASE_VERSION)... "; \ | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the main piece that was going to be deprecated