drop async-service dep and copy relevant code into a local async_service

tool, updated for modern handling of ExceptionGroup
This commit is contained in:
pacrob
2024-05-19 14:48:03 -06:00
committed by Paul Robinson
parent 7de6cbaab0
commit d9b92635c1
28 changed files with 2176 additions and 35 deletions

View File

@ -56,7 +56,8 @@ class BaseInteractiveProcess(AbstractInterativeProcess):
async def start(self) -> None:
if self.proc is not None:
return
self.proc = await trio.open_process(
# mypy says that `open_process` is not an attribute of trio, suggests run_process instead. # noqa: E501
self.proc = await trio.open_process( # type: ignore[attr-defined]
[self.cmd] + self.args,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, # Redirect stderr to stdout, which makes parsing easier # noqa: E501