llama-deploy-appserver 0.3.0a7__tar.gz → 0.3.0a9__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.
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/PKG-INFO +2 -2
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/pyproject.toml +2 -2
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/workflow_loader.py +19 -7
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/README.md +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/__init__.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/__main__.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/app.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/bootstrap.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/deployment.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/deployment_config_parser.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/process_utils.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/routers/__init__.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/routers/deployments.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/routers/status.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/routers/ui_proxy.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/settings.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/stats.py +0 -0
- {llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/types.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: llama-deploy-appserver
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.0a9
|
4
4
|
Summary: Application server components for LlamaDeploy
|
5
5
|
Author: Massimiliano Pippi
|
6
6
|
Author-email: Massimiliano Pippi <mpippi@gmail.com>
|
@@ -10,7 +10,7 @@ Requires-Dist: pydantic-settings>=2.10.1
|
|
10
10
|
Requires-Dist: uvicorn>=0.24.0
|
11
11
|
Requires-Dist: fastapi>=0.100.0
|
12
12
|
Requires-Dist: websockets>=12.0
|
13
|
-
Requires-Dist: llama-deploy-core>=0.3.
|
13
|
+
Requires-Dist: llama-deploy-core>=0.3.0a9,<0.4.0
|
14
14
|
Requires-Dist: httpx>=0.28.1
|
15
15
|
Requires-Dist: prometheus-fastapi-instrumentator>=7.1.0
|
16
16
|
Requires-Dist: packaging>=25.0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "llama-deploy-appserver"
|
3
|
-
version = "0.3.
|
3
|
+
version = "0.3.0a9"
|
4
4
|
description = "Application server components for LlamaDeploy"
|
5
5
|
readme = "README.md"
|
6
6
|
license = { text = "MIT" }
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
14
14
|
"uvicorn>=0.24.0",
|
15
15
|
"fastapi>=0.100.0",
|
16
16
|
"websockets>=12.0",
|
17
|
-
"llama-deploy-core>=0.3.
|
17
|
+
"llama-deploy-core>=0.3.0a9,<0.4.0",
|
18
18
|
"httpx>=0.28.1",
|
19
19
|
"prometheus-fastapi-instrumentator>=7.1.0",
|
20
20
|
"packaging>=25.0",
|
@@ -104,7 +104,7 @@ def inject_appserver_into_target(
|
|
104
104
|
path = settings.resolved_config_parent
|
105
105
|
logger.info(f"Installing ensuring venv at {path} and adding appserver to it")
|
106
106
|
_ensure_uv_available()
|
107
|
-
|
107
|
+
_install_and_add_appserver_if_missing(path, source_root, sdists=sdists)
|
108
108
|
|
109
109
|
|
110
110
|
def _get_installed_version_within_target(path: Path) -> Version | None:
|
@@ -142,14 +142,14 @@ def _is_missing_or_outdated(path: Path) -> Version | None:
|
|
142
142
|
return None
|
143
143
|
|
144
144
|
|
145
|
-
def
|
145
|
+
def _install_and_add_appserver_if_missing(
|
146
146
|
path: Path,
|
147
147
|
source_root: Path,
|
148
148
|
save_version: bool = False,
|
149
149
|
sdists: list[Path] | None = None,
|
150
150
|
) -> None:
|
151
151
|
"""
|
152
|
-
|
152
|
+
Ensure venv, install project deps, and add the appserver to the venv if it's missing or outdated
|
153
153
|
"""
|
154
154
|
|
155
155
|
if not (source_root / path / "pyproject.toml").exists():
|
@@ -158,7 +158,10 @@ def _add_appserver_if_missing(
|
|
158
158
|
)
|
159
159
|
return
|
160
160
|
|
161
|
-
def run_uv(cmd: str, args: list[str]):
|
161
|
+
def run_uv(cmd: str, args: list[str] = [], extra_env: dict[str, str] | None = None):
|
162
|
+
env = os.environ.copy()
|
163
|
+
if extra_env:
|
164
|
+
env.update(extra_env)
|
162
165
|
run_process(
|
163
166
|
["uv", cmd] + args,
|
164
167
|
cwd=source_root / path,
|
@@ -166,6 +169,7 @@ def _add_appserver_if_missing(
|
|
166
169
|
color_code="36",
|
167
170
|
use_tty=False,
|
168
171
|
line_transform=_exclude_venv_warning,
|
172
|
+
env=env,
|
169
173
|
)
|
170
174
|
|
171
175
|
def ensure_venv(path: Path, force: bool = False) -> Path:
|
@@ -174,12 +178,20 @@ def _add_appserver_if_missing(
|
|
174
178
|
run_uv("venv", [str(venv_path)])
|
175
179
|
return venv_path
|
176
180
|
|
181
|
+
editable = are_we_editable_mode()
|
182
|
+
venv_path = ensure_venv(path, force=editable)
|
183
|
+
run_uv(
|
184
|
+
"sync",
|
185
|
+
["--no-dev", "--inexact"],
|
186
|
+
extra_env={"UV_PROJECT_ENVIRONMENT": str(venv_path)},
|
187
|
+
)
|
188
|
+
|
177
189
|
if sdists:
|
178
190
|
run_uv(
|
179
191
|
"pip",
|
180
192
|
["install"]
|
181
193
|
+ [str(s.absolute()) for s in sdists]
|
182
|
-
+ ["--prefix", str(
|
194
|
+
+ ["--prefix", str(venv_path)],
|
183
195
|
)
|
184
196
|
elif are_we_editable_mode():
|
185
197
|
pyproject = _find_development_pyproject()
|
@@ -195,7 +207,7 @@ def _add_appserver_if_missing(
|
|
195
207
|
"llama-deploy-appserver",
|
196
208
|
target,
|
197
209
|
"--prefix",
|
198
|
-
str(
|
210
|
+
str(venv_path),
|
199
211
|
],
|
200
212
|
)
|
201
213
|
|
@@ -211,7 +223,7 @@ def _add_appserver_if_missing(
|
|
211
223
|
"install",
|
212
224
|
f"llama-deploy-appserver=={version}",
|
213
225
|
"--prefix",
|
214
|
-
str(
|
226
|
+
str(venv_path),
|
215
227
|
],
|
216
228
|
)
|
217
229
|
|
File without changes
|
File without changes
|
File without changes
|
{llama_deploy_appserver-0.3.0a7 → llama_deploy_appserver-0.3.0a9}/src/llama_deploy/appserver/app.py
RENAMED
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
|