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 CHANGED
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
9
9
  )
10
10
 
11
11
  BUILD_INFO = BuildInfo(
12
- version='v4.22.0~dffe6c1',
13
- built_at='2025-09-02 13:01:04Z',
14
- sha='dffe6c10e47b8795a0d27d495d1c0c0a5d4a76fb',
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.0',
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
@@ -4,7 +4,7 @@ import re
4
4
  import pathspec
5
5
 
6
6
  APP = 'dsw-tdk'
7
- VERSION = '4.22.0'
7
+ VERSION = '4.22.1'
8
8
  METAMODEL_VERSION_MAJOR = 17
9
9
  METAMODEL_VERSION_MINOR = 0
10
10
  METAMODEL_VERSION = f'{METAMODEL_VERSION_MAJOR}.{METAMODEL_VERSION_MINOR}'
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 = {f'v{v[0]}.{v[1]}.{v[2]}': k for k, v in METAMODEL_VERSION_SUPPORT.items()}
83
- if vtag not in map_reverse:
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[vtag].split('.'))
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsw-tdk
3
- Version: 4.22.0
3
+ Version: 4.22.1
4
4
  Summary: Data Stewardship Wizard Template Development Toolkit
5
5
  Author-email: Marek Suchánek <marek.suchanek@ds-wizard.org>
6
6
  License: Apache License 2.0
@@ -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=bDd3GoYgJdJUbXf4stBKs2LPR0wqqskNu7LnHSTG_Kw,381
5
- dsw/tdk/cli.py,sha256=CLKd8F9O0nKJ5JyDSdKL6xp2tibnImxhwdl8ejCQU7k,28117
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=sKAoQ57f7WaTsjDTBWAaEp_JjQLLuhD04GJuUObQ6Vs,713
8
- dsw/tdk/core.py,sha256=uEsJgHJDI1K_Cwb4OrzNk8b62uPv_3NmgCd2XOU8B8Q,27432
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.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
- dsw_tdk-4.22.0.dist-info/METADATA,sha256=oRyaxNx4Zp6RgCweNpZ38miCwdIA4OJCXuvb-9QMR0w,6095
18
- dsw_tdk-4.22.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
19
- dsw_tdk-4.22.0.dist-info/entry_points.txt,sha256=lwD5ZzRCbTFSjP1-SkhYsaJe8sEXOWWgMAMUhw0v2Hk,41
20
- dsw_tdk-4.22.0.dist-info/top_level.txt,sha256=7SfbsHFoJ_vlAgG6C-xzETETwYO71dBrGnod8uMFnjw,4
21
- dsw_tdk-4.22.0.dist-info/RECORD,,
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,,