torizon-templates-utils 0.0.2__tar.gz → 0.0.4__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 (18) hide show
  1. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/PKG-INFO +1 -1
  2. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/pyproject.toml +1 -1
  3. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/tasks.py +7 -1
  4. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils.egg-info/PKG-INFO +1 -1
  5. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/LICENSE +0 -0
  6. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/README.md +0 -0
  7. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/setup.cfg +0 -0
  8. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/__init__.py +0 -0
  9. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/animations.py +0 -0
  10. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/args.py +0 -0
  11. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/colors.py +0 -0
  12. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/debug.py +0 -0
  13. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/errors.py +0 -0
  14. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils/network.py +0 -0
  15. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils.egg-info/SOURCES.txt +0 -0
  16. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils.egg-info/dependency_links.txt +0 -0
  17. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils.egg-info/requires.txt +0 -0
  18. {torizon_templates_utils-0.0.2 → torizon_templates_utils-0.0.4}/torizon_templates_utils.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: torizon_templates_utils
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Package with utilities for Torizon Templates scripts
5
5
  Author-email: Matheus Castello <matheus.castello@toradex.com>
6
6
  Project-URL: Homepage, https://github.com/torizon/vscode-torizon-templates
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "torizon_templates_utils"
7
- version = "0.0.2"
7
+ version = "0.0.4"
8
8
  authors = [
9
9
  { name="Matheus Castello", email="matheus.castello@toradex.com" },
10
10
  ]
@@ -517,6 +517,8 @@ class TaskRunner:
517
517
  ret: List[str] = []
518
518
 
519
519
  for value in env:
520
+ if "workspaceFolderBasename" in value:
521
+ value = self.__replace_env_var("workspaceFolderBasename", value)
520
522
  if "workspaceFolder" in value:
521
523
  value = self.__replace_env_var("workspaceFolder", value)
522
524
  ret.append(value)
@@ -602,7 +604,7 @@ class TaskRunner:
602
604
 
603
605
 
604
606
  def __contains_special_chars(self, str: str) -> bool:
605
- _pattern = r"[^a-zA-Z0-9\.\-_|>\/=]"
607
+ _pattern = r"[^a-zA-Z0-9\.\-_|>\/=+&_]"
606
608
  return re.search(_pattern, str) is not None
607
609
 
608
610
 
@@ -893,6 +895,10 @@ class TaskRunner:
893
895
 
894
896
  # we need to change the cwd if it's set
895
897
  if _cwd is not None:
898
+ _cwd = self.__check_workspace_folder([_cwd])[0]
899
+ _cwd = self.__check_config([_cwd])[0]
900
+ _cwd = self.__check_vscode_env([_cwd])[0]
901
+
896
902
  os.chdir(_cwd)
897
903
 
898
904
  # execute the task
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: torizon_templates_utils
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Package with utilities for Torizon Templates scripts
5
5
  Author-email: Matheus Castello <matheus.castello@toradex.com>
6
6
  Project-URL: Homepage, https://github.com/torizon/vscode-torizon-templates