dsw-tdk 4.22.0__tar.gz → 4.22.2__tar.gz

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.
Files changed (39) hide show
  1. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/CHANGELOG.md +12 -0
  2. {dsw_tdk-4.22.0/dsw_tdk.egg-info → dsw_tdk-4.22.2}/PKG-INFO +1 -1
  3. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/build_info.py +4 -4
  4. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/cli.py +1 -1
  5. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/consts.py +1 -1
  6. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/core.py +11 -4
  7. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2/dsw_tdk.egg-info}/PKG-INFO +1 -1
  8. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/pyproject.toml +1 -1
  9. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/LICENSE +0 -0
  10. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/MANIFEST.in +0 -0
  11. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/README.md +0 -0
  12. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/__init__.py +0 -0
  13. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/__main__.py +0 -0
  14. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/api_client.py +0 -0
  15. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/config.py +0 -0
  16. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/model.py +0 -0
  17. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/templates/LICENSE.j2 +0 -0
  18. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/templates/README.md.j2 +0 -0
  19. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/templates/env.j2 +0 -0
  20. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/templates/starter.j2 +0 -0
  21. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/utils.py +0 -0
  22. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw/tdk/validation.py +0 -0
  23. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/SOURCES.txt +0 -0
  24. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/dependency_links.txt +0 -0
  25. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/entry_points.txt +0 -0
  26. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/not-zip-safe +0 -0
  27. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/requires.txt +0 -0
  28. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/dsw_tdk.egg-info/top_level.txt +0 -0
  29. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/setup.cfg +0 -0
  30. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/setup.py +0 -0
  31. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_basic.py +0 -0
  32. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_dot-env.py +0 -0
  33. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_get.py +0 -0
  34. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_list.py +0 -0
  35. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_new.py +0 -0
  36. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_package.py +0 -0
  37. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_put.py +0 -0
  38. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_unpackage.py +0 -0
  39. {dsw_tdk-4.22.0 → dsw_tdk-4.22.2}/tests/test_cmd_verify.py +0 -0
@@ -8,6 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [Unreleased]
9
9
 
10
10
 
11
+ ## [4.22.2]
12
+
13
+ Released for version consistency with other DSW tools.
14
+
15
+ ## [4.22.1]
16
+
17
+ ### Fixed
18
+
19
+ - Fixed checking metamodel and API version in TDK
20
+
11
21
  ## [4.22.0]
12
22
 
13
23
  ### Added
@@ -600,3 +610,5 @@ Initial DSW Template Development Kit (versioned as part of the [DSW platform](ht
600
610
  [4.20.1]: /../../tree/v4.20.1
601
611
  [4.21.0]: /../../tree/v4.21.0
602
612
  [4.22.0]: /../../tree/v4.22.0
613
+ [4.22.1]: /../../tree/v4.22.1
614
+ [4.22.2]: /../../tree/v4.22.2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsw-tdk
3
- Version: 4.22.0
3
+ Version: 4.22.2
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
@@ -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.2~ffb94ee',
13
+ built_at='2025-09-05 10:26:00Z',
14
+ sha='ffb94ee5b3b1a50e880c168bd22105e52b1a13ee',
15
15
  branch='HEAD',
16
- tag='v4.22.0',
16
+ tag='v4.22.2',
17
17
  )
@@ -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)')
@@ -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.2'
8
8
  METAMODEL_VERSION_MAJOR = 17
9
9
  METAMODEL_VERSION_MINOR = 0
10
10
  METAMODEL_VERSION = f'{METAMODEL_VERSION_MAJOR}.{METAMODEL_VERSION_MINOR}'
@@ -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.2
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
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [project]
6
6
  name = 'dsw-tdk'
7
- version = "4.22.0"
7
+ version = "4.22.2"
8
8
  description = 'Data Stewardship Wizard Template Development Toolkit'
9
9
  readme = 'README.md'
10
10
  keywords = ['documents', 'dsw', 'jinja2', 'template', 'toolkit']
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes