dbt-platform-helper 10.7.0__py3-none-any.whl → 10.7.2__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.
- dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml +2 -9
- dbt_platform_helper/templates/pipelines/environments/buildspec.yml +10 -8
- dbt_platform_helper/utils/versioning.py +20 -10
- {dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/METADATA +1 -1
- {dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/RECORD +8 -8
- {dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/LICENSE +0 -0
- {dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/WHEEL +0 -0
- {dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/entry_points.txt +0 -0
|
@@ -10,15 +10,8 @@ env:
|
|
|
10
10
|
phases:
|
|
11
11
|
build:
|
|
12
12
|
commands:
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
echo "Environments are - ${environments}"
|
|
16
|
-
if echo ",${environments}," | grep -q ",${COPILOT_ENVIRONMENT},"; then
|
|
17
|
-
echo "Copilot environment is ${COPILOT_ENVIRONMENT}"
|
|
18
|
-
/work/cli deploy --send-notifications
|
|
19
|
-
else
|
|
20
|
-
exit 1
|
|
21
|
-
fi
|
|
13
|
+
- echo "Copilot environment is ${COPILOT_ENVIRONMENT}"
|
|
14
|
+
- /work/cli deploy --send-notifications
|
|
22
15
|
|
|
23
16
|
post_build:
|
|
24
17
|
commands:
|
|
@@ -14,21 +14,24 @@ phases:
|
|
|
14
14
|
echo "Cannot find .copilot-version file"
|
|
15
15
|
exit 1
|
|
16
16
|
fi
|
|
17
|
+
- COPILOT_VERSION=$(cat .copilot-version)
|
|
18
|
+
# Install pyyaml and dbt-platform-helper
|
|
19
|
+
- pip install PyYAML dbt-platform-helper
|
|
20
|
+
# Reinstall if we require a different version to the latest
|
|
21
|
+
- CURRENT_PLATFORM_HELPER_VERSION=$(platform-helper --version)
|
|
22
|
+
- export PLATFORM_HELPER_VERSION=$(platform-helper version get-platform-helper-for-project)
|
|
17
23
|
- |
|
|
18
|
-
if [ !
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
if [ ! "${PLATFORM_HELPER_VERSION}" == "${CURRENT_PLATFORM_HELPER_VERSION}" ]
|
|
25
|
+
then
|
|
26
|
+
pip uninstall dbt-platform-helper
|
|
27
|
+
pip install dbt-platform-helper==$PLATFORM_HELPER_VERSION
|
|
21
28
|
fi
|
|
22
|
-
- COPILOT_VERSION=`cat .copilot-version`
|
|
23
|
-
- PLATFORM_HELPER_VERSION=`cat .platform-helper-version`
|
|
24
29
|
- mkdir ./build-tools
|
|
25
30
|
- cd ./build-tools
|
|
26
31
|
# Install copilot
|
|
27
32
|
- wget -q "https://ecs-cli-v2-release.s3.amazonaws.com/copilot-linux-v${COPILOT_VERSION}"
|
|
28
33
|
- mv "./copilot-linux-v${COPILOT_VERSION}" ./copilot
|
|
29
34
|
- chmod +x ./copilot
|
|
30
|
-
# Install pyyaml and dbt-platform-helper
|
|
31
|
-
- pip install PyYAML dbt-platform-helper==$PLATFORM_HELPER_VERSION
|
|
32
35
|
# Install dyff - yaml differ
|
|
33
36
|
- wget -q "https://github.com/homeport/dyff/releases/download/v${DYFF_VERSION}/dyff_${DYFF_VERSION}_linux_amd64.tar.gz"
|
|
34
37
|
- tar -zxvf "dyff_${DYFF_VERSION}_linux_amd64.tar.gz"
|
|
@@ -36,7 +39,6 @@ phases:
|
|
|
36
39
|
build:
|
|
37
40
|
commands:
|
|
38
41
|
- cd $CODEBUILD_SRC_DIR
|
|
39
|
-
- PLATFORM_HELPER_VERSION=`cat .platform-helper-version`
|
|
40
42
|
- cp -r copilot/ current-copilot/
|
|
41
43
|
- platform-helper copilot make-addons
|
|
42
44
|
- >
|
|
@@ -40,7 +40,7 @@ class PlatformHelperVersions:
|
|
|
40
40
|
self.latest_release = latest_release
|
|
41
41
|
self.platform_helper_file_version = platform_helper_file_version
|
|
42
42
|
self.platform_config_default = platform_config_default
|
|
43
|
-
self.pipeline_overrides = pipeline_overrides
|
|
43
|
+
self.pipeline_overrides = pipeline_overrides if pipeline_overrides else {}
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
def string_version(input_version: VersionTuple) -> str:
|
|
@@ -164,12 +164,12 @@ def _process_version_file_warnings(versions: PlatformHelperVersions):
|
|
|
164
164
|
)
|
|
165
165
|
|
|
166
166
|
if not versions.platform_config_default and not versions.platform_helper_file_version:
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
)
|
|
167
|
+
message = f"Cannot get dbt-platform-helper version from '{PLATFORM_CONFIG_FILE}'.\n"
|
|
168
|
+
message += f"{missing_default_version_message}{string_version(versions.local_version)}\n"
|
|
169
|
+
click.secho(message, fg="red")
|
|
171
170
|
|
|
172
|
-
|
|
171
|
+
if messages:
|
|
172
|
+
click.secho("\n".join(messages), fg="yellow")
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
def validate_version_compatibility(
|
|
@@ -245,7 +245,9 @@ def check_platform_helper_version_mismatch():
|
|
|
245
245
|
|
|
246
246
|
versions = get_platform_helper_versions()
|
|
247
247
|
local_version = versions.local_version
|
|
248
|
-
platform_helper_file_version =
|
|
248
|
+
platform_helper_file_version = parse_version(
|
|
249
|
+
get_required_platform_helper_version(versions=versions)
|
|
250
|
+
)
|
|
249
251
|
|
|
250
252
|
if not check_version_on_file_compatibility(local_version, platform_helper_file_version):
|
|
251
253
|
message = (
|
|
@@ -259,8 +261,11 @@ def running_as_installed_package():
|
|
|
259
261
|
return "site-packages" in __file__
|
|
260
262
|
|
|
261
263
|
|
|
262
|
-
def get_required_platform_helper_version(
|
|
263
|
-
versions =
|
|
264
|
+
def get_required_platform_helper_version(
|
|
265
|
+
pipeline: str = None, versions: PlatformHelperVersions = None
|
|
266
|
+
) -> str:
|
|
267
|
+
if not versions:
|
|
268
|
+
versions = get_platform_helper_versions()
|
|
264
269
|
pipeline_version = versions.pipeline_overrides.get(pipeline)
|
|
265
270
|
version_precedence = [
|
|
266
271
|
pipeline_version,
|
|
@@ -271,4 +276,9 @@ def get_required_platform_helper_version(pipeline: str = None) -> str:
|
|
|
271
276
|
string_version(v) if isinstance(v, tuple) else v for v in version_precedence if v
|
|
272
277
|
]
|
|
273
278
|
|
|
274
|
-
|
|
279
|
+
out = non_null_version_precedence[0] if non_null_version_precedence else None
|
|
280
|
+
|
|
281
|
+
if not out:
|
|
282
|
+
raise SystemExit(1)
|
|
283
|
+
|
|
284
|
+
return out
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dbt-platform-helper
|
|
3
|
-
Version: 10.7.
|
|
3
|
+
Version: 10.7.2
|
|
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
|
|
@@ -63,7 +63,7 @@ dbt_platform_helper/templates/environments/main.tf,sha256=6tgxyGLvllZCiN2ryYwNM6
|
|
|
63
63
|
dbt_platform_helper/templates/pipelines/codebase/manifest.yml,sha256=Mby5ri_w0K9r3cJVdUN-c9adnu2cVvDgHpY4qvHggCE,1980
|
|
64
64
|
dbt_platform_helper/templates/pipelines/codebase/overrides/.gitignore,sha256=duFipE4GPjdkrYo-sO1jjCXdmSMoYNoFJLZ19lUKfL0,169
|
|
65
65
|
dbt_platform_helper/templates/pipelines/codebase/overrides/bin/override.ts,sha256=iD6Tsl8YTd3DW7NDk6ythkROmtX2OouU8DMSeWAqd_Y,227
|
|
66
|
-
dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml,sha256=
|
|
66
|
+
dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.deploy.yml,sha256=neXXpwjCrNRPTOxec3m8nRIFZ0bI4zq2WaPHf5eSU_Y,1090
|
|
67
67
|
dbt_platform_helper/templates/pipelines/codebase/overrides/buildspec.image.yml,sha256=oHtRzH27IXJRyORWp7zvtjln-kTf3FgTdc9W_pBFBfU,1480
|
|
68
68
|
dbt_platform_helper/templates/pipelines/codebase/overrides/cdk.json,sha256=ZbvoQdcj_k9k1GAD9qHUQcDfQPbMcBPjJwt2mu_S6ho,339
|
|
69
69
|
dbt_platform_helper/templates/pipelines/codebase/overrides/package-lock.json,sha256=Is83o58QXbeg2SkHmR79ATt91aFhVbO7kb1VF0qXpY8,152671
|
|
@@ -71,7 +71,7 @@ dbt_platform_helper/templates/pipelines/codebase/overrides/package.json,sha256=X
|
|
|
71
71
|
dbt_platform_helper/templates/pipelines/codebase/overrides/stack.ts,sha256=vJNqtku74BEJ_sew1485_JQLKxpozI4md08tokg2LgE,20895
|
|
72
72
|
dbt_platform_helper/templates/pipelines/codebase/overrides/tsconfig.json,sha256=k6KabP-WwhFNgA1AFHNuonTEAnES6eR74jUuYUJEGOM,651
|
|
73
73
|
dbt_platform_helper/templates/pipelines/codebase/overrides/types.ts,sha256=Sp4nEppsreaY1nKZC2q3lditLtMP9lUOKAIzdd4M2yM,1214
|
|
74
|
-
dbt_platform_helper/templates/pipelines/environments/buildspec.yml,sha256=
|
|
74
|
+
dbt_platform_helper/templates/pipelines/environments/buildspec.yml,sha256=hTCUhSfrnTUMOpUo8EjQmvit2aX7J0cKNeqV2DChaA0,3365
|
|
75
75
|
dbt_platform_helper/templates/pipelines/environments/manifest.yml,sha256=UyHL6wH2mznldZIyjPSbG72yO6zErglNcaoliHOKYvM,1765
|
|
76
76
|
dbt_platform_helper/templates/pipelines/environments/overrides/cfn.patches.yml,sha256=VLjm3Dz4clUz44B5RSQy7mu1sRzm7Yf2S_TSnor_b_k,638
|
|
77
77
|
dbt_platform_helper/templates/svc/maintenance_pages/default.html,sha256=OTZ-qwwSXu7PFbsgp4kppdm1lsg_iHK7FCFqhPnvrEs,741
|
|
@@ -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=
|
|
97
|
+
dbt_platform_helper/utils/versioning.py,sha256=ceLM5yvhfDl2PpY6yNoZlKUgqE_xZ9NyasLdVN1b3F0,10435
|
|
98
98
|
platform_helper.py,sha256=zjsZKcbyrEQbKfERi0JG8JEL-MgG6EjxIMiWT66kCVg,2299
|
|
99
|
-
dbt_platform_helper-10.7.
|
|
100
|
-
dbt_platform_helper-10.7.
|
|
101
|
-
dbt_platform_helper-10.7.
|
|
102
|
-
dbt_platform_helper-10.7.
|
|
103
|
-
dbt_platform_helper-10.7.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
{dbt_platform_helper-10.7.0.dist-info → dbt_platform_helper-10.7.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|