wexample-runner 9.1.3__tar.gz → 9.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-9.1.3 → wexample_runner-9.2.0}/PKG-INFO +4 -4
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/README.md +2 -2
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/pyproject.toml +2 -2
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/docker_runner.py +8 -8
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/local_runner.py +1 -1
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/__init__.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/py.typed +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/__init__.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/abstract_runner.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/ssh_runner.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner_config.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner_registry.py +0 -0
- {wexample_runner-9.1.3 → wexample_runner-9.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: 9.
|
|
3
|
+
Version: 9.2.0
|
|
4
4
|
Summary: Generic runner abstraction for executing commands in different environments (local, Docker, SSH).
|
|
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>=
|
|
13
|
+
Requires-Dist: wexample-helpers>=19.0.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: 9.
|
|
21
|
+
Version: 9.2.0
|
|
22
22
|
|
|
23
23
|
Generic runner abstraction for executing commands in different environments (local, Docker, SSH).
|
|
24
24
|
|
|
@@ -99,7 +99,7 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
99
99
|
## Dependencies
|
|
100
100
|
|
|
101
101
|
- paramiko: >=3.0.0
|
|
102
|
-
- wexample-helpers: >=
|
|
102
|
+
- wexample-helpers: >=19.0.0
|
|
103
103
|
|
|
104
104
|
## Versioning & Compatibility Policy
|
|
105
105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# runner
|
|
2
2
|
|
|
3
|
-
Version: 9.
|
|
3
|
+
Version: 9.2.0
|
|
4
4
|
|
|
5
5
|
Generic runner abstraction for executing commands in different environments (local, Docker, SSH).
|
|
6
6
|
|
|
@@ -81,7 +81,7 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
81
81
|
## Dependencies
|
|
82
82
|
|
|
83
83
|
- paramiko: >=3.0.0
|
|
84
|
-
- wexample-helpers: >=
|
|
84
|
+
- wexample-helpers: >=19.0.0
|
|
85
85
|
|
|
86
86
|
## Versioning & Compatibility Policy
|
|
87
87
|
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-runner"
|
|
9
|
-
version = "9.
|
|
9
|
+
version = "9.2.0"
|
|
10
10
|
description = "Generic runner abstraction for executing commands in different environments (local, Docker, SSH)."
|
|
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>=
|
|
22
|
+
"wexample-helpers>=19.0.0",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
25
|
[project.readme]
|
|
@@ -38,20 +38,20 @@ class DockerRunner(AbstractRunner):
|
|
|
38
38
|
|
|
39
39
|
@property
|
|
40
40
|
def is_built(self) -> bool:
|
|
41
|
-
from wexample_helpers.
|
|
41
|
+
from wexample_helpers.helper.docker import docker_image_exists
|
|
42
42
|
|
|
43
43
|
return docker_image_exists(self.image_name)
|
|
44
44
|
|
|
45
45
|
# --- Properties ---
|
|
46
46
|
@property
|
|
47
47
|
def is_running(self) -> bool:
|
|
48
|
-
from wexample_helpers.
|
|
48
|
+
from wexample_helpers.helper.docker import docker_container_is_running
|
|
49
49
|
|
|
50
50
|
return docker_container_is_running(self.container_name)
|
|
51
51
|
|
|
52
52
|
# --- Lifecycle ---
|
|
53
53
|
def build(self) -> None:
|
|
54
|
-
from wexample_helpers.
|
|
54
|
+
from wexample_helpers.helper.docker import (
|
|
55
55
|
docker_build_image,
|
|
56
56
|
docker_image_exists,
|
|
57
57
|
)
|
|
@@ -60,7 +60,7 @@ class DockerRunner(AbstractRunner):
|
|
|
60
60
|
docker_build_image(self.image_name, self.dockerfile_path)
|
|
61
61
|
|
|
62
62
|
def destroy(self) -> None:
|
|
63
|
-
from wexample_helpers.
|
|
63
|
+
from wexample_helpers.helper.docker import (
|
|
64
64
|
docker_container_exists,
|
|
65
65
|
docker_image_exists,
|
|
66
66
|
docker_remove_container,
|
|
@@ -83,7 +83,7 @@ class DockerRunner(AbstractRunner):
|
|
|
83
83
|
) -> RunnerResult:
|
|
84
84
|
import subprocess
|
|
85
85
|
|
|
86
|
-
from wexample_helpers.
|
|
86
|
+
from wexample_helpers.helper.shell import shell_run
|
|
87
87
|
|
|
88
88
|
if isinstance(cmd, str):
|
|
89
89
|
cmd = ["sh", "-c", cmd]
|
|
@@ -135,7 +135,7 @@ class DockerRunner(AbstractRunner):
|
|
|
135
135
|
def start(self) -> None:
|
|
136
136
|
import os
|
|
137
137
|
|
|
138
|
-
from wexample_helpers.
|
|
138
|
+
from wexample_helpers.helper.docker import (
|
|
139
139
|
docker_container_exists,
|
|
140
140
|
docker_container_is_running,
|
|
141
141
|
docker_run_container,
|
|
@@ -155,7 +155,7 @@ class DockerRunner(AbstractRunner):
|
|
|
155
155
|
)
|
|
156
156
|
|
|
157
157
|
def stop(self) -> None:
|
|
158
|
-
from wexample_helpers.
|
|
158
|
+
from wexample_helpers.helper.docker import (
|
|
159
159
|
docker_container_is_running,
|
|
160
160
|
docker_stop_container,
|
|
161
161
|
)
|
|
@@ -164,7 +164,7 @@ class DockerRunner(AbstractRunner):
|
|
|
164
164
|
docker_stop_container(self.container_name)
|
|
165
165
|
|
|
166
166
|
def _build_container_name(self) -> str:
|
|
167
|
-
from wexample_helpers.
|
|
167
|
+
from wexample_helpers.helper.docker import docker_build_name_from_path
|
|
168
168
|
|
|
169
169
|
anchor = next(iter(self.volumes)) if self.volumes else self.image_name
|
|
170
170
|
return docker_build_name_from_path(root_path=anchor, image_name=self.image_name)
|
|
@@ -21,7 +21,7 @@ class LocalRunner(AbstractRunner):
|
|
|
21
21
|
workdir: str | None = None,
|
|
22
22
|
env: dict[str, str] | None = None,
|
|
23
23
|
) -> RunnerResult:
|
|
24
|
-
from wexample_helpers.
|
|
24
|
+
from wexample_helpers.helper.shell import shell_run
|
|
25
25
|
|
|
26
26
|
result = shell_run(
|
|
27
27
|
cmd=cmd,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wexample_runner-9.1.3 → wexample_runner-9.2.0}/src/wexample_runner/runner/abstract_runner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|