jpipe-runner 3.5.2__tar.gz → 3.6.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.
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/PKG-INFO +4 -2
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/README.md +2 -1
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/pyproject.toml +1 -1
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/exceptions.py +10 -1
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/runner.py +13 -2
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/LICENSE +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/__main__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/enums.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/context.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/contribution_decorator.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/jpipe_decorator.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/link_decorator.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/skip_decorator.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/engine.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/graphviz_exporter.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/logger.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/base.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/duplicate_producer.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/evidence_dependency.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/missing_variable.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/order.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/produced_not_consumed.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/schema.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/self_dependency.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/unbound_element.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/runtime.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/schema/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/schema/justification.schema.json +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/append_else_default_action.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/group_loggers/__init__.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/group_loggers/base.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/group_loggers/github_actions.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/group_loggers/plain.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/parsing.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/sanitize.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/syspath.py +0 -0
- {jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/terminal.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jpipe-runner
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.6.0
|
|
4
4
|
Summary: A Justification Runner designed for jPipe.
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
19
|
Provides-Extra: docs
|
|
19
20
|
Provides-Extra: full
|
|
20
21
|
Requires-Dist: graphviz (>=0.20)
|
|
@@ -45,7 +46,7 @@ A Justification Runner designed for jPipe.
|
|
|
45
46
|
```bash
|
|
46
47
|
poetry run jpipe-runner [-h] [--variable NAME:VALUE] [--library LIB] \
|
|
47
48
|
[--diagram PATTERN] [--output FILE] [--dry-run] \
|
|
48
|
-
[--verbose] [--config-file PATH] jd_file
|
|
49
|
+
[--quiet] [--verbose] [--config-file PATH] jd_file
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
**Key options:**
|
|
@@ -55,6 +56,7 @@ poetry run jpipe-runner [-h] [--variable NAME:VALUE] [--library LIB] \
|
|
|
55
56
|
* `--diagram`, `-d`: Select diagrams by wildcard pattern.
|
|
56
57
|
* `--output`, `-o`: Specify output image file (format inferred by extension).
|
|
57
58
|
* `--dry-run`: Validate workflow without executing.
|
|
59
|
+
* `--quiet`, `-q`: Suppress startup and exception ASCII banners.
|
|
58
60
|
* `--verbose`, `-V`: Enable debug logging.
|
|
59
61
|
* `--config-file`: Load workflow config from a YAML file.
|
|
60
62
|
Example:
|
|
@@ -18,7 +18,7 @@ A Justification Runner designed for jPipe.
|
|
|
18
18
|
```bash
|
|
19
19
|
poetry run jpipe-runner [-h] [--variable NAME:VALUE] [--library LIB] \
|
|
20
20
|
[--diagram PATTERN] [--output FILE] [--dry-run] \
|
|
21
|
-
[--verbose] [--config-file PATH] jd_file
|
|
21
|
+
[--quiet] [--verbose] [--config-file PATH] jd_file
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
**Key options:**
|
|
@@ -28,6 +28,7 @@ poetry run jpipe-runner [-h] [--variable NAME:VALUE] [--library LIB] \
|
|
|
28
28
|
* `--diagram`, `-d`: Select diagrams by wildcard pattern.
|
|
29
29
|
* `--output`, `-o`: Specify output image file (format inferred by extension).
|
|
30
30
|
* `--dry-run`: Validate workflow without executing.
|
|
31
|
+
* `--quiet`, `-q`: Suppress startup and exception ASCII banners.
|
|
31
32
|
* `--verbose`, `-V`: Enable debug logging.
|
|
32
33
|
* `--config-file`: Load workflow config from a YAML file.
|
|
33
34
|
Example:
|
|
@@ -21,6 +21,14 @@ STDERR_OUTPUT_BEGIN = r"""
|
|
|
21
21
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
|
+
QUIET_MODE = False
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def set_quiet_mode(enabled: bool):
|
|
28
|
+
"""Enable or disable quiet mode for exception output."""
|
|
29
|
+
global QUIET_MODE
|
|
30
|
+
QUIET_MODE = enabled
|
|
31
|
+
|
|
24
32
|
|
|
25
33
|
class RunnerException(Exception):
|
|
26
34
|
"""There was an ambiguous exception that occurred while running the runner."""
|
|
@@ -70,7 +78,8 @@ class WorkflowErrorWithLogDump(WorkflowError):
|
|
|
70
78
|
"""Print the error message (if any), then dump the log buffer."""
|
|
71
79
|
super().handle()
|
|
72
80
|
|
|
73
|
-
|
|
81
|
+
if not QUIET_MODE:
|
|
82
|
+
print(STDERR_OUTPUT_BEGIN, file=sys.stderr)
|
|
74
83
|
log_buffer.dump_to_stderr()
|
|
75
84
|
|
|
76
85
|
|
|
@@ -26,6 +26,7 @@ from jpipe_runner.exceptions import (
|
|
|
26
26
|
StreamOutputNotSupportedError,
|
|
27
27
|
UnsupportedOutputFormatError,
|
|
28
28
|
WorkflowError,
|
|
29
|
+
set_quiet_mode,
|
|
29
30
|
)
|
|
30
31
|
from jpipe_runner.framework.engine import PipelineEngine
|
|
31
32
|
from jpipe_runner.framework.logger import GLOBAL_LOGGER, log_buffer
|
|
@@ -128,6 +129,12 @@ def parse_args(argv: list[str] | None = None):
|
|
|
128
129
|
action="store_true",
|
|
129
130
|
help="Perform a dry run without actually executing justifications",
|
|
130
131
|
)
|
|
132
|
+
parser.add_argument(
|
|
133
|
+
"--quiet",
|
|
134
|
+
"-q",
|
|
135
|
+
action="store_true",
|
|
136
|
+
help="Suppress startup and exception ASCII banners",
|
|
137
|
+
)
|
|
131
138
|
parser.add_argument("--verbose", "-V", action="store_true", help="Enable verbose (info) output")
|
|
132
139
|
parser.add_argument("--config-file", help="Path to the config .yaml file")
|
|
133
140
|
parser.add_argument(
|
|
@@ -242,6 +249,8 @@ def pretty_display(diagrams: Iterable[tuple[str, Iterable[dict]]]) -> tuple[int,
|
|
|
242
249
|
def run_workflow_logic():
|
|
243
250
|
args = parse_args(sys.argv[1:])
|
|
244
251
|
|
|
252
|
+
set_quiet_mode(args.quiet)
|
|
253
|
+
|
|
245
254
|
if args.verbose:
|
|
246
255
|
GLOBAL_LOGGER.setLevel(logging.INFO)
|
|
247
256
|
|
|
@@ -283,7 +292,8 @@ def run_workflow_logic():
|
|
|
283
292
|
raise DryRunError()
|
|
284
293
|
sys.exit(0)
|
|
285
294
|
|
|
286
|
-
|
|
295
|
+
if not args.quiet:
|
|
296
|
+
print(JPIPE_RUNNER_ASCII)
|
|
287
297
|
_, _, total_fail, _ = pretty_display([(jpipe.justification_name, justification_result)])
|
|
288
298
|
|
|
289
299
|
if args.format:
|
|
@@ -312,7 +322,8 @@ def run_workflow_logic():
|
|
|
312
322
|
|
|
313
323
|
# if errors on buffer show them
|
|
314
324
|
if log_buffer.has_errors():
|
|
315
|
-
|
|
325
|
+
if not args.quiet:
|
|
326
|
+
print(STDERR_OUTPUT_BEGIN, file=sys.stderr)
|
|
316
327
|
log_buffer.dump_to_stderr()
|
|
317
328
|
|
|
318
329
|
sys.exit(0 if total_fail == 0 else 1) # Exit with 0 if all passed, otherwise 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/jpipe_decorator.py
RENAMED
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/link_decorator.py
RENAMED
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/decorators/skip_decorator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/missing_variable.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/self_dependency.py
RENAMED
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/framework/validators/unbound_element.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/append_else_default_action.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jpipe_runner-3.5.2 → jpipe_runner-3.6.0}/src/jpipe_runner/utils/group_loggers/github_actions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|