div18 commited on
Commit ·
d6496d4
1
Parent(s): 2244d0f
fix reqs
Browse files
deploy/do/deploy-droplet-one-shot.sh
CHANGED
|
@@ -101,8 +101,12 @@ fi
|
|
| 101 |
echo "Preparing Python environment..."
|
| 102 |
python3 -m venv "${PY_VENV_DIR}"
|
| 103 |
"${PY_VENV_DIR}/bin/python" -m pip install --upgrade pip
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
cat > /etc/systemd/system/antiatropos-fastapi.service <<EOF
|
| 108 |
[Unit]
|
|
|
|
| 101 |
echo "Preparing Python environment..."
|
| 102 |
python3 -m venv "${PY_VENV_DIR}"
|
| 103 |
"${PY_VENV_DIR}/bin/python" -m pip install --upgrade pip
|
| 104 |
+
if [[ -f "${REPO_DIR}/pyproject.toml" ]]; then
|
| 105 |
+
# Prefer project metadata (uses openenv-core, not legacy openenv package name).
|
| 106 |
+
"${PY_VENV_DIR}/bin/pip" install -e "${REPO_DIR}"
|
| 107 |
+
else
|
| 108 |
+
"${PY_VENV_DIR}/bin/pip" install -r "${REPO_DIR}/server/requirements.txt"
|
| 109 |
+
fi
|
| 110 |
|
| 111 |
cat > /etc/systemd/system/antiatropos-fastapi.service <<EOF
|
| 112 |
[Unit]
|
server/requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
openenv[core]>=0.2.
|
| 2 |
fastapi>=0.115.0
|
| 3 |
uvicorn>=0.24.0
|
| 4 |
kubernetes>=28.0.0
|
|
|
|
| 1 |
+
openenv-core[core]>=0.2.1
|
| 2 |
fastapi>=0.115.0
|
| 3 |
uvicorn>=0.24.0
|
| 4 |
kubernetes>=28.0.0
|