Refactor Breeze to group related methods and classes together (#23556)
authorJarek Potiuk <jarek@potiuk.com>
Sat, 7 May 2022 13:56:34 +0000 (15:56 +0200)
committerGitHub <noreply@github.com>
Sat, 7 May 2022 13:56:34 +0000 (15:56 +0200)
commit35b917396fa35e70c47e114da8f178b1afeca5bc
tree300ec703734883f5bf2fc214bf0059af84dbff96
parent22a564296be1aee62d738105859bd94003ad9afc
Refactor Breeze to group related methods and classes together (#23556)

This change refactors Breeze classes to more consistent approach.

* The "commands" package only contains commands
* All Parameters (BuildCi, BuildProd, BuildDoc, Shell) are now
  in "params" package
* Required/Optional Build args are now members of the
  BuildCiParams, BuildProdParams which makes the params
  much more self-contained..
* All utils are in "utils" package

This helps with avoiding circular imports (all utios are now
standalone and do not use any of the commands.

Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
26 files changed:
dev/breeze/src/airflow_breeze/breeze.py
dev/breeze/src/airflow_breeze/build_image/ci/__init__.py [deleted file]
dev/breeze/src/airflow_breeze/build_image/ci/build_ci_image.py [deleted file]
dev/breeze/src/airflow_breeze/build_image/prod/__init__.py [deleted file]
dev/breeze/src/airflow_breeze/build_image/prod/build_prod_image.py [deleted file]
dev/breeze/src/airflow_breeze/commands/ci_image_commands.py [moved from dev/breeze/src/airflow_breeze/commands/ci_image_tools.py with 52% similarity]
dev/breeze/src/airflow_breeze/commands/configuration_and_maintenance_commands.py [moved from dev/breeze/src/airflow_breeze/commands/configuration_and_maintenance.py with 99% similarity]
dev/breeze/src/airflow_breeze/commands/developer_commands.py
dev/breeze/src/airflow_breeze/commands/main_command.py [moved from dev/breeze/src/airflow_breeze/commands/main.py with 94% similarity]
dev/breeze/src/airflow_breeze/commands/production_image_commands.py [moved from dev/breeze/src/airflow_breeze/commands/production_image_tools.py with 67% similarity]
dev/breeze/src/airflow_breeze/commands/release_management_commands.py [moved from dev/breeze/src/airflow_breeze/commands/release_management.py with 98% similarity]
dev/breeze/src/airflow_breeze/commands/testing_commands.py [moved from dev/breeze/src/airflow_breeze/commands/testing.py with 91% similarity]
dev/breeze/src/airflow_breeze/configure_rich_click.py [moved from dev/breeze/src/airflow_breeze/commands/configure_rich_click.py with 85% similarity]
dev/breeze/src/airflow_breeze/params/build_ci_params.py [moved from dev/breeze/src/airflow_breeze/build_image/ci/build_ci_params.py with 86% similarity]
dev/breeze/src/airflow_breeze/params/build_prod_params.py [moved from dev/breeze/src/airflow_breeze/build_image/prod/build_prod_params.py with 91% similarity]
dev/breeze/src/airflow_breeze/params/doc_build_params.py [new file with mode: 0644]
dev/breeze/src/airflow_breeze/params/shell_params.py [moved from dev/breeze/src/airflow_breeze/shell/shell_params.py with 99% similarity]
dev/breeze/src/airflow_breeze/shell/__init__.py [deleted file]
dev/breeze/src/airflow_breeze/shell/enter_shell.py [deleted file]
dev/breeze/src/airflow_breeze/utils/common_options.py [moved from dev/breeze/src/airflow_breeze/commands/common_options.py with 99% similarity]
dev/breeze/src/airflow_breeze/utils/custom_param_types.py [moved from dev/breeze/src/airflow_breeze/commands/custom_param_types.py with 100% similarity]
dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
dev/breeze/src/airflow_breeze/utils/mark_image_as_refreshed.py [moved from dev/breeze/src/airflow_breeze/build_image/__init__.py with 55% similarity]
dev/breeze/src/airflow_breeze/utils/pulll_image.py
dev/breeze/src/airflow_breeze/utils/rebuild_image_if_needed.py [deleted file]
dev/breeze/src/airflow_breeze/utils/registry.py