pyallel 2.0.0__tar.gz → 2.0.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.
- {pyallel-2.0.0 → pyallel-2.0.1}/PKG-INFO +2 -2
- {pyallel-2.0.0 → pyallel-2.0.1}/README.md +1 -1
- {pyallel-2.0.0 → pyallel-2.0.1}/pyproject.toml +1 -1
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/main.py +10 -3
- {pyallel-2.0.0 → pyallel-2.0.1}/LICENSE +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/__init__.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/colours.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/constants.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/errors.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/parser.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/printer.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/process.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/process_group.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/process_group_manager.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.1}/src/pyallel/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyallel
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Run and handle the output of multiple executables in pyallel (as in parallel)
|
|
5
5
|
Home-page: https://github.com/Danthewaann/pyallel
|
|
6
6
|
License: MIT
|
|
@@ -109,7 +109,7 @@ options:
|
|
|
109
109
|
Currently you can provide a variable number of `commands` to run to `pyallel`, like so:
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
pyallel MYPY_FORCE_COLOR=1 mypy . :: black --check --diff . :: pytest .
|
|
112
|
+
pyallel -- MYPY_FORCE_COLOR=1 mypy . :: black --check --diff . :: pytest .
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
# Build
|
|
@@ -85,7 +85,7 @@ options:
|
|
|
85
85
|
Currently you can provide a variable number of `commands` to run to `pyallel`, like so:
|
|
86
86
|
|
|
87
87
|
```bash
|
|
88
|
-
pyallel MYPY_FORCE_COLOR=1 mypy . :: black --check --diff . :: pytest .
|
|
88
|
+
pyallel -- MYPY_FORCE_COLOR=1 mypy . :: black --check --diff . :: pytest .
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
# Build
|
|
@@ -53,9 +53,16 @@ def entry_point(*args: str) -> int:
|
|
|
53
53
|
return 1
|
|
54
54
|
|
|
55
55
|
if exit_code == 1:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
process_group = process_group_manager.get_cur_process_group_output()
|
|
57
|
+
print(
|
|
58
|
+
f"\n{colours.red_bold}ERROR: the following commands failed{colours.reset_colour}"
|
|
59
|
+
)
|
|
60
|
+
for process_output in process_group.processes:
|
|
61
|
+
process_poll = process_output.process.poll()
|
|
62
|
+
if process_poll and process_poll > 0:
|
|
63
|
+
print(
|
|
64
|
+
f" {colours.red_bold}{process_output.process.command}{colours.reset_colour}"
|
|
65
|
+
)
|
|
59
66
|
|
|
60
67
|
return exit_code
|
|
61
68
|
|
|
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
|