-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cache commands and remember host in exceptions (#583)
* tests: shorten test_timeout to 3s instead of 10s * command: fix handling of env-vars passed to plumbum Commands; support new with_cwd - don't use the non-threadsafe and session-dependent .env() context manager - sync popen support for 'env' param in all machine impls: local/ssh/paramiko - add .with_cwd() to complement .with_env() * ssh: better error reporting on SshSession errors * machines: use a cache to speed-up lookups commands/programs this is particularly important for remote machines, where this lookup is very costly * make iter_lines deal with decoding errors during iteration; Also... remove broken support for no-decoding * Add 'host' to ssh exceptions * .gitignore: add .eggs * iter_lines: added new 'buffer_size' parameter, and updated docstrings * iter_lines: pylint formatting fix * Update plumbum/commands/processes.py * Update base.py Co-authored-by: ErezH <erez.horev@vastdata.com> Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Henry Schreiner <henry.fredrick.schreiner@cern.ch>
- Loading branch information
1 parent
8fdb08d
commit b775d36
Showing
7 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ tests/.cache/* | |
*.pot | ||
/*venv* | ||
*.mypy_cache | ||
.eggs | ||
/plumbum/version.py | ||
/tests/nohup.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters