truss 0.11.5rc510__py3-none-any.whl → 0.11.5rc512__py3-none-any.whl
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.
Potentially problematic release.
This version of truss might be problematic. Click here for more details.
- truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py +9 -11
- {truss-0.11.5rc510.dist-info → truss-0.11.5rc512.dist-info}/METADATA +1 -1
- {truss-0.11.5rc510.dist-info → truss-0.11.5rc512.dist-info}/RECORD +6 -6
- {truss-0.11.5rc510.dist-info → truss-0.11.5rc512.dist-info}/WHEEL +0 -0
- {truss-0.11.5rc510.dist-info → truss-0.11.5rc512.dist-info}/entry_points.txt +0 -0
- {truss-0.11.5rc510.dist-info → truss-0.11.5rc512.dist-info}/licenses/LICENSE +0 -0
|
@@ -77,15 +77,13 @@ class ModelContainerPatchApplier:
|
|
|
77
77
|
def _truss_config(self) -> TrussConfig:
|
|
78
78
|
return TrussConfig.from_yaml(self._inference_server_home / "config.yaml")
|
|
79
79
|
|
|
80
|
-
def _derive_pip_from_inference_server_python(self, python_path: str) -> str:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return str(pip_candidate)
|
|
85
|
-
raise RuntimeError(f"Unable to find pip for Python executable: {python_path}")
|
|
80
|
+
def _derive_pip_from_inference_server_python(self, python_path: str) -> tuple[str, list[str]]:
|
|
81
|
+
"""Return (uv_executable, base_args) for package management using uv."""
|
|
82
|
+
# Use uv from PATH - it should be available since it's installed in the Dockerfile
|
|
83
|
+
return "uv", ["pip", "--python", python_path]
|
|
86
84
|
|
|
87
85
|
@property
|
|
88
|
-
def
|
|
86
|
+
def _uv_executable_and_args(self) -> tuple[str, list[str]]:
|
|
89
87
|
if self._pip_path_cached is None:
|
|
90
88
|
self._pip_path_cached = self._derive_pip_from_inference_server_python(self._inference_server_python)
|
|
91
89
|
return self._pip_path_cached
|
|
@@ -98,10 +96,11 @@ class ModelContainerPatchApplier:
|
|
|
98
96
|
)
|
|
99
97
|
action = python_requirement_patch.action
|
|
100
98
|
|
|
99
|
+
uv_executable, base_args = self._uv_executable_and_args
|
|
100
|
+
|
|
101
101
|
if action == Action.REMOVE:
|
|
102
102
|
subprocess.run(
|
|
103
|
-
[
|
|
104
|
-
self._pip_path,
|
|
103
|
+
[uv_executable] + base_args + [
|
|
105
104
|
"uninstall",
|
|
106
105
|
"-y",
|
|
107
106
|
python_requirement_patch.requirement,
|
|
@@ -110,8 +109,7 @@ class ModelContainerPatchApplier:
|
|
|
110
109
|
)
|
|
111
110
|
elif action in [Action.ADD, Action.UPDATE]:
|
|
112
111
|
subprocess.run(
|
|
113
|
-
[
|
|
114
|
-
self._pip_path,
|
|
112
|
+
[uv_executable] + base_args + [
|
|
115
113
|
"install",
|
|
116
114
|
python_requirement_patch.requirement,
|
|
117
115
|
"--upgrade",
|
|
@@ -84,7 +84,7 @@ truss/templates/control/control/helpers/inference_server_process_controller.py,s
|
|
|
84
84
|
truss/templates/control/control/helpers/inference_server_starter.py,sha256=Fz2Puijro6Cc5cvTsAqOveNJbBQR_ARYJXl4lvETJ8Y,2633
|
|
85
85
|
truss/templates/control/control/helpers/truss_patch/__init__.py,sha256=CXZdUV_ylqLTJrKuFpvSnUT6PUFrZrMF2y6jiHbdaKU,998
|
|
86
86
|
truss/templates/control/control/helpers/truss_patch/model_code_patch_applier.py,sha256=LTIIADLz0wRn7V49j64dU1U7Hbta9YLde3pb5YZWvzQ,2001
|
|
87
|
-
truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py,sha256=
|
|
87
|
+
truss/templates/control/control/helpers/truss_patch/model_container_patch_applier.py,sha256=7NMxazl_gjsUM4qZHEOmG5oYkKIgrmdQeKbQ4iNu1Gk,6671
|
|
88
88
|
truss/templates/control/control/helpers/truss_patch/requirement_name_identifier.py,sha256=CL3KEAj4B3ApMQShd7TI5umXVbazLZY5StrNlwHwWtc,1995
|
|
89
89
|
truss/templates/control/control/helpers/truss_patch/system_packages.py,sha256=IYh1CVU_kooAvtSGXKQDDWnNdOhlv7ENWagsL1wvhgw,208
|
|
90
90
|
truss/templates/custom/examples.yaml,sha256=2UcCtEdavImWmiCtj31ckBlAKVOwNMC5AwMIIznKDag,48
|
|
@@ -368,8 +368,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
|
|
|
368
368
|
truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
|
|
369
369
|
truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
|
|
370
370
|
truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
|
|
371
|
-
truss-0.11.
|
|
372
|
-
truss-0.11.
|
|
373
|
-
truss-0.11.
|
|
374
|
-
truss-0.11.
|
|
375
|
-
truss-0.11.
|
|
371
|
+
truss-0.11.5rc512.dist-info/METADATA,sha256=3La9EnWPk7Vvl3fg8sD0KpNcpmU3-HEsPr72FTKHnfk,6682
|
|
372
|
+
truss-0.11.5rc512.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
373
|
+
truss-0.11.5rc512.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
|
|
374
|
+
truss-0.11.5rc512.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
|
|
375
|
+
truss-0.11.5rc512.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|