Gurjot-dev commited on
Commit
7572230
·
1 Parent(s): 0f9ab1b

fixes before submission

Browse files
Files changed (5) hide show
  1. pyproject.toml +4 -0
  2. requirements.txt +1 -0
  3. server/__init__.py +0 -0
  4. server/app.py +19 -0
  5. uv.lock +0 -0
pyproject.toml CHANGED
@@ -13,8 +13,12 @@ dependencies = [
13
  "pyyaml>=6.0.1",
14
  "gradio>=4.30.0",
15
  "plotly>=5.22.0",
 
16
  ]
17
 
 
 
 
18
  [build-system]
19
  requires = ["setuptools>=68.0"]
20
  build-backend = "setuptools.build_meta"
 
13
  "pyyaml>=6.0.1",
14
  "gradio>=4.30.0",
15
  "plotly>=5.22.0",
16
+ "openenv-core",
17
  ]
18
 
19
+ [project.scripts]
20
+ server = "server.app:app"
21
+
22
  [build-system]
23
  requires = ["setuptools>=68.0"]
24
  build-backend = "setuptools.build_meta"
requirements.txt CHANGED
@@ -7,3 +7,4 @@ numpy>=1.26.0
7
  pyyaml>=6.0.1
8
  gradio>=4.30.0
9
  plotly>=5.22.0
 
 
7
  pyyaml>=6.0.1
8
  gradio>=4.30.0
9
  plotly>=5.22.0
10
+ openenv-core
server/__init__.py ADDED
File without changes
server/app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Server entry point expected by openenv validate.
3
+
4
+ Re-exports the FastAPI ``app`` instance defined in the project root
5
+ so that ``[project.scripts] server = "server.app:app"`` resolves correctly.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import sys
11
+ from pathlib import Path
12
+
13
+ # Ensure the project root is importable (needed when invoked via the
14
+ # console-script entry point, where the cwd may differ).
15
+ _root = str(Path(__file__).resolve().parent.parent)
16
+ if _root not in sys.path:
17
+ sys.path.insert(0, _root)
18
+
19
+ from environment import app # noqa: E402, F401
uv.lock ADDED
The diff for this file is too large to render. See raw diff