dsw-tdk 4.22.0__tar.gz → 4.22.1__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.
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/CHANGELOG.md +7 -0
- {dsw_tdk-4.22.0/dsw_tdk.egg-info → dsw_tdk-4.22.1}/PKG-INFO +1 -1
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/build_info.py +4 -4
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/cli.py +1 -1
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/consts.py +1 -1
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/core.py +11 -4
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1/dsw_tdk.egg-info}/PKG-INFO +1 -1
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/pyproject.toml +1 -1
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/LICENSE +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/MANIFEST.in +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/README.md +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/__init__.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/__main__.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/api_client.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/config.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/model.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/templates/LICENSE.j2 +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/templates/README.md.j2 +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/templates/env.j2 +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/templates/starter.j2 +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/utils.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw/tdk/validation.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/SOURCES.txt +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/dependency_links.txt +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/entry_points.txt +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/not-zip-safe +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/requires.txt +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/dsw_tdk.egg-info/top_level.txt +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/setup.cfg +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/setup.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_basic.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_dot-env.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_get.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_list.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_new.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_package.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_put.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_unpackage.py +0 -0
- {dsw_tdk-4.22.0 → dsw_tdk-4.22.1}/tests/test_cmd_verify.py +0 -0
|
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## [4.22.1]
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Fixed checking metamodel and API version in TDK
|
|
16
|
+
|
|
11
17
|
## [4.22.0]
|
|
12
18
|
|
|
13
19
|
### Added
|
|
@@ -600,3 +606,4 @@ Initial DSW Template Development Kit (versioned as part of the [DSW platform](ht
|
|
|
600
606
|
[4.20.1]: /../../tree/v4.20.1
|
|
601
607
|
[4.21.0]: /../../tree/v4.21.0
|
|
602
608
|
[4.22.0]: /../../tree/v4.22.0
|
|
609
|
+
[4.22.1]: /../../tree/v4.22.1
|
|
@@ -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
|
)
|
|
@@ -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)')
|
|
@@ -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}',
|
|
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = 'dsw-tdk'
|
|
7
|
-
version = "4.22.
|
|
7
|
+
version = "4.22.1"
|
|
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
|
|
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
|