dbt-platform-helper 10.7.2__py3-none-any.whl → 10.7.3__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.
@@ -216,8 +216,6 @@ def _generate_svc_overrides(base_path, templates, name):
216
216
 
217
217
  def _get_s3_kms_alias_arns(session, application_name, config):
218
218
  application = load_application(application_name, session)
219
- # create kms client
220
- kms_client = session.client("kms")
221
219
  arns = {}
222
220
 
223
221
  for environment_name in application.environments:
@@ -225,6 +223,7 @@ def _get_s3_kms_alias_arns(session, application_name, config):
225
223
  continue
226
224
 
227
225
  bucket_name = config[environment_name]["bucket_name"]
226
+ kms_client = application.environments[environment_name].session.client("kms")
228
227
  alias_name = f"alias/{application_name}-{environment_name}-{bucket_name}-key"
229
228
 
230
229
  try:
@@ -104,7 +104,7 @@ def get_github_released_version(repository: str, tags: bool = False) -> Tuple[in
104
104
  return parse_version(package_info["tag_name"])
105
105
 
106
106
 
107
- def get_platform_helper_versions() -> PlatformHelperVersions:
107
+ def get_platform_helper_versions(include_project_versions=True) -> PlatformHelperVersions:
108
108
  try:
109
109
  locally_installed_version = parse_version(version("dbt-platform-helper"))
110
110
  except PackageNotFoundError:
@@ -115,23 +115,27 @@ def get_platform_helper_versions() -> PlatformHelperVersions:
115
115
  parsed_released_versions = [parse_version(v) for v in released_versions]
116
116
  parsed_released_versions.sort(reverse=True)
117
117
  latest_release = parsed_released_versions[0]
118
- platform_config = load_and_validate_platform_config(disable_aws_validation=True)
119
- platform_config_default = parse_version(
120
- platform_config.get("default_versions", {}).get("platform-helper")
121
- )
122
118
 
123
- pipeline_overrides = {
124
- name: pipeline.get("versions", {}).get("platform-helper")
125
- for name, pipeline in platform_config.get("environment_pipelines", {}).items()
126
- if pipeline.get("versions", {}).get("platform-helper")
127
- }
128
-
129
- deprecated_version_file = Path(PLATFORM_HELPER_VERSION_FILE)
130
- version_from_file = (
131
- parse_version(deprecated_version_file.read_text())
132
- if deprecated_version_file.exists()
133
- else None
134
- )
119
+ platform_config_default, pipeline_overrides, version_from_file = None, {}, None
120
+
121
+ if include_project_versions:
122
+ platform_config = load_and_validate_platform_config(disable_aws_validation=True)
123
+ platform_config_default = parse_version(
124
+ platform_config.get("default_versions", {}).get("platform-helper")
125
+ )
126
+
127
+ pipeline_overrides = {
128
+ name: pipeline.get("versions", {}).get("platform-helper")
129
+ for name, pipeline in platform_config.get("environment_pipelines", {}).items()
130
+ if pipeline.get("versions", {}).get("platform-helper")
131
+ }
132
+
133
+ deprecated_version_file = Path(PLATFORM_HELPER_VERSION_FILE)
134
+ version_from_file = (
135
+ parse_version(deprecated_version_file.read_text())
136
+ if deprecated_version_file.exists()
137
+ else None
138
+ )
135
139
 
136
140
  out = PlatformHelperVersions(
137
141
  local_version=locally_installed_version,
@@ -141,7 +145,8 @@ def get_platform_helper_versions() -> PlatformHelperVersions:
141
145
  pipeline_overrides=pipeline_overrides,
142
146
  )
143
147
 
144
- _process_version_file_warnings(out)
148
+ if include_project_versions:
149
+ _process_version_file_warnings(out)
145
150
 
146
151
  return out
147
152
 
@@ -223,7 +228,7 @@ def check_platform_helper_version_needs_update():
223
228
  if not running_as_installed_package() or "PLATFORM_TOOLS_SKIP_VERSION_CHECK" in os.environ:
224
229
  return
225
230
 
226
- versions = get_platform_helper_versions()
231
+ versions = get_platform_helper_versions(include_project_versions=False)
227
232
  local_version = versions.local_version
228
233
  latest_release = versions.latest_release
229
234
  message = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dbt-platform-helper
3
- Version: 10.7.2
3
+ Version: 10.7.3
4
4
  Summary: Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot.
5
5
  License: MIT
6
6
  Author: Department for Business and Trade Platform Team
@@ -9,7 +9,7 @@ dbt_platform_helper/commands/check_cloudformation.py,sha256=aLif3yMHKuZO0uvdUjTH
9
9
  dbt_platform_helper/commands/codebase.py,sha256=NchJzH-yxv5mXCe2rPyXVNHmXGEvjFUv0KhMKYsLNNQ,11380
10
10
  dbt_platform_helper/commands/conduit.py,sha256=M_-Lrcph4c4PFivfEzDEL2_PW_OzZaOtZXpgo_Ao3DU,14882
11
11
  dbt_platform_helper/commands/config.py,sha256=NOHea7OAjrl6XHlW6HMLn0m0T5lFPyNH3HXoyCOWsJk,12070
12
- dbt_platform_helper/commands/copilot.py,sha256=TOE2Vj-sR7bqFoldsJqLGl5taii8LJ_rfLicBTgJbXg,16533
12
+ dbt_platform_helper/commands/copilot.py,sha256=hGaF3631BCx9SKyY7BB-xK0B9cENK9UKffGiDO2Cp0Q,16556
13
13
  dbt_platform_helper/commands/database.py,sha256=-DacXZ2LhwV3CRukG35urEU2TuNVZHppUA3EhbBNjUs,4840
14
14
  dbt_platform_helper/commands/dns.py,sha256=o7PkvHktZo0jmqbx0krJTL0R4GtWSf1rF2KDEWor8Ts,35211
15
15
  dbt_platform_helper/commands/environment.py,sha256=u4yl2fZa2XnzA5o8gk1x0_YfPqLCJAraaU6YU74mSxo,22563
@@ -94,10 +94,10 @@ dbt_platform_helper/utils/messages.py,sha256=aLx6s9utt__IqlDdeIYq4n82ERwludu2Zfq
94
94
  dbt_platform_helper/utils/platform_config.py,sha256=dEGB6peHB1ywYSdS71JGxbWIuTFRaeQfWelksX9v6bQ,608
95
95
  dbt_platform_helper/utils/template.py,sha256=raRx4QUCVJtKfvJK08Egg6gwWcs3r3V4nPWcJW4xNhA,574
96
96
  dbt_platform_helper/utils/validation.py,sha256=OPajVss8pWth_3FD_1iPodNjeysTZ28-dMEvMRc4I1c,22735
97
- dbt_platform_helper/utils/versioning.py,sha256=ceLM5yvhfDl2PpY6yNoZlKUgqE_xZ9NyasLdVN1b3F0,10435
97
+ dbt_platform_helper/utils/versioning.py,sha256=h3veQpFoiOjYY9dRVppcBDzVfgZerT0lXuE9QCTo5-c,10710
98
98
  platform_helper.py,sha256=zjsZKcbyrEQbKfERi0JG8JEL-MgG6EjxIMiWT66kCVg,2299
99
- dbt_platform_helper-10.7.2.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
100
- dbt_platform_helper-10.7.2.dist-info/METADATA,sha256=Vr8eLzkCy6xS_5_xbo9HxGDZSov9dR93VheqccO-2Rs,3126
101
- dbt_platform_helper-10.7.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
102
- dbt_platform_helper-10.7.2.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
103
- dbt_platform_helper-10.7.2.dist-info/RECORD,,
99
+ dbt_platform_helper-10.7.3.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
100
+ dbt_platform_helper-10.7.3.dist-info/METADATA,sha256=NJLVOvf-JsUx9NgqkzrNjVlrz4a8Cr3jyBA9Wc1ripw,3126
101
+ dbt_platform_helper-10.7.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
102
+ dbt_platform_helper-10.7.3.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
103
+ dbt_platform_helper-10.7.3.dist-info/RECORD,,