Spaces:
Sleeping
Sleeping
Fix multi-mode deployment: uv.lock, server/app.py, scripts entry point, openenv-core dep
Browse files- Add uv.lock (118 packages resolved)
- Add server/app.py entry point required by multi-mode deployment checker
- Add [project.scripts] avigilance-server entry in pyproject.toml
- Add openenv-core>=0.2.0 dependency
- Bump openai to >=2.7.2 (required by openenv-core)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- pyproject.toml +5 -1
- requirements-space.txt +1 -1
- server/app.py +13 -0
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -26,12 +26,16 @@ dependencies = [
|
|
| 26 |
"fastapi>=0.110.0,<1.0.0",
|
| 27 |
"uvicorn>=0.29.0,<1.0.0",
|
| 28 |
"pydantic>=2.6.0,<3.0.0",
|
| 29 |
-
"openai>=
|
| 30 |
"numpy>=1.24.0,<2.0.0",
|
| 31 |
"python-dotenv>=1.0.0,<2.0.0",
|
| 32 |
"httpx>=0.25.0,<1.0.0",
|
|
|
|
| 33 |
]
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
[project.optional-dependencies]
|
| 36 |
dev = [
|
| 37 |
"pytest>=7.0.0",
|
|
|
|
| 26 |
"fastapi>=0.110.0,<1.0.0",
|
| 27 |
"uvicorn>=0.29.0,<1.0.0",
|
| 28 |
"pydantic>=2.6.0,<3.0.0",
|
| 29 |
+
"openai>=2.7.2",
|
| 30 |
"numpy>=1.24.0,<2.0.0",
|
| 31 |
"python-dotenv>=1.0.0,<2.0.0",
|
| 32 |
"httpx>=0.25.0,<1.0.0",
|
| 33 |
+
"openenv-core>=0.2.0",
|
| 34 |
]
|
| 35 |
|
| 36 |
+
[project.scripts]
|
| 37 |
+
avigilance-server = "server.app:app"
|
| 38 |
+
|
| 39 |
[project.optional-dependencies]
|
| 40 |
dev = [
|
| 41 |
"pytest>=7.0.0",
|
requirements-space.txt
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
fastapi>=0.110.0,<1.0.0
|
| 4 |
uvicorn>=0.29.0,<1.0.0
|
| 5 |
pydantic>=2.6.0,<3.0.0
|
| 6 |
-
openai>=
|
| 7 |
numpy>=1.24.0,<2.0.0
|
| 8 |
python-dotenv>=1.0.0,<2.0.0
|
| 9 |
httpx>=0.25.0,<1.0.0
|
|
|
|
| 3 |
fastapi>=0.110.0,<1.0.0
|
| 4 |
uvicorn>=0.29.0,<1.0.0
|
| 5 |
pydantic>=2.6.0,<3.0.0
|
| 6 |
+
openai>=2.7.2
|
| 7 |
numpy>=1.24.0,<2.0.0
|
| 8 |
python-dotenv>=1.0.0,<2.0.0
|
| 9 |
httpx>=0.25.0,<1.0.0
|
server/app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Server entry point — re-exports the FastAPI app from the project root.
|
| 3 |
+
Placed here so multi-mode deployment tooling can discover it via server/app.py.
|
| 4 |
+
"""
|
| 5 |
+
import sys
|
| 6 |
+
import os
|
| 7 |
+
|
| 8 |
+
# Ensure the project root is on the path when this module is imported directly
|
| 9 |
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 10 |
+
|
| 11 |
+
from app import app # noqa: F401 — re-export for ASGI runners
|
| 12 |
+
|
| 13 |
+
__all__ = ["app"]
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|