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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyallel
3
- Version: 2.0.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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyallel"
3
- version = "2.0.0"
3
+ version = "2.0.1"
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"
@@ -53,9 +53,16 @@ def entry_point(*args: str) -> int:
53
53
  return 1
54
54
 
55
55
  if exit_code == 1:
56
- print(f"{colours.red_bold}\nFailed!{colours.reset_colour}")
57
- elif exit_code == 0:
58
- print(f"{colours.green_bold}\nDone!{colours.reset_colour}")
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