dbt-platform-helper 13.4.0__py3-none-any.whl → 14.0.0__py3-none-any.whl

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.

Potentially problematic release.


This version of dbt-platform-helper might be problematic. Click here for more details.

Files changed (46) hide show
  1. dbt_platform_helper/COMMANDS.md +26 -57
  2. dbt_platform_helper/commands/config.py +9 -0
  3. dbt_platform_helper/commands/environment.py +3 -7
  4. dbt_platform_helper/commands/notify.py +24 -77
  5. dbt_platform_helper/commands/pipeline.py +6 -12
  6. dbt_platform_helper/commands/secrets.py +1 -1
  7. dbt_platform_helper/constants.py +7 -5
  8. dbt_platform_helper/domain/codebase.py +0 -5
  9. dbt_platform_helper/domain/config.py +16 -9
  10. dbt_platform_helper/domain/copilot_environment.py +3 -3
  11. dbt_platform_helper/domain/database_copy.py +1 -1
  12. dbt_platform_helper/domain/maintenance_page.py +42 -38
  13. dbt_platform_helper/domain/notify.py +64 -0
  14. dbt_platform_helper/domain/pipelines.py +20 -16
  15. dbt_platform_helper/domain/terraform_environment.py +18 -11
  16. dbt_platform_helper/domain/versioning.py +18 -78
  17. dbt_platform_helper/providers/aws/exceptions.py +1 -1
  18. dbt_platform_helper/providers/cloudformation.py +1 -1
  19. dbt_platform_helper/providers/config.py +119 -17
  20. dbt_platform_helper/providers/config_validator.py +4 -31
  21. dbt_platform_helper/providers/copilot.py +3 -3
  22. dbt_platform_helper/providers/io.py +1 -1
  23. dbt_platform_helper/providers/load_balancers.py +6 -6
  24. dbt_platform_helper/providers/platform_config_schema.py +24 -29
  25. dbt_platform_helper/providers/schema_migrations/__init__.py +0 -0
  26. dbt_platform_helper/providers/schema_migrations/schema_v0_to_v1_migration.py +43 -0
  27. dbt_platform_helper/providers/schema_migrator.py +77 -0
  28. dbt_platform_helper/providers/secrets.py +5 -5
  29. dbt_platform_helper/providers/semantic_version.py +6 -1
  30. dbt_platform_helper/providers/slack_channel_notifier.py +62 -0
  31. dbt_platform_helper/providers/terraform_manifest.py +8 -10
  32. dbt_platform_helper/providers/version.py +1 -18
  33. dbt_platform_helper/providers/version_status.py +8 -61
  34. dbt_platform_helper/providers/yaml_file.py +23 -1
  35. dbt_platform_helper/templates/environment-pipelines/main.tf +1 -1
  36. dbt_platform_helper/utils/application.py +1 -1
  37. dbt_platform_helper/utils/aws.py +3 -3
  38. dbt_platform_helper/utils/git.py +0 -15
  39. {dbt_platform_helper-13.4.0.dist-info → dbt_platform_helper-14.0.0.dist-info}/METADATA +4 -4
  40. {dbt_platform_helper-13.4.0.dist-info → dbt_platform_helper-14.0.0.dist-info}/RECORD +44 -41
  41. platform_helper.py +0 -2
  42. dbt_platform_helper/commands/version.py +0 -37
  43. dbt_platform_helper/utils/tool_versioning.py +0 -12
  44. {dbt_platform_helper-13.4.0.dist-info → dbt_platform_helper-14.0.0.dist-info}/LICENSE +0 -0
  45. {dbt_platform_helper-13.4.0.dist-info → dbt_platform_helper-14.0.0.dist-info}/WHEEL +0 -0
  46. {dbt_platform_helper-13.4.0.dist-info → dbt_platform_helper-14.0.0.dist-info}/entry_points.txt +0 -0
@@ -1,37 +0,0 @@
1
- import click
2
-
3
- from dbt_platform_helper.domain.versioning import PlatformHelperVersioning
4
- from dbt_platform_helper.platform_exception import PlatformException
5
- from dbt_platform_helper.providers.io import ClickIOProvider
6
- from dbt_platform_helper.utils.click import ClickDocOptGroup
7
-
8
-
9
- @click.group(chain=True, cls=ClickDocOptGroup)
10
- def version():
11
- """Contains subcommands for getting version information about the current
12
- project."""
13
-
14
-
15
- @version.command(help="Print the version of platform-tools required by the current project")
16
- @click.option(
17
- "--pipeline",
18
- required=False,
19
- type=str,
20
- help="Take into account platform-tools version overrides in the specified pipeline",
21
- )
22
- def get_platform_helper_for_project(pipeline):
23
- """
24
- Version precedence is in this order:
25
- - if the --pipeline option is supplied, the version in 'platform-config.yml' in:
26
- environment_pipelines:
27
- <pipeline>:
28
- ...
29
- versions:
30
- platform-helper
31
- - The version from default_versions/platform-helper in 'platform-config.yml'
32
- - Fall back on the version in the deprecated '.platform-helper-version' file
33
- """
34
- try:
35
- PlatformHelperVersioning().get_required_version(pipeline)
36
- except PlatformException as err:
37
- ClickIOProvider().abort_with_error(str(err))
@@ -1,12 +0,0 @@
1
- from dbt_platform_helper.constants import DEFAULT_TERRAFORM_PLATFORM_MODULES_VERSION
2
-
3
-
4
- def get_required_terraform_platform_modules_version(
5
- cli_terraform_platform_modules_version, platform_config_terraform_modules_default_version
6
- ):
7
- version_preference_order = [
8
- cli_terraform_platform_modules_version,
9
- platform_config_terraform_modules_default_version,
10
- DEFAULT_TERRAFORM_PLATFORM_MODULES_VERSION,
11
- ]
12
- return [version for version in version_preference_order if version][0]