wexample-runner 10.1.0__tar.gz → 10.2.1__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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-runner
3
- Version: 10.1.0
3
+ Version: 10.2.1
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.7.0
13
+ Requires-Dist: wexample-helpers>=20.8.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.1.0
21
+ Version: 10.2.1
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
 
@@ -1,6 +1,6 @@
1
1
  # runner
2
2
 
3
- Version: 10.1.0
3
+ Version: 10.2.1
4
4
 
5
5
  Executes commands across local, SSH, and Docker environments through a unified runner interface with lifecycle management (build, start, stop, destroy)
6
6
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-runner"
9
- version = "10.1.0"
9
+ version = "10.2.1"
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.7.0",
22
+ "wexample-helpers>=20.8.0",
23
23
  ]
24
24
 
25
25
  [project.readme]
@@ -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
- docker_container_is_running,
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
- docker_stop_container(self.container_name)
152
+ shell_run(
153
+ cmd=["docker", "stop", "--time", "0", self.container_name],
154
+ capture=True,
155
+ )