Skip to content

Commit 244518f

Browse files
Fix RunIt deployment: add sys.path for src layout, add requirements.txt
The runner needs requirements.txt (not pyproject.toml) and the opensky package lives in src/ which needs to be on sys.path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac6f445 commit 244518f

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
"""RunIt entry point: exposes OpenSky's SearchEngine as a deployable function."""
22

3+
import sys
4+
import os
5+
6+
# Add src/ to path so opensky package is importable
7+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
8+
39
from opensky.search import SearchEngine
410

511

requirements.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
curl-cffi>=0.7
2+
typer>=0.15
3+
rich>=13.0
4+
pydantic>=2.10
5+
airportsdata>=20240101
6+
ratelimit>=2.2
7+
httpx>=0.27

0 commit comments

Comments
 (0)