llama-deploy-core 0.3.14__tar.gz → 0.3.16__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.
Files changed (24) hide show
  1. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/PKG-INFO +6 -3
  2. llama_deploy_core-0.3.16/README.md +5 -0
  3. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/pyproject.toml +1 -1
  4. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/deployment_config.py +13 -0
  5. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/git/git_util.py +15 -0
  6. llama_deploy_core-0.3.14/README.md +0 -2
  7. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/__init__.py +0 -0
  8. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/client/manage_client.py +0 -0
  9. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/client/ssl_util.py +0 -0
  10. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/config.py +0 -0
  11. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/iter_utils.py +0 -0
  12. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/path_util.py +0 -0
  13. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/py.typed +0 -0
  14. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/__init__.py +0 -0
  15. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/base.py +0 -0
  16. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/deployments.py +0 -0
  17. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/git_validation.py +0 -0
  18. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/projects.py +0 -0
  19. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/schema/public.py +0 -0
  20. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/server/manage_api/__init__.py +0 -0
  21. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/server/manage_api/_abstract_deployments_service.py +0 -0
  22. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/server/manage_api/_create_deployments_router.py +0 -0
  23. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/server/manage_api/_exceptions.py +0 -0
  24. {llama_deploy_core-0.3.14 → llama_deploy_core-0.3.16}/src/llama_deploy/core/ui_build.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llama-deploy-core
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: Core models and schemas for LlamaDeploy
5
5
  License: MIT
6
6
  Requires-Dist: fastapi>=0.115.0
@@ -16,5 +16,8 @@ Provides-Extra: client
16
16
  Provides-Extra: server
17
17
  Description-Content-Type: text/markdown
18
18
 
19
- > [!WARNING]
20
- > This repository contains pre-release software. It is unstable, incomplete, and subject to breaking changes. Not recommended for use.
19
+ # llama-deploy-core
20
+
21
+ Core models and schemas for LlamaDeploy.
22
+
23
+ For an end-to-end introduction, see [Getting started with LlamaAgents](https://developers.llamaindex.ai/python/cloud/llamaagents/getting-started).
@@ -0,0 +1,5 @@
1
+ # llama-deploy-core
2
+
3
+ Core models and schemas for LlamaDeploy.
4
+
5
+ For an end-to-end introduction, see [Getting started with LlamaAgents](https://developers.llamaindex.ai/python/cloud/llamaagents/getting-started).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "llama-deploy-core"
3
- version = "0.3.14"
3
+ version = "0.3.16"
4
4
  description = "Core models and schemas for LlamaDeploy"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -194,6 +194,13 @@ class DeploymentConfig(BaseModel):
194
194
  default_factory=dict,
195
195
  description="Arbitrary environment variables to set. Defaults to {}",
196
196
  )
197
+ required_env_vars: list[str] = Field(
198
+ default_factory=list,
199
+ description=(
200
+ "A list of environment variable names that must be defined at runtime. "
201
+ "If any are missing or empty, the app server will fail fast with an informative error."
202
+ ),
203
+ )
197
204
  ui: UIConfig | None = Field(
198
205
  None,
199
206
  description="The UI configuration.",
@@ -209,6 +216,12 @@ class DeploymentConfig(BaseModel):
209
216
  workflows={**self.workflows, **config.workflows},
210
217
  env_files=list(set(self.env_files + config.env_files)),
211
218
  env={**self.env, **config.env},
219
+ required_env_vars=list(
220
+ {
221
+ *[v for v in self.required_env_vars],
222
+ *[v for v in config.required_env_vars],
223
+ }
224
+ ),
212
225
  ui=self.ui.merge_config(config.ui)
213
226
  if config.ui is not None and self.ui is not None
214
227
  else self.ui or config.ui,
@@ -61,6 +61,21 @@ def _run_process(args: list[str], cwd: str | None = None, timeout: int = 30) ->
61
61
  result = subprocess.run(
62
62
  args, cwd=cwd, capture_output=True, text=True, check=False, timeout=timeout
63
63
  )
64
+ except FileNotFoundError as e:
65
+ # Executable not found (e.g., git not installed). Normalize to GitAccessError
66
+ cmd = " ".join(args)
67
+ where = f" (cwd={cwd})" if cwd else ""
68
+ executable = args[0] if args else "<unknown>"
69
+ raise GitAccessError(
70
+ f"Executable not found: {executable}. Failed to run: {cmd}{where}"
71
+ ) from e
72
+ except OSError as e:
73
+ # Other OS-level execution errors (e.g., permission denied)
74
+ cmd = " ".join(args)
75
+ where = f" (cwd={cwd})" if cwd else ""
76
+ raise GitAccessError(
77
+ f"Failed to execute command: {cmd}{where}. {e.__class__.__name__}: {e}"
78
+ ) from e
64
79
  except subprocess.TimeoutExpired:
65
80
  cmd = " ".join(args)
66
81
  where = f" (cwd={cwd})" if cwd else ""
@@ -1,2 +0,0 @@
1
- > [!WARNING]
2
- > This repository contains pre-release software. It is unstable, incomplete, and subject to breaking changes. Not recommended for use.