dsw-tdk 4.22.0__py2.py3-none-any.whl → 4.22.1__py2.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.
- dsw/tdk/build_info.py +4 -4
- dsw/tdk/cli.py +1 -1
- dsw/tdk/consts.py +1 -1
- dsw/tdk/core.py +11 -4
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/METADATA +1 -1
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/RECORD +10 -10
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/WHEEL +0 -0
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/entry_points.txt +0 -0
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/licenses/LICENSE +0 -0
- {dsw_tdk-4.22.0.dist-info → dsw_tdk-4.22.1.dist-info}/top_level.txt +0 -0
dsw/tdk/build_info.py
CHANGED
|
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
|
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
BUILD_INFO = BuildInfo(
|
|
12
|
-
version='v4.22.
|
|
13
|
-
built_at='2025-09-
|
|
14
|
-
sha='
|
|
12
|
+
version='v4.22.1~13699ca',
|
|
13
|
+
built_at='2025-09-04 06:55:59Z',
|
|
14
|
+
sha='13699ca0f74ff51a24bd76e242a89ef434b74658',
|
|
15
15
|
branch='HEAD',
|
|
16
|
-
tag='v4.22.
|
|
16
|
+
tag='v4.22.1',
|
|
17
17
|
)
|
dsw/tdk/cli.py
CHANGED
|
@@ -418,7 +418,7 @@ def put_template(ctx, template_dir, api_url, api_key, force, watch):
|
|
|
418
418
|
)
|
|
419
419
|
await tdk.store_remote(force=force)
|
|
420
420
|
ClickPrinter.success(f'Template {tdk.safe_project.safe_template.id} '
|
|
421
|
-
f'uploaded to {api_url}')
|
|
421
|
+
f'uploaded to {CONFIG.env.api_url}')
|
|
422
422
|
|
|
423
423
|
if watch:
|
|
424
424
|
ClickPrinter.watch('Entering watch mode... (press Ctrl+C to abort)')
|
dsw/tdk/consts.py
CHANGED
dsw/tdk/core.py
CHANGED
|
@@ -53,9 +53,10 @@ METAMODEL_VERSION_SUPPORT = {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
# pylint: disable=too-many-public-methods
|
|
56
|
+
# pylint: disable-next=too-many-public-methods
|
|
57
57
|
class TDKCore:
|
|
58
58
|
|
|
59
|
+
# pylint: disable-next=too-many-locals
|
|
59
60
|
def _check_metamodel_version(self):
|
|
60
61
|
hint = 'Fix your metamodelVersion in template.json and/or visit docs'
|
|
61
62
|
mm_ver = str(self.safe_template.metamodel_version)
|
|
@@ -79,10 +80,16 @@ class TDKCore:
|
|
|
79
80
|
vtag = f'v{ver[0]}.{ver[1]}.{ver[2]}'
|
|
80
81
|
if mm_ver not in METAMODEL_VERSION_SUPPORT:
|
|
81
82
|
raise TDKProcessingError(f'Unknown metamodel version: {mm_ver}', hint)
|
|
82
|
-
map_reverse = {
|
|
83
|
-
|
|
83
|
+
map_reverse = {v: k for k, v in METAMODEL_VERSION_SUPPORT.items()}
|
|
84
|
+
nearest_leq = unknown_version = (0, 0, 0)
|
|
85
|
+
for known_version in map_reverse.keys():
|
|
86
|
+
if known_version <= ver:
|
|
87
|
+
nearest_leq = known_version
|
|
88
|
+
else:
|
|
89
|
+
break
|
|
90
|
+
if nearest_leq == unknown_version:
|
|
84
91
|
raise TDKProcessingError(f'Unsupported API version: {vtag}', hint)
|
|
85
|
-
api_mm_major, api_mm_minor = map(int, map_reverse[
|
|
92
|
+
api_mm_major, api_mm_minor = map(int, map_reverse[nearest_leq].split('.'))
|
|
86
93
|
if mm_major != api_mm_major or mm_minor < api_mm_minor:
|
|
87
94
|
raise TDKProcessingError(
|
|
88
95
|
f'Unsupported metamodel version {mm_ver} for API version {api_version}',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
dsw/tdk/__init__.py,sha256=zJeTybb0SqiNdGLkANjRa36hku4axi17mZL2dM3tHto,288
|
|
2
2
|
dsw/tdk/__main__.py,sha256=cCzxo6f7raF50kQE-nM_segNjCNe723ZrxOBB6f3qwc,84
|
|
3
3
|
dsw/tdk/api_client.py,sha256=04obYHBIVO-HYQn2-tBIMMgtvOGb1_p6dxrM-orGMco,14925
|
|
4
|
-
dsw/tdk/build_info.py,sha256=
|
|
5
|
-
dsw/tdk/cli.py,sha256=
|
|
4
|
+
dsw/tdk/build_info.py,sha256=yWTkG7-zkWjV4kAnTb4mlENJUBFmX1gsG7bMo8UyK8Y,381
|
|
5
|
+
dsw/tdk/cli.py,sha256=VEpzf1_JIhPqeDcDLfR76oqoYVS9nvbIujBZ-2syL2M,28128
|
|
6
6
|
dsw/tdk/config.py,sha256=ZZlpMqJ5QGsiywwleXtFS2DO1bhnp3ttGOsNq4VoPYc,4888
|
|
7
|
-
dsw/tdk/consts.py,sha256
|
|
8
|
-
dsw/tdk/core.py,sha256=
|
|
7
|
+
dsw/tdk/consts.py,sha256=-EORyGcqgGnbomtfL94jgisrXpQRl1q2GU4j370h5M4,713
|
|
8
|
+
dsw/tdk/core.py,sha256=yVZHsmptEXQBrddAGsKlw6zpgbMeaknqeSYbFA_7HF0,27691
|
|
9
9
|
dsw/tdk/model.py,sha256=e7wAraebj66AMRSKc1Lkmvrsj7m9ep2UcAxMdwd_x0c,17340
|
|
10
10
|
dsw/tdk/utils.py,sha256=ICZpgxkDRWg9lq1gnHyQCEISFMtmGtu8Hl5yEclwn14,5685
|
|
11
11
|
dsw/tdk/validation.py,sha256=PxgthiZJIk7al64n7Nj7Bp5Vvg_ltxRm3ocp74UO8Y8,10173
|
|
@@ -13,9 +13,9 @@ dsw/tdk/templates/LICENSE.j2,sha256=6WzK06169rxZ4V_boYgejcZkw-1Up_WoU18iI3Gbkfs,
|
|
|
13
13
|
dsw/tdk/templates/README.md.j2,sha256=FzUABeMM8To0oT48Kytoox64uAZ8F7FSAAXgpyKzqdU,247
|
|
14
14
|
dsw/tdk/templates/env.j2,sha256=yUaY7ZLbjdG45-_q6KWi-YnX9bjP7_lfXrowhJF1he0,98
|
|
15
15
|
dsw/tdk/templates/starter.j2,sha256=JKJIkiXsmBO4P6pKXM4IvSz3JgJhqCnaZI1NVfPPnXg,246
|
|
16
|
-
dsw_tdk-4.22.
|
|
17
|
-
dsw_tdk-4.22.
|
|
18
|
-
dsw_tdk-4.22.
|
|
19
|
-
dsw_tdk-4.22.
|
|
20
|
-
dsw_tdk-4.22.
|
|
21
|
-
dsw_tdk-4.22.
|
|
16
|
+
dsw_tdk-4.22.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
dsw_tdk-4.22.1.dist-info/METADATA,sha256=FT5ELHO1rrUrOz4QGmK_UWFOGw2RSVr7JXC7-AtZZ4w,6095
|
|
18
|
+
dsw_tdk-4.22.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
19
|
+
dsw_tdk-4.22.1.dist-info/entry_points.txt,sha256=lwD5ZzRCbTFSjP1-SkhYsaJe8sEXOWWgMAMUhw0v2Hk,41
|
|
20
|
+
dsw_tdk-4.22.1.dist-info/top_level.txt,sha256=7SfbsHFoJ_vlAgG6C-xzETETwYO71dBrGnod8uMFnjw,4
|
|
21
|
+
dsw_tdk-4.22.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|