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.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyallel
3
- Version: 2.0.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,<3.14
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/Danthewaann/pyallel/assets/22531177/8685eb92-aac5-440a-9170-30fd1460c53f
29
+ ![demo](https://github.com/user-attachments/assets/a5b316f9-88a1-4223-b39e-ae2c9573897b)
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/Danthewaann/pyallel/assets/22531177/8685eb92-aac5-440a-9170-30fd1460c53f
5
+ ![demo](https://github.com/user-attachments/assets/a5b316f9-88a1-4223-b39e-ae2c9573897b)
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.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,<3.14"
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
- 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