digitalhub-runtime-python 0.6.0b9__tar.gz → 0.6.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.
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/PKG-INFO +1 -1
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/configuration.py +4 -33
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python.egg-info/PKG-INFO +1 -1
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/pyproject.toml +2 -2
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/LICENSE.txt +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/README.md +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/functions/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/functions/models.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/functions/spec.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/functions/status.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/runs/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/runs/spec.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/runs/status.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/tasks/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/tasks/models.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/tasks/spec.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/entities/tasks/status.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/runtimes/__init__.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/runtimes/kind_registry.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/runtimes/runtime.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/env.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/inputs.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/nuclio_configuration.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/outputs.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python/utils/utils.py +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python.egg-info/SOURCES.txt +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python.egg-info/dependency_links.txt +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python.egg-info/requires.txt +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/digitalhub_runtime_python.egg-info/top_level.txt +0 -0
- {digitalhub_runtime_python-0.6.0b9 → digitalhub_runtime_python-0.6.1}/setup.cfg +0 -0
|
@@ -33,9 +33,9 @@ def get_function_from_source(path: Path, source_spec: dict) -> Callable:
|
|
|
33
33
|
Function.
|
|
34
34
|
"""
|
|
35
35
|
try:
|
|
36
|
-
|
|
36
|
+
source_path = save_function_source(path, source_spec)
|
|
37
37
|
handler_path, function_name = parse_handler(source_spec["handler"])
|
|
38
|
-
function_path = (
|
|
38
|
+
function_path = (source_path / handler_path).with_suffix(".py")
|
|
39
39
|
return import_function(function_path, function_name)
|
|
40
40
|
except Exception as e:
|
|
41
41
|
msg = f"Some error occurred while getting function. Exception: {e.__class__}. Error: {e.args}"
|
|
@@ -43,35 +43,6 @@ def get_function_from_source(path: Path, source_spec: dict) -> Callable:
|
|
|
43
43
|
raise RuntimeError(msg) from e
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
def get_init_function(path: Path, source_spec: dict) -> Callable:
|
|
47
|
-
"""
|
|
48
|
-
Get function from source.
|
|
49
|
-
|
|
50
|
-
Parameters
|
|
51
|
-
----------
|
|
52
|
-
path : Path
|
|
53
|
-
Path where to save the function source.
|
|
54
|
-
source_spec : dict
|
|
55
|
-
Funcrion source spec.
|
|
56
|
-
|
|
57
|
-
Returns
|
|
58
|
-
-------
|
|
59
|
-
Callable
|
|
60
|
-
Function.
|
|
61
|
-
"""
|
|
62
|
-
try:
|
|
63
|
-
if "init_function" not in source_spec:
|
|
64
|
-
return
|
|
65
|
-
function_code = save_function_source(path, source_spec)
|
|
66
|
-
handler_path, _ = parse_handler(source_spec["handler"])
|
|
67
|
-
function_path = (function_code / handler_path).with_suffix(".py")
|
|
68
|
-
return import_function(function_path, source_spec["init_function"])
|
|
69
|
-
except Exception as e:
|
|
70
|
-
msg = f"Some error occurred while getting init function. Exception: {e.__class__}. Error: {e.args}"
|
|
71
|
-
LOGGER.exception(msg)
|
|
72
|
-
raise RuntimeError(msg) from e
|
|
73
|
-
|
|
74
|
-
|
|
75
46
|
def parse_handler(handler: str) -> tuple:
|
|
76
47
|
"""
|
|
77
48
|
Parse handler.
|
|
@@ -203,7 +174,7 @@ def unzip(path: Path, filename: Path) -> None:
|
|
|
203
174
|
raise RuntimeError(msg) from e
|
|
204
175
|
|
|
205
176
|
|
|
206
|
-
def get_repository(path: Path, source: str) ->
|
|
177
|
+
def get_repository(path: Path, source: str) -> None:
|
|
207
178
|
"""
|
|
208
179
|
Get repository.
|
|
209
180
|
|
|
@@ -219,7 +190,7 @@ def get_repository(path: Path, source: str) -> str:
|
|
|
219
190
|
None
|
|
220
191
|
"""
|
|
221
192
|
try:
|
|
222
|
-
clone_repository(
|
|
193
|
+
clone_repository(source, path)
|
|
223
194
|
except Exception as e:
|
|
224
195
|
msg = f"Some error occurred while downloading function repo source. Exception: {e.__class__}. Error: {e.args}"
|
|
225
196
|
LOGGER.exception(msg)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "digitalhub-runtime-python"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.1"
|
|
8
8
|
description = "Python runtime for DHCore"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -39,7 +39,7 @@ line-length = 120
|
|
|
39
39
|
convention = "numpy"
|
|
40
40
|
|
|
41
41
|
[tool.bumpver]
|
|
42
|
-
current_version = "0.6.
|
|
42
|
+
current_version = "0.6.1"
|
|
43
43
|
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
|
|
44
44
|
commit_message = "Bump version {old_version} -> {new_version}"
|
|
45
45
|
commit = false
|
|
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
|