Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3465,6 +3465,21 @@ def patch_trigger_dag_run_post_body():
- Locates the `_dict = self.model_dump(...)` line in `to_dict()`
- Inserts a conditional to add `"logical_date": None` if it's missing
"""
current_python_version = f"{sys.version_info.major}.{sys.version_info.minor}"
if current_python_version != DEFAULT_PYTHON_MAJOR_MINOR_VERSION:
get_console().print(
f"[error]Python version mismatch: current version is {current_python_version}, "
f"but default version is {DEFAULT_PYTHON_MAJOR_MINOR_VERSION} - this might cause "
f"reproducibility problems with prepared package.[/]"
)
get_console().print(
f"[info]Please reinstall breeze with uv using Python {DEFAULT_PYTHON_MAJOR_MINOR_VERSION}:[/]"
)
get_console().print(
f"\nuv tool install --python {DEFAULT_PYTHON_MAJOR_MINOR_VERSION} -e ./dev/breeze --force\n"
)
sys.exit(1)

TRIGGER_MODEL_PATH = PYTHON_CLIENT_TMP_DIR / Path(
"airflow_client/client/models/trigger_dag_run_post_body.py"
)
Expand Down
Loading