- Add alembic 1.14 to dependencies (uv sync → 1.18.4 installed) - Configure alembic/env.py: loads DATABASE_URL from env, imports all SQLModel models so metadata is fully populated for autogenerate - Generate initial migration (c2d626a2b36c) covering all 9 tables: products, product_inventory, medication_entries, medication_usages, lab_results, routines, routine_steps, grooming_schedule, skin_condition_snapshots — with all indexes and constraints - Add ExecStartPre to innercontext.service: runs alembic upgrade head before uvicorn starts (idempotent, safe on every restart) - Update DEPLOYMENT.md: add migration step to backend setup and update flow; document alembic stamp head for existing installations Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
669 B
TOML
35 lines
669 B
TOML
[project]
|
|
name = "innercontext"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"alembic>=1.14",
|
|
"fastapi>=0.132.0",
|
|
"fastmcp>=2.0",
|
|
"google-genai>=1.65.0",
|
|
"psycopg>=3.3.3",
|
|
"python-dotenv>=1.2.1",
|
|
"python-multipart>=0.0.22",
|
|
"sqlmodel>=0.0.37",
|
|
"uvicorn[standard]>=0.34.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"black>=26.1.0",
|
|
"httpx>=0.28.1",
|
|
"isort>=8.0.0",
|
|
"pytest>=9.0.2",
|
|
"ruff>=0.15.2",
|
|
"ty>=0.0.18",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["."]
|
|
addopts = "-v --tb=short"
|
|
|
|
[tool.isort]
|
|
profile = "black"
|