Ajjack4 commited on
Commit
572967a
·
1 Parent(s): eb9db3e

add pyproject.toml, uv.lock, server/app.py for openenv validate compliance

Browse files
Files changed (4) hide show
  1. pyproject.toml +21 -0
  2. server/__init__.py +0 -0
  3. server/app.py +21 -0
  4. uv.lock +0 -0
pyproject.toml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "dev-env-debugger"
3
+ version = "1.0.0"
4
+ description = "OpenEnv environment where an AI agent debugs a broken multi-service dev stack"
5
+ requires-python = ">=3.11"
6
+ dependencies = [
7
+ "fastapi==0.111.0",
8
+ "uvicorn==0.30.1",
9
+ "pydantic==2.7.1",
10
+ "requests==2.32.3",
11
+ "pyyaml==6.0.1",
12
+ "openai>=2.7.2",
13
+ "openenv-core>=0.2.0",
14
+ ]
15
+
16
+ [project.scripts]
17
+ server = "server.app:main"
18
+
19
+ [build-system]
20
+ requires = ["hatchling"]
21
+ build-backend = "hatchling.build"
server/__init__.py ADDED
File without changes
server/app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ OpenEnv server entry point — required for uv run server / openenv validate.
3
+ Delegates to the root api.py FastAPI application.
4
+ """
5
+
6
+ import os
7
+ import sys
8
+
9
+ # Allow imports from the project root (api.py, environment.py, etc.)
10
+ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
11
+
12
+ import uvicorn
13
+ from api import app # noqa: E402
14
+
15
+
16
+ def main() -> None:
17
+ uvicorn.run(app, host="0.0.0.0", port=7860, reload=False)
18
+
19
+
20
+ if __name__ == "__main__":
21
+ main()
uv.lock ADDED
The diff for this file is too large to render. See raw diff