@platforma-sdk/workflow-tengo 4.4.4 → 4.5.0

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 (32) hide show
  1. package/dist/tengo/lib/exec.internal.lib.tengo +12 -7
  2. package/dist/tengo/lib/exec.python.lib.tengo +9 -0
  3. package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
  4. package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
  5. package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
  6. package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
  7. package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
  8. package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
  9. package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
  10. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  11. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  12. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  16. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  17. package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
  18. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  19. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  20. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  21. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  22. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  23. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  24. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  25. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  28. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  29. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  30. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  31. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  32. package/package.json +1 -1
@@ -25,11 +25,15 @@ validation := import("@platforma-sdk/workflow-tengo:validation")
25
25
 
26
26
 
27
27
 
28
- _ARG_VAR_PKG := "pkg" // abs path to software package
29
- _ARG_VAR_JAVA := "java" // abs path to 'java' run environment
30
- _ARG_VAR_PYTHON_VENV := "python" // abs path to python virtual environment. WARNING: not change the name, it's used in other part of code
31
- _ARG_VAR_PYTHON_RUN_ENV := "python_run_env" // abs path to python run environment used to create venv
32
- _ARG_VAR_VENV_BIN_DIR := "venv_bin_dir" // name of bin dir in python venv depending on OS type (Scripts on Windows, bin on Unix)
28
+ _ARG_VAR_PKG := "pkg" // abs path to software package
29
+ _ARG_VAR_JAVA := "java" // abs path to 'java' run environment
30
+
31
+ _ARG_VAR_PYTHON_VENV := "python" // abs path to python virtual environment. WARNING: not change the name, it's used in other part of code
32
+ _ARG_VAR_PYTHON_RUN_ENV := "python_run_env" // abs path to python run environment used to create venv
33
+ _ARG_VAR_VENV_BIN_DIR := "venv_bin_dir" // name of bin dir in python venv depending on OS type (Scripts on Windows, bin on Unix)
34
+ _ARG_PYTHON_LOCAL_SCRIPT_DIR := "python_local_script_dir" // abs path to directory with local python scripts.
35
+ _ARG_PATH_DELIMETER := "path_delimeter"
36
+
33
37
  _ARG_VAR_R := "R" // abs path to 'R' run environment runtime
34
38
  _ARG_VAR_R_VENV := "rVenv" // abs path to 'R' portable virtual environment
35
39
  _ARG_VAR_MNZ := "monetization" // monetization env value
@@ -133,15 +137,16 @@ _loadPythonRunEnvironment := func(operationMode, descriptor, softName, softPkg)
133
137
  pythonRefVar := _newRefVar(_ARG_VAR_PYTHON_RUN_ENV, softName+"/python", venv.python())
134
138
  pythonVenvRefVar := _newRefVar(_ARG_VAR_PYTHON_VENV, softName + "/venv", venv.venv())
135
139
  venvBinDirRefVar := _newRefVar(_ARG_VAR_VENV_BIN_DIR, softName + "/binDir", venv.binDir() )
140
+ pathDelimeterRefVar := _newRefVar(_ARG_PATH_DELIMETER, softName + "/pathDelimeter", venv.pathDelimeter())
136
141
 
137
142
  return ll.toStrict({
138
143
  runEnvType: "python",
139
144
 
140
- variables: [ pythonRefVar, pythonVenvRefVar, venvBinDirRefVar ],
145
+ variables: [ pythonRefVar, pythonVenvRefVar, venvBinDirRefVar, pathDelimeterRefVar ],
141
146
  customPaths: [ _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_VENV), "venv", _expr(_ARG_VAR_VENV_BIN_DIR))) ],
142
147
  envs: {
143
148
  "VIRTUAL_ENV": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_VENV), "venv")),
144
- "PYTHONPATH": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_RUN_ENV), descriptor.runEnv.binDir, "python_stdlib"))
149
+ "PYTHONPATH": _newArg(false, path.join(_expr(_ARG_VAR_PYTHON_RUN_ENV), descriptor.runEnv.binDir, "python_stdlib") + _expr(_ARG_PATH_DELIMETER) + _expr(_ARG_VAR_PKG))
145
150
  }
146
151
  })
147
152
  }
@@ -13,6 +13,7 @@ desc := import("@platforma-sdk/workflow-tengo:exec.descriptor")
13
13
 
14
14
  _OUTPUT_RUN_ENV := "runEnv"
15
15
  _OUTPUT_BIN_DIR := "binDir"
16
+ _OUTPUT_OS_DELIMETER := "osPathDelimeter"
16
17
 
17
18
  createVenvTpl := assets.importTemplate("@platforma-sdk/workflow-tengo:exec.python.create-venv")
18
19
 
@@ -167,6 +168,14 @@ pythonVenvBuilder := func() {
167
168
 
168
169
 
169
170
 
171
+ pathDelimeter: func(){
172
+ return tpl.output(_OUTPUT_OS_DELIMETER, cache)
173
+ },
174
+
175
+
176
+
177
+
178
+
170
179
 
171
180
  venv: func() {
172
181
  return tpl.output(_OUTPUT_RUN_ENV, cache)
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/workflow-tengo",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",