_pack
Pack runtime into distributable archive.
Functions¶
log(*msg, method_name=None, level=logging.INFO)
¶
Log a message with automatic method name detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str
|
The message to log |
()
|
method_name
|
str
|
The name of the method/function. If None, will auto-detect from call stack. |
None
|
level
|
int
|
Logging level (default: logging.INFO) |
INFO
|
Source code in brmspy/helpers/log.py
pack_runtime(runtime_root, out_dir, runtime_version)
¶
Create compressed tar archive from runtime directory.
Packages the staged runtime directory into a distributable .tar.gz archive with standardized naming for platform/version identification.
Archive naming format: brmspy-runtime-{runtime_version}-{fingerprint}.tar.gz
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
runtime_root
|
Path
|
Path to staged runtime directory (from stage_runtime_tree) |
required |
out_dir
|
Path
|
Output directory for archive file |
required |
runtime_version
|
str
|
Runtime schema version (e.g., "0.1.0") |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to created .tar.gz archive file |