pyallel 2.0.0__tar.gz → 2.0.2__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.2}/PKG-INFO +4 -4
- {pyallel-2.0.0 → pyallel-2.0.2}/README.md +2 -2
- {pyallel-2.0.0 → pyallel-2.0.2}/pyproject.toml +2 -3
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/main.py +10 -3
- {pyallel-2.0.0 → pyallel-2.0.2}/LICENSE +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/__init__.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/colours.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/constants.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/errors.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/parser.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/printer.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/process.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/process_group.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/process_group_manager.py +0 -0
- {pyallel-2.0.0 → pyallel-2.0.2}/src/pyallel/py.typed +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyallel
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
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
|
|
7
7
|
Keywords: parallel,command,runner,executable,shell,terminal
|
|
8
8
|
Author: Daniel Black
|
|
9
9
|
Author-email: danielcrblack@gmail.com
|
|
10
|
-
Requires-Python: >=3.8
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
@@ -26,7 +26,7 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
|
|
27
27
|
Run and handle the output of multiple executables in `pyallel` (as in parallel)
|
|
28
28
|
|
|
29
|
-
https://github.com/
|
|
29
|
+

|
|
30
30
|
|
|
31
31
|
Tested on Linux and MacOS only
|
|
32
32
|
|
|
@@ -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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Run and handle the output of multiple executables in `pyallel` (as in parallel)
|
|
4
4
|
|
|
5
|
-
https://github.com/
|
|
5
|
+

|
|
6
6
|
|
|
7
7
|
Tested on Linux and MacOS only
|
|
8
8
|
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyallel"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
description = "Run and handle the output of multiple executables in pyallel (as in parallel)"
|
|
5
5
|
authors = ["Daniel Black <danielcrblack@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -20,12 +20,11 @@ classifiers = [
|
|
|
20
20
|
pyallel = "pyallel.main:entry_point"
|
|
21
21
|
|
|
22
22
|
[tool.poetry.dependencies]
|
|
23
|
-
python = ">=3.8
|
|
23
|
+
python = ">=3.8"
|
|
24
24
|
|
|
25
25
|
[tool.poetry.group.dev.dependencies]
|
|
26
26
|
pytest = "^7.4.3"
|
|
27
27
|
mypy = "^1.7.0"
|
|
28
|
-
pyinstaller = "6.11.0"
|
|
29
28
|
|
|
30
29
|
[tool.mypy]
|
|
31
30
|
strict = true
|
|
@@ -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
|