dsw-tdk 4.2.1__tar.gz → 4.3.0__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.2.1 → dsw-tdk-4.3.0}/CHANGELOG.md +7 -0
- {dsw-tdk-4.2.1/dsw_tdk.egg-info → dsw-tdk-4.3.0}/PKG-INFO +1 -1
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/build_info.py +4 -4
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/cli.py +0 -2
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/consts.py +2 -2
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/core.py +8 -2
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0/dsw_tdk.egg-info}/PKG-INFO +1 -1
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/pyproject.toml +1 -1
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/LICENSE +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/MANIFEST.in +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/README.md +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/__init__.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/__main__.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/api_client.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/model.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/templates/LICENSE.j2 +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/templates/README.md.j2 +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/templates/env.j2 +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/templates/starter.j2 +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/utils.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw/tdk/validation.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/SOURCES.txt +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/dependency_links.txt +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/entry_points.txt +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/not-zip-safe +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/requires.txt +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/dsw_tdk.egg-info/top_level.txt +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/setup.cfg +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/setup.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_basic.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_dot-env.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_get.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_list.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_new.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_package.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_put.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/tests/test_cmd_unpackage.py +0 -0
- {dsw-tdk-4.2.1 → dsw-tdk-4.3.0}/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.3.0]
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Fix `watch` mode errors after descriptor change
|
|
16
|
+
|
|
11
17
|
## [4.2.1]
|
|
12
18
|
|
|
13
19
|
Released for version consistency with other DSW tools.
|
|
@@ -392,3 +398,4 @@ Initial DSW Template Development Kit (versioned as part of the [DSW platform](ht
|
|
|
392
398
|
[4.1.1]: /../../tree/v4.1.1
|
|
393
399
|
[4.2.0]: /../../tree/v4.2.0
|
|
394
400
|
[4.2.1]: /../../tree/v4.2.1
|
|
401
|
+
[4.3.0]: /../../tree/v4.3.0
|
|
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
|
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
BUILD_INFO = BuildInfo(
|
|
12
|
-
version='v4.
|
|
13
|
-
built_at='2024-
|
|
14
|
-
sha='
|
|
12
|
+
version='v4.3.0~4d1ca3f',
|
|
13
|
+
built_at='2024-02-06 04:49:54Z',
|
|
14
|
+
sha='4d1ca3fde2601aaaeb733072bdcc0f752307e19d',
|
|
15
15
|
branch='HEAD',
|
|
16
|
-
tag='v4.
|
|
16
|
+
tag='v4.3.0',
|
|
17
17
|
)
|
|
@@ -438,8 +438,6 @@ def extract_package(ctx, template_package, output, force: bool):
|
|
|
438
438
|
force=force,
|
|
439
439
|
)
|
|
440
440
|
except Exception as e:
|
|
441
|
-
import traceback
|
|
442
|
-
traceback.print_exc()
|
|
443
441
|
ClickPrinter.failure('Failed to extract the package')
|
|
444
442
|
ClickPrinter.error(f'> {e}')
|
|
445
443
|
exit(1)
|
|
@@ -3,8 +3,8 @@ import pathspec # type: ignore
|
|
|
3
3
|
import re
|
|
4
4
|
|
|
5
5
|
APP = 'dsw-tdk'
|
|
6
|
-
VERSION = '4.
|
|
7
|
-
METAMODEL_VERSION =
|
|
6
|
+
VERSION = '4.3.0'
|
|
7
|
+
METAMODEL_VERSION = 13
|
|
8
8
|
|
|
9
9
|
REGEX_SEMVER = re.compile(r'^[0-9]+\.[0-9]+\.[0-9]+$')
|
|
10
10
|
REGEX_ORGANIZATION_ID = re.compile(r'^(?![.])(?!.*[.]$)[a-zA-Z0-9.]+$')
|
|
@@ -23,6 +23,10 @@ from .validation import ValidationError, TemplateValidator
|
|
|
23
23
|
ChangeItem = Tuple[watchfiles.Change, pathlib.Path]
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
def _change(item: ChangeItem, root: pathlib.Path) -> str:
|
|
27
|
+
return f'{item[0].name.upper()}[{item[1].relative_to(root).as_posix()}]'
|
|
28
|
+
|
|
29
|
+
|
|
26
30
|
class TDKProcessingError(RuntimeError):
|
|
27
31
|
|
|
28
32
|
def __init__(self, message: str, hint: str):
|
|
@@ -43,6 +47,7 @@ METAMODEL_VERSION_SUPPORT = {
|
|
|
43
47
|
10: (3, 12, 0),
|
|
44
48
|
11: (3, 20, 0),
|
|
45
49
|
12: (4, 1, 0),
|
|
50
|
+
13: (4, 3, 0),
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
|
|
@@ -267,7 +272,7 @@ class TDKCore:
|
|
|
267
272
|
if project_update and result is not None:
|
|
268
273
|
self.safe_project.update_template_file(result)
|
|
269
274
|
except Exception as e:
|
|
270
|
-
self.logger.error(f'Failed to store remote {tfile.remote_type.value} {tfile.filename.as_posix()}: {e}')
|
|
275
|
+
self.logger.error(f'Failed to store remote {tfile.remote_type.value} {tfile.filename.as_posix()}: {str(e)}')
|
|
271
276
|
|
|
272
277
|
async def store_remote_files(self):
|
|
273
278
|
for tfile in self.safe_project.safe_template.files.values():
|
|
@@ -471,7 +476,7 @@ class ChangesProcessor:
|
|
|
471
476
|
deleted = set()
|
|
472
477
|
updated = set()
|
|
473
478
|
for file_change in self.file_changes:
|
|
474
|
-
self.tdk.logger.debug(f'Processing {file_change}')
|
|
479
|
+
self.tdk.logger.debug(f'Processing: {_change(file_change, self.tdk.safe_project.template_dir)}')
|
|
475
480
|
change_type = file_change[0]
|
|
476
481
|
filepath = file_change[1]
|
|
477
482
|
if change_type == watchfiles.Change.deleted and filepath not in deleted:
|
|
@@ -514,6 +519,7 @@ class ChangesProcessor:
|
|
|
514
519
|
if self.readme_change is not None or self.descriptor_change is not None:
|
|
515
520
|
self.tdk.logger.debug('Updating template descriptor (metadata)')
|
|
516
521
|
await self.tdk._update_descriptor()
|
|
522
|
+
self.tdk.safe_project.template = self.tdk.safe_template
|
|
517
523
|
|
|
518
524
|
async def process_changes(self, changes: List[ChangeItem], force: bool):
|
|
519
525
|
self._split_changes(changes)
|
|
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = 'dsw-tdk'
|
|
7
|
-
version = "4.
|
|
7
|
+
version = "4.3.0"
|
|
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
|