amsdal_cli 0.5.0__tar.gz → 0.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/PKG-INFO +1 -1
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/change-logs.md +6 -0
- amsdal_cli-0.5.1/latest-changelogs.md +5 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/pyproject.toml +4 -1
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/__about__.py +1 -1
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/mixin.py +1 -1
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_new.py +2 -2
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_model.py +1 -1
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/apply.py +12 -4
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/list.py +20 -6
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/make.py +2 -2
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/initialize.py +6 -2
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/migrate_models.py +6 -7
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/command.py +2 -2
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/utils.py +42 -19
- amsdal_cli-0.5.0/latest-changelogs.md +0 -5
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/.editorconfig +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/.gitignore +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/CONTRIBUTING.md +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/LICENSE.txt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/README.md +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/license_check.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/release_notes/.gitkeep +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/scripts/release.sh +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/scripts/tag_check.sh +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/Third-Party Materials - AMSDAL Dependencies - License Notices.md +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/constants.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/custom_code.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/options.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/schemas_directory.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/custom_code_extender.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/options_extender.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/base.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_custom_code_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_options_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_statics_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_transactions_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/mixins/enrich_schemas_mixin.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/utils/merger.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/services/builder.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/utils/build_config_file.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/callbacks.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/constants.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/ci_cd/templates/github.yml +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/clean/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/clean/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_list.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/dependency/sub_commands/dependency_new.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/deploy/sub_commands/deploy_list.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/enums.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/constants.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_checkout.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_list.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/sub_commands/env_new.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/environments/utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/constants.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_list.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/secret/sub_commands/secret_new.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/allowlist/sub_commands/allowlist_new.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_delete.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_new.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/basic_auth/sub_commands/basic_auth_retrieve.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/security/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/expose_db.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/get_monitoring_info.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/cloud/sub_commands/sync_db.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/enums.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_frontend_config.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_hook.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_modifier.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_permission.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_property.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_tests.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/sub_commands/generate_transaction.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/async_transaction.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/hook.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/constructor.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/display_name.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/modifier/version_name.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/property.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/templates/transaction.pyt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/build_base_path.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/cast_to_attribute_type.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/model_attributes.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/async_mode_utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/conftest_utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/function_utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/model_utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/templates/async/conftest.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/templates/sync/conftest.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/type_utils.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/generate/utils/tests/unit.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/constants.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.dependencies +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.environment +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal/.secrets +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.amsdal-cli +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/.gitignore +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/README.md +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/config.yml +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/new/templates/requirements.txt +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/build.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/config_updater.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/credentials.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/meta.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/model_generator.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/register_connection/utils/tables.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/restore/enums.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/models_watch_filter.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/filters/static_files_watch_filter.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/services/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/serve/services/supervisor.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/tests/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/tests/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/models.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/verify_json_model.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/verify/utils/verify_python_file.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/app.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/command.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/sub_commands/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/worker/sub_commands/run.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/config/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/config/main.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/main.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/py.typed +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/alias_group.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/check_versions.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/cli_config.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/copier.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/markdown_patch.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/render_template.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/schema_repository.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/text.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/__init__.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/base.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/dummy.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/enums.py +0 -0
- {amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/utils/vcs/git.py +0 -0
|
@@ -260,7 +260,7 @@ def _check_missing_generated_migrations(
|
|
|
260
260
|
if not amsdal_manager.is_authenticated:
|
|
261
261
|
amsdal_manager.authenticate()
|
|
262
262
|
|
|
263
|
-
amsdal_manager.post_setup()
|
|
263
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
264
264
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
265
265
|
cli_config.models_format = ModelsFormat.PY
|
|
266
266
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
@@ -309,7 +309,7 @@ async def _async_check_missing_generated_migrations(
|
|
|
309
309
|
if not amsdal_manager.is_authenticated:
|
|
310
310
|
amsdal_manager.authenticate()
|
|
311
311
|
|
|
312
|
-
await amsdal_manager.post_setup()
|
|
312
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
313
313
|
|
|
314
314
|
migrations_dir = app_source_path / MIGRATIONS_DIR_NAME
|
|
315
315
|
|
|
@@ -105,7 +105,7 @@ def generate_model(
|
|
|
105
105
|
|
|
106
106
|
if unique_attrs:
|
|
107
107
|
_unique = json_schema.setdefault('unique', [])
|
|
108
|
-
_unique.extend(unique_attrs)
|
|
108
|
+
_unique.extend(unique_attrs)
|
|
109
109
|
|
|
110
110
|
for attr in parsed_attrs:
|
|
111
111
|
property_info: dict[str, Any] = {
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/apply.py
RENAMED
|
@@ -30,6 +30,7 @@ def _sync_apply(
|
|
|
30
30
|
from amsdal_models.migration.file_migration_executor import FileMigrationExecutorManager
|
|
31
31
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
32
32
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
33
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
33
34
|
|
|
34
35
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
35
36
|
from amsdal_cli.utils.text import rich_info
|
|
@@ -42,12 +43,15 @@ def _sync_apply(
|
|
|
42
43
|
amsdal_manager.setup()
|
|
43
44
|
|
|
44
45
|
amsdal_manager.authenticate()
|
|
45
|
-
amsdal_manager.post_setup()
|
|
46
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
46
47
|
|
|
47
48
|
app_migrations_loader = MigrationsLoader(
|
|
48
49
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
49
50
|
module_type=ModuleType.USER,
|
|
50
|
-
module_name=
|
|
51
|
+
module_name=build_migrations_module_name(
|
|
52
|
+
None,
|
|
53
|
+
MIGRATIONS_DIR_NAME,
|
|
54
|
+
),
|
|
51
55
|
)
|
|
52
56
|
schemas = MigrationSchemas()
|
|
53
57
|
|
|
@@ -104,6 +108,7 @@ async def _async_sync_apply(
|
|
|
104
108
|
from amsdal_models.migration.file_migration_executor import AsyncFileMigrationExecutorManager
|
|
105
109
|
from amsdal_models.migration.migrations import MigrationSchemas
|
|
106
110
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
111
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
107
112
|
|
|
108
113
|
from amsdal_cli.commands.migrations.constants import MIGRATIONS_DIR_NAME
|
|
109
114
|
from amsdal_cli.utils.text import rich_info
|
|
@@ -117,12 +122,15 @@ async def _async_sync_apply(
|
|
|
117
122
|
try:
|
|
118
123
|
amsdal_manager.authenticate()
|
|
119
124
|
|
|
120
|
-
await amsdal_manager.post_setup()
|
|
125
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
121
126
|
|
|
122
127
|
app_migrations_loader = MigrationsLoader(
|
|
123
128
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
124
129
|
module_type=ModuleType.USER,
|
|
125
|
-
module_name=
|
|
130
|
+
module_name=build_migrations_module_name(
|
|
131
|
+
None,
|
|
132
|
+
MIGRATIONS_DIR_NAME,
|
|
133
|
+
),
|
|
126
134
|
)
|
|
127
135
|
schemas = MigrationSchemas()
|
|
128
136
|
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/list.py
RENAMED
|
@@ -19,7 +19,7 @@ def _fetch_migrations(app_migrations_path: Path) -> list['MigrationFile']:
|
|
|
19
19
|
if not amsdal_manager.is_setup:
|
|
20
20
|
amsdal_manager.setup()
|
|
21
21
|
amsdal_manager.authenticate()
|
|
22
|
-
amsdal_manager.post_setup()
|
|
22
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
23
23
|
|
|
24
24
|
store = FileMigrationStore(app_migrations_path)
|
|
25
25
|
store.init_migration_table()
|
|
@@ -37,7 +37,7 @@ async def _async_fetch_migrations(app_migrations_path: Path) -> list['MigrationF
|
|
|
37
37
|
|
|
38
38
|
try:
|
|
39
39
|
amsdal_manager.authenticate()
|
|
40
|
-
await amsdal_manager.post_setup()
|
|
40
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg,misc]
|
|
41
41
|
|
|
42
42
|
store = AsyncFileMigrationStore(app_migrations_path)
|
|
43
43
|
await store.init_migration_table()
|
|
@@ -60,6 +60,7 @@ def list_migrations(
|
|
|
60
60
|
from amsdal.configs.main import settings
|
|
61
61
|
from amsdal_models.migration.data_classes import ModuleType
|
|
62
62
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
63
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
63
64
|
from amsdal_models.migration.utils import contrib_to_module_root_path
|
|
64
65
|
from amsdal_utils.config.manager import AmsdalConfigManager
|
|
65
66
|
|
|
@@ -96,7 +97,10 @@ def list_migrations(
|
|
|
96
97
|
core_loader = MigrationsLoader(
|
|
97
98
|
migrations_dir=CORE_MIGRATIONS_PATH,
|
|
98
99
|
module_type=ModuleType.CORE,
|
|
99
|
-
module_name=
|
|
100
|
+
module_name=build_migrations_module_name(
|
|
101
|
+
'amsdal',
|
|
102
|
+
'__migrations__',
|
|
103
|
+
),
|
|
100
104
|
)
|
|
101
105
|
contrib_loaders: list[tuple[str, MigrationsLoader]] = []
|
|
102
106
|
|
|
@@ -109,7 +113,10 @@ def list_migrations(
|
|
|
109
113
|
MigrationsLoader(
|
|
110
114
|
migrations_dir=contrib_root_path / settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
111
115
|
module_type=ModuleType.CONTRIB,
|
|
112
|
-
module_name=
|
|
116
|
+
module_name=build_migrations_module_name(
|
|
117
|
+
'.'.join(contrib.split('.')[:-2]),
|
|
118
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
119
|
+
),
|
|
113
120
|
),
|
|
114
121
|
),
|
|
115
122
|
)
|
|
@@ -117,7 +124,10 @@ def list_migrations(
|
|
|
117
124
|
app_migrations_loader = MigrationsLoader(
|
|
118
125
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
119
126
|
module_type=ModuleType.USER,
|
|
120
|
-
module_name=
|
|
127
|
+
module_name=build_migrations_module_name(
|
|
128
|
+
None,
|
|
129
|
+
MIGRATIONS_DIR_NAME,
|
|
130
|
+
),
|
|
121
131
|
)
|
|
122
132
|
|
|
123
133
|
rprint(rich_success('Core:'))
|
|
@@ -130,7 +140,11 @@ def list_migrations(
|
|
|
130
140
|
rprint(rich_success('Contrib:'))
|
|
131
141
|
for _contrib, _loader in contrib_loaders:
|
|
132
142
|
_contrib_name = _contrib.rsplit('.', 2)[0]
|
|
133
|
-
|
|
143
|
+
_contrib_module_name = build_migrations_module_name(
|
|
144
|
+
'.'.join(_contrib.split('.')[:-2]),
|
|
145
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
146
|
+
)
|
|
147
|
+
_applied_numbers = _contrib_applied_numbers[_contrib_module_name]
|
|
134
148
|
|
|
135
149
|
for _migration in _loader:
|
|
136
150
|
_is_migrated = 'x' if _migration.number in _applied_numbers else ' '
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/migrations/sub_commands/make.py
RENAMED
|
@@ -36,7 +36,7 @@ def _sync_make_migrations(
|
|
|
36
36
|
if not amsdal_manager._is_setup:
|
|
37
37
|
amsdal_manager.setup()
|
|
38
38
|
amsdal_manager.authenticate()
|
|
39
|
-
amsdal_manager.post_setup()
|
|
39
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
40
40
|
|
|
41
41
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
42
42
|
migrations_dir: Path = cli_config.app_directory / SOURCES_DIR / MIGRATIONS_DIR_NAME
|
|
@@ -89,7 +89,7 @@ async def _async_make_migrations(
|
|
|
89
89
|
if not amsdal_manager.is_setup:
|
|
90
90
|
await amsdal_manager.setup()
|
|
91
91
|
amsdal_manager.authenticate()
|
|
92
|
-
await amsdal_manager.post_setup()
|
|
92
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
93
93
|
|
|
94
94
|
schema_repository = build_schema_repository(cli_config=cli_config)
|
|
95
95
|
migrations_dir: Path = cli_config.app_directory / SOURCES_DIR / MIGRATIONS_DIR_NAME
|
|
@@ -11,6 +11,10 @@ async def init_amsdal(config_path: Path, temp_dir: Path) -> None:
|
|
|
11
11
|
USER_MODELS_MODULE_PATH=temp_dir / 'models',
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
+
if not settings.USER_MODELS_MODULE_PATH:
|
|
15
|
+
msg = 'USER_MODELS_MODULE_PATH must be set in settings.'
|
|
16
|
+
raise ValueError(msg)
|
|
17
|
+
|
|
14
18
|
settings.USER_MODELS_MODULE_PATH.mkdir(parents=True, exist_ok=True)
|
|
15
19
|
(settings.USER_MODELS_MODULE_PATH / '__init__.py').touch(exist_ok=True)
|
|
16
20
|
|
|
@@ -25,7 +29,7 @@ async def init_amsdal(config_path: Path, temp_dir: Path) -> None:
|
|
|
25
29
|
amsdal_manager = AmsdalManager()
|
|
26
30
|
amsdal_manager.setup()
|
|
27
31
|
amsdal_manager.authenticate()
|
|
28
|
-
amsdal_manager.post_setup()
|
|
32
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
29
33
|
|
|
30
34
|
|
|
31
35
|
async def _async_init() -> None:
|
|
@@ -34,4 +38,4 @@ async def _async_init() -> None:
|
|
|
34
38
|
amsdal_manager = AsyncAmsdalManager()
|
|
35
39
|
await amsdal_manager.setup()
|
|
36
40
|
amsdal_manager.authenticate()
|
|
37
|
-
await amsdal_manager.post_setup()
|
|
41
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
@@ -50,7 +50,7 @@ async def migrate_models_to_lakehouse(
|
|
|
50
50
|
build_dir=temp_dir,
|
|
51
51
|
)
|
|
52
52
|
|
|
53
|
-
sys.path.insert(0, str(settings.USER_MODELS_MODULE_PATH.absolute()))
|
|
53
|
+
sys.path.insert(0, str(settings.USER_MODELS_MODULE_PATH.absolute())) # type: ignore[union-attr]
|
|
54
54
|
|
|
55
55
|
if config_manager.get_config().async_mode:
|
|
56
56
|
await _async_migrate_models(config_path)
|
|
@@ -88,7 +88,7 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
88
88
|
new_manager = AmsdalManager()
|
|
89
89
|
if not new_manager.is_setup:
|
|
90
90
|
new_manager.setup()
|
|
91
|
-
new_manager.post_setup()
|
|
91
|
+
new_manager.post_setup() # type: ignore[call-arg]
|
|
92
92
|
|
|
93
93
|
schemas = MigrationSchemas()
|
|
94
94
|
executor = DefaultMigrationExecutor(schemas, use_foreign_keys=True)
|
|
@@ -121,7 +121,6 @@ def _migrate_models(config_path: Path) -> None:
|
|
|
121
121
|
_schemas_map = {_schema.title: _schema for _schema in _schemas}
|
|
122
122
|
|
|
123
123
|
for object_schema in _schemas:
|
|
124
|
-
|
|
125
124
|
for _operation_data in BaseFileMigrationGenerator.build_operations(
|
|
126
125
|
ModuleType.USER,
|
|
127
126
|
object_schema,
|
|
@@ -179,7 +178,7 @@ async def _async_migrate_models(config_path: Path) -> None:
|
|
|
179
178
|
new_manager = AsyncAmsdalManager()
|
|
180
179
|
if not new_manager.is_setup:
|
|
181
180
|
await new_manager.setup()
|
|
182
|
-
await new_manager.post_setup()
|
|
181
|
+
await new_manager.post_setup() # type: ignore[call-arg, misc]
|
|
183
182
|
|
|
184
183
|
schemas = MigrationSchemas()
|
|
185
184
|
executor = DefaultAsyncMigrationExecutor(schemas, use_foreign_keys=True)
|
|
@@ -258,7 +257,7 @@ def _migrate_data(new_connection_name: str) -> None:
|
|
|
258
257
|
origin_manager = AmsdalManager()
|
|
259
258
|
if not origin_manager.is_setup:
|
|
260
259
|
origin_manager.setup()
|
|
261
|
-
origin_manager.post_setup()
|
|
260
|
+
origin_manager.post_setup() # type: ignore[call-arg]
|
|
262
261
|
|
|
263
262
|
model_class_loader = ModelClassLoader(settings.USER_MODELS_MODULE)
|
|
264
263
|
tables_for_connection = _resolve_tables_for_connection(new_connection_name)
|
|
@@ -311,7 +310,7 @@ async def _async_migrate_data(new_connection_name: str) -> None:
|
|
|
311
310
|
origin_manager = AsyncAmsdalManager()
|
|
312
311
|
if not origin_manager.is_setup:
|
|
313
312
|
await origin_manager.setup()
|
|
314
|
-
await origin_manager.post_setup()
|
|
313
|
+
await origin_manager.post_setup() # type: ignore[call-arg, misc]
|
|
315
314
|
|
|
316
315
|
model_class_loader = ModelClassLoader(settings.USER_MODELS_MODULE)
|
|
317
316
|
tables_for_connection = _resolve_tables_for_connection(new_connection_name)
|
|
@@ -347,7 +346,7 @@ async def _async_migrate_data(new_connection_name: str) -> None:
|
|
|
347
346
|
force_insert = True
|
|
348
347
|
lakehouse_item = model_class(**item.model_dump_refs())
|
|
349
348
|
|
|
350
|
-
await lakehouse_item.asave(
|
|
349
|
+
await lakehouse_item.asave( # type: ignore[misc]
|
|
351
350
|
force_insert=force_insert,
|
|
352
351
|
using=LAKEHOUSE_DB_ALIAS,
|
|
353
352
|
)
|
|
@@ -45,7 +45,7 @@ async def _async_serve(
|
|
|
45
45
|
async def on_event_async(self, *args: Any, **kwargs: Any) -> None: # noqa: ARG002
|
|
46
46
|
if not amsdal_manager._is_setup:
|
|
47
47
|
await amsdal_manager.setup()
|
|
48
|
-
await amsdal_manager.post_setup()
|
|
48
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg, misc]
|
|
49
49
|
|
|
50
50
|
if not amsdal_manager.is_authenticated:
|
|
51
51
|
amsdal_manager.authenticate()
|
|
@@ -159,7 +159,7 @@ def serve_command(
|
|
|
159
159
|
def on_event(self, *args: Any, **kwargs: Any) -> None: # noqa: ARG002
|
|
160
160
|
if not amsdal_manager._is_setup:
|
|
161
161
|
amsdal_manager.setup()
|
|
162
|
-
amsdal_manager.post_setup()
|
|
162
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
163
163
|
|
|
164
164
|
if not amsdal_manager.is_authenticated:
|
|
165
165
|
amsdal_manager.authenticate()
|
|
@@ -122,13 +122,13 @@ def build_app_and_check_migrations(
|
|
|
122
122
|
if not amsdal_manager.is_setup:
|
|
123
123
|
amsdal_manager.setup()
|
|
124
124
|
|
|
125
|
-
amsdal_manager.post_setup()
|
|
125
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
126
126
|
amsdal_manager.init_classes()
|
|
127
127
|
|
|
128
128
|
if not amsdal_manager.is_authenticated:
|
|
129
129
|
amsdal_manager.authenticate()
|
|
130
130
|
|
|
131
|
-
amsdal_manager.apply_fixtures()
|
|
131
|
+
amsdal_manager.apply_fixtures() # type: ignore[call-arg]
|
|
132
132
|
rprint(rich_success('OK!'))
|
|
133
133
|
|
|
134
134
|
return amsdal_manager
|
|
@@ -158,7 +158,7 @@ def check_migrations_generated_and_applied(
|
|
|
158
158
|
if not amsdal_manager.is_authenticated:
|
|
159
159
|
amsdal_manager.authenticate()
|
|
160
160
|
|
|
161
|
-
amsdal_manager.post_setup()
|
|
161
|
+
amsdal_manager.post_setup() # type: ignore[call-arg]
|
|
162
162
|
|
|
163
163
|
has_unapplied_migrations = _check_has_unapplied_migrations(build_dir=build_dir)
|
|
164
164
|
|
|
@@ -216,6 +216,7 @@ def _check_has_unapplied_migrations(
|
|
|
216
216
|
from amsdal_models.migration.base_migration_schemas import DefaultMigrationSchemas
|
|
217
217
|
from amsdal_models.migration.file_migration_store import FileMigrationStore
|
|
218
218
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
219
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
219
220
|
from amsdal_models.migration.utils import contrib_to_module_root_path
|
|
220
221
|
from amsdal_utils.models.enums import ModuleType
|
|
221
222
|
|
|
@@ -226,7 +227,10 @@ def _check_has_unapplied_migrations(
|
|
|
226
227
|
core_loader = MigrationsLoader(
|
|
227
228
|
migrations_dir=CORE_MIGRATIONS_PATH,
|
|
228
229
|
module_type=ModuleType.CORE,
|
|
229
|
-
module_name=
|
|
230
|
+
module_name=build_migrations_module_name(
|
|
231
|
+
'amsdal',
|
|
232
|
+
'__migrations__',
|
|
233
|
+
),
|
|
230
234
|
)
|
|
231
235
|
|
|
232
236
|
schemas = DefaultMigrationSchemas()
|
|
@@ -239,9 +243,12 @@ def _check_has_unapplied_migrations(
|
|
|
239
243
|
|
|
240
244
|
if _check_has_unapplied_migrations_per_loader(
|
|
241
245
|
MigrationsLoader(
|
|
242
|
-
migrations_dir=contrib_root_path / settings.
|
|
246
|
+
migrations_dir=contrib_root_path / settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
243
247
|
module_type=ModuleType.CONTRIB,
|
|
244
|
-
module_name=
|
|
248
|
+
module_name=build_migrations_module_name(
|
|
249
|
+
'.'.join(contrib.split('.')[:-2]),
|
|
250
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
251
|
+
),
|
|
245
252
|
),
|
|
246
253
|
all_applied_migrations,
|
|
247
254
|
schemas,
|
|
@@ -252,7 +259,10 @@ def _check_has_unapplied_migrations(
|
|
|
252
259
|
MigrationsLoader(
|
|
253
260
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
254
261
|
module_type=ModuleType.USER,
|
|
255
|
-
module_name=
|
|
262
|
+
module_name=build_migrations_module_name(
|
|
263
|
+
None,
|
|
264
|
+
MIGRATIONS_DIR_NAME,
|
|
265
|
+
),
|
|
256
266
|
),
|
|
257
267
|
all_applied_migrations,
|
|
258
268
|
schemas,
|
|
@@ -300,12 +310,15 @@ def _is_migration_applied(
|
|
|
300
310
|
migration: 'MigrationFile',
|
|
301
311
|
all_applied_migrations: list['MigrationFile'],
|
|
302
312
|
) -> bool:
|
|
313
|
+
from amsdal_models.migration.data_classes import ModuleType
|
|
314
|
+
|
|
303
315
|
for applied_migration in all_applied_migrations:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
and migration.module == applied_migration.module
|
|
308
|
-
|
|
316
|
+
is_applied = migration.type == applied_migration.type and migration.number == applied_migration.number
|
|
317
|
+
|
|
318
|
+
if migration.type == ModuleType.CONTRIB.value:
|
|
319
|
+
is_applied = is_applied and migration.module == applied_migration.module
|
|
320
|
+
|
|
321
|
+
if is_applied:
|
|
309
322
|
return True
|
|
310
323
|
return False
|
|
311
324
|
|
|
@@ -385,13 +398,13 @@ async def async_build_app_and_check_migrations(
|
|
|
385
398
|
if not amsdal_manager.is_setup:
|
|
386
399
|
await amsdal_manager.setup()
|
|
387
400
|
|
|
388
|
-
await amsdal_manager.post_setup()
|
|
401
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg,misc]
|
|
389
402
|
amsdal_manager.init_classes()
|
|
390
403
|
|
|
391
404
|
if not amsdal_manager.is_authenticated:
|
|
392
405
|
amsdal_manager.authenticate()
|
|
393
406
|
|
|
394
|
-
await amsdal_manager.apply_fixtures()
|
|
407
|
+
await amsdal_manager.apply_fixtures() # type: ignore[call-arg,misc]
|
|
395
408
|
rprint(rich_success('OK!'))
|
|
396
409
|
except Exception:
|
|
397
410
|
if amsdal_manager.is_setup:
|
|
@@ -426,7 +439,7 @@ async def async_check_migrations_generated_and_applied(
|
|
|
426
439
|
if not amsdal_manager.is_authenticated:
|
|
427
440
|
amsdal_manager.authenticate()
|
|
428
441
|
|
|
429
|
-
await amsdal_manager.post_setup()
|
|
442
|
+
await amsdal_manager.post_setup() # type: ignore[call-arg,misc]
|
|
430
443
|
|
|
431
444
|
has_unapplied_migrations = await _async_check_has_unapplied_migrations(build_dir=build_dir)
|
|
432
445
|
|
|
@@ -444,6 +457,7 @@ async def _async_check_has_unapplied_migrations(
|
|
|
444
457
|
from amsdal_models.migration.base_migration_schemas import DefaultMigrationSchemas
|
|
445
458
|
from amsdal_models.migration.file_migration_store import AsyncFileMigrationStore
|
|
446
459
|
from amsdal_models.migration.migrations_loader import MigrationsLoader
|
|
460
|
+
from amsdal_models.migration.utils import build_migrations_module_name
|
|
447
461
|
from amsdal_models.migration.utils import contrib_to_module_root_path
|
|
448
462
|
from amsdal_utils.models.enums import ModuleType
|
|
449
463
|
|
|
@@ -454,7 +468,10 @@ async def _async_check_has_unapplied_migrations(
|
|
|
454
468
|
core_loader = MigrationsLoader(
|
|
455
469
|
migrations_dir=CORE_MIGRATIONS_PATH,
|
|
456
470
|
module_type=ModuleType.CORE,
|
|
457
|
-
module_name=
|
|
471
|
+
module_name=build_migrations_module_name(
|
|
472
|
+
'amsdal',
|
|
473
|
+
'__migrations__',
|
|
474
|
+
),
|
|
458
475
|
)
|
|
459
476
|
schemas = DefaultMigrationSchemas()
|
|
460
477
|
|
|
@@ -466,9 +483,12 @@ async def _async_check_has_unapplied_migrations(
|
|
|
466
483
|
|
|
467
484
|
if _check_has_unapplied_migrations_per_loader(
|
|
468
485
|
MigrationsLoader(
|
|
469
|
-
migrations_dir=contrib_root_path / settings.
|
|
486
|
+
migrations_dir=contrib_root_path / settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
470
487
|
module_type=ModuleType.CONTRIB,
|
|
471
|
-
module_name=
|
|
488
|
+
module_name=build_migrations_module_name(
|
|
489
|
+
'.'.join(contrib.split('.')[:-2]),
|
|
490
|
+
settings.CONTRIB_MIGRATIONS_DIRECTORY_NAME,
|
|
491
|
+
),
|
|
472
492
|
),
|
|
473
493
|
all_applied_migrations,
|
|
474
494
|
schemas,
|
|
@@ -479,7 +499,10 @@ async def _async_check_has_unapplied_migrations(
|
|
|
479
499
|
MigrationsLoader(
|
|
480
500
|
migrations_dir=build_dir / MIGRATIONS_DIR_NAME,
|
|
481
501
|
module_type=ModuleType.USER,
|
|
482
|
-
module_name=
|
|
502
|
+
module_name=build_migrations_module_name(
|
|
503
|
+
None,
|
|
504
|
+
MIGRATIONS_DIR_NAME,
|
|
505
|
+
),
|
|
483
506
|
),
|
|
484
507
|
all_applied_migrations,
|
|
485
508
|
schemas,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/data_models/options.py
RENAMED
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/extenders/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/cli_loader.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/loaders/utils.py
RENAMED
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/mixins/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/schema_json_loader.py
RENAMED
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/schemas/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{amsdal_cli-0.5.0 → amsdal_cli-0.5.1}/src/amsdal_cli/commands/build/utils/build_config_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|