exec-helpers 8.1.1__tar.gz → 8.1.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.
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/PKG-INFO +1 -1
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_ssh_base.py +5 -4
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_version.py +2 -2
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/exec_result.py +2 -2
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/PKG-INFO +1 -1
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/pyproject.toml +5 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/.editorconfig +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/.pre-commit-config.yaml +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/.readthedocs.yaml +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/CI_REQUIREMENTS.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/LICENSE +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/MANIFEST.in +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/README.rst +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/build_requirements.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/classifiers.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/__init__.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/__init__.pyi +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_helpers.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_log_templates.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_ssh_helpers.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/_subprocess_helpers.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/api.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/async_api/__init__.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/async_api/__init__.pyi +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/async_api/api.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/async_api/exec_result.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/async_api/subprocess.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/constants.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/exceptions.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/proc_enums.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/py.typed +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/ssh.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/ssh_auth.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers/subprocess.py +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/SOURCES.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/dependency_links.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/not-zip-safe +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/requires.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/exec_helpers.egg-info/top_level.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/flake8_requirements.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/mypy_requirements.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/pytest_requirements.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/requirements.txt +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/setup.cfg +0 -0
- {exec_helpers-8.1.1 → exec_helpers-8.1.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exec-helpers
|
|
3
|
-
Version: 8.1.
|
|
3
|
+
Version: 8.1.2
|
|
4
4
|
Summary: Execution helpers for simplified usage of subprocess and ssh.
|
|
5
5
|
Home-page: https://github.com/python-useful-helpers/exec-helpers
|
|
6
6
|
Author-email: Alexey Stepanov <penguinolog@gmail.com>
|
|
@@ -1745,7 +1745,8 @@ class SSHClientBase(api.ExecHelper):
|
|
|
1745
1745
|
if done:
|
|
1746
1746
|
res.exit_code = async_result.interface.recv_exit_status()
|
|
1747
1747
|
return res
|
|
1748
|
-
|
|
1748
|
+
|
|
1749
|
+
res.set_timestamp()
|
|
1749
1750
|
|
|
1750
1751
|
wait_err_msg: str = _log_templates.CMD_WAIT_ERROR.format(result=res, timeout=timeout)
|
|
1751
1752
|
remote.logger.debug(wait_err_msg)
|
|
@@ -1773,11 +1774,11 @@ class SSHClientBase(api.ExecHelper):
|
|
|
1773
1774
|
for remote, future in futures.items():
|
|
1774
1775
|
try:
|
|
1775
1776
|
result = future.result(timeout=0.1)
|
|
1776
|
-
results[
|
|
1777
|
+
results[remote.hostname, remote.port] = result
|
|
1777
1778
|
if result.exit_code not in prep_expected:
|
|
1778
|
-
errors[
|
|
1779
|
+
errors[remote.hostname, remote.port] = result
|
|
1779
1780
|
except Exception as e: # noqa: PERF203
|
|
1780
|
-
raised_exceptions[
|
|
1781
|
+
raised_exceptions[remote.hostname, remote.port] = e
|
|
1781
1782
|
|
|
1782
1783
|
if raised_exceptions: # always raise
|
|
1783
1784
|
raise exceptions.ParallelCallExceptionsError(
|
|
@@ -50,7 +50,7 @@ except ImportError:
|
|
|
50
50
|
lxml = None # pylint: disable=invalid-name
|
|
51
51
|
|
|
52
52
|
if typing.TYPE_CHECKING:
|
|
53
|
-
import xml.etree.ElementTree # nosec # for typing only
|
|
53
|
+
import xml.etree.ElementTree as ET # nosec # for typing only
|
|
54
54
|
from collections.abc import Callable
|
|
55
55
|
from collections.abc import Collection
|
|
56
56
|
from collections.abc import Iterable
|
|
@@ -677,7 +677,7 @@ class ExecResult:
|
|
|
677
677
|
# noinspection PyUnresolvedReferences
|
|
678
678
|
@property
|
|
679
679
|
@_handle_deserialize("xml")
|
|
680
|
-
def stdout_xml(self) ->
|
|
680
|
+
def stdout_xml(self) -> ET.Element:
|
|
681
681
|
"""XML from stdout.
|
|
682
682
|
|
|
683
683
|
:return: Decoded XML document.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exec-helpers
|
|
3
|
-
Version: 8.1.
|
|
3
|
+
Version: 8.1.2
|
|
4
4
|
Summary: Execution helpers for simplified usage of subprocess and ssh.
|
|
5
5
|
Home-page: https://github.com/python-useful-helpers/exec-helpers
|
|
6
6
|
Author-email: Alexey Stepanov <penguinolog@gmail.com>
|
|
@@ -179,6 +179,7 @@ extend-select = [
|
|
|
179
179
|
"ISC", # flake8-implicit-str-concat
|
|
180
180
|
"RET", "SIM", "C4", # flake8-return, flake8-simplify, flake8-comprehensions
|
|
181
181
|
"ICN", "PGH", # flake8-import-conventions, pygrep-hooks
|
|
182
|
+
"TID", # flake8-tidy-imports
|
|
182
183
|
"Q", # quotes
|
|
183
184
|
"FLY", # Flynt
|
|
184
185
|
"FURB", # Refurb
|
|
@@ -191,6 +192,7 @@ extend-ignore = [
|
|
|
191
192
|
"RET504", # Unnecessary variable assignment before return statement
|
|
192
193
|
"SIM108", # Use ternary operator,
|
|
193
194
|
"TRY003", # long messages prepare outside, ...
|
|
195
|
+
"TID252", # relative imports from parent modules
|
|
194
196
|
]
|
|
195
197
|
|
|
196
198
|
[tool.ruff.lint.isort]
|
|
@@ -203,6 +205,9 @@ allow-dunder-method-names = ["__pretty_repr__", "__pretty_str__", "__rich_repr__
|
|
|
203
205
|
[tool.ruff.lint.pydocstyle]
|
|
204
206
|
convention = "pep257"
|
|
205
207
|
|
|
208
|
+
[tool.ruff.format]
|
|
209
|
+
docstring-code-format = true
|
|
210
|
+
|
|
206
211
|
[tool.refurb]
|
|
207
212
|
python_version = "3.8"
|
|
208
213
|
enable_all = true
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|