wexample-runner 10.0.4__tar.gz → 10.2.0__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.
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/PKG-INFO +3 -3
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/README.md +1 -1
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/pyproject.toml +2 -2
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/abstract_docker_runner.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/docker_attached_runner.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/docker_runner.py +9 -5
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/tests/.gitkeep +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/__init__.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/py.typed +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/__init__.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/abstract_runner.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/local_runner.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/ssh_runner.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner_config.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner_registry.py +0 -0
- {wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner_result.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-runner
|
|
3
|
-
Version: 10.0
|
|
3
|
+
Version: 10.2.0
|
|
4
4
|
Summary: Executes commands across local, SSH, and Docker environments through a unified runner interface with lifecycle management (build, start, stop, destroy)
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -10,7 +10,7 @@ Classifier: Operating System :: OS Independent
|
|
|
10
10
|
Project-URL: homepage, https://github.com/wexample/python-runner
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Requires-Dist: paramiko>=3.0.0
|
|
13
|
-
Requires-Dist: wexample-helpers>=20.
|
|
13
|
+
Requires-Dist: wexample-helpers>=20.7.0
|
|
14
14
|
Provides-Extra: dev
|
|
15
15
|
Requires-Dist: pytest; extra == "dev"
|
|
16
16
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
|
|
19
19
|
# runner
|
|
20
20
|
|
|
21
|
-
Version: 10.0
|
|
21
|
+
Version: 10.2.0
|
|
22
22
|
|
|
23
23
|
Executes commands across local, SSH, and Docker environments through a unified runner interface with lifecycle management (build, start, stop, destroy)
|
|
24
24
|
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-runner"
|
|
9
|
-
version = "10.0
|
|
9
|
+
version = "10.2.0"
|
|
10
10
|
description = "Executes commands across local, SSH, and Docker environments through a unified runner interface with lifecycle management (build, start, stop, destroy)"
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "weeger", email = "contact@wexample.com" },
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
]
|
|
20
20
|
dependencies = [
|
|
21
21
|
"paramiko>=3.0.0",
|
|
22
|
-
"wexample-helpers>=20.
|
|
22
|
+
"wexample-helpers>=20.7.0",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
[project.readme]
|
|
File without changes
|
|
File without changes
|
{wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/docker_runner.py
RENAMED
|
@@ -142,10 +142,14 @@ class DockerRunner(AbstractDockerRunner):
|
|
|
142
142
|
atexit.register(self.dispose)
|
|
143
143
|
|
|
144
144
|
def stop(self) -> None:
|
|
145
|
-
from wexample_helpers.helper.docker import
|
|
146
|
-
|
|
147
|
-
docker_stop_container,
|
|
148
|
-
)
|
|
145
|
+
from wexample_helpers.helper.docker import docker_container_is_running
|
|
146
|
+
from wexample_helpers.helper.shell import shell_run
|
|
149
147
|
|
|
148
|
+
# Without grace: the container idles on `tail -f`, which ignores the
|
|
149
|
+
# stop signal, and docker would wait its 10s before killing it — at the
|
|
150
|
+
# end of every rectify, 10s per package of a suite publication.
|
|
150
151
|
if docker_container_is_running(self.container_name):
|
|
151
|
-
|
|
152
|
+
shell_run(
|
|
153
|
+
cmd=["docker", "stop", "--time", "0", self.container_name],
|
|
154
|
+
capture=True,
|
|
155
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/abstract_runner.py
RENAMED
|
File without changes
|
{wexample_runner-10.0.4 → wexample_runner-10.2.0}/src/wexample_runner/runner/local_runner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|