Skip to content

Commit 87a4b79

Browse files
committed
Use local editable phidata
1 parent 6c8a392 commit 87a4b79

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies = [
3131
# Linting and Formatting
3232
"ruff",
3333
# phidata
34-
"phidata[aws]==2.5.0a7"
34+
# "phidata[aws]==2.5.0a8"
3535
]
3636

3737
[build-system]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ packaging==24.1
4444
pandas==2.2.3
4545
peewee==3.17.6
4646
pgvector==0.3.5
47-
phidata[aws]==2.5.0a7
47+
# phidata[aws]==2.5.0a8
4848
platformdirs==4.3.6
4949
pluggy==1.5.0
5050
psycopg[binary]==3.1.18

scripts/entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ if [[ "$MIGRATE_DB" = true || "$MIGRATE_DB" = True ]]; then
5050
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
5151
fi
5252

53+
############################################################################
54+
# Run phidata install script
55+
############################################################################
56+
57+
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
58+
echo "Running phidata install script"
59+
bash /usr/local/phidata/scripts/install.sh
60+
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
61+
5362
############################################################################
5463
# Start App
5564
############################################################################

workspace/dev_resources.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
# -*- FastApi running on port 8000:8000
5050
dev_fastapi = FastApi(
51-
name=ws_settings.ws_name,
51+
name=f"{ws_settings.ws_name}-api",
5252
enabled=ws_settings.dev_api_enabled,
5353
image=dev_image,
5454
command="uvicorn api.main:app --reload",
@@ -57,9 +57,12 @@
5757
mount_workspace=True,
5858
env_vars=container_env,
5959
use_cache=ws_settings.use_cache,
60+
container_volumes={
61+
"/Users/zu/lab/phidata": {"bind": "/usr/local/phidata", "mode": "rw"},
62+
},
6063
# Read secrets from secrets/dev_api_secrets.yml
6164
secrets_file=ws_settings.ws_root.joinpath("workspace/secrets/dev_api_secrets.yml"),
62-
depends_on=[dev_db],
65+
# depends_on=[dev_db],
6366
)
6467

6568
# -*- Dev DockerResources

0 commit comments

Comments
 (0)