martian7777 commited on
Commit ·
49a8b2e
1
Parent(s): ca5bfea
fix: move aiosqlite to dependencies and trigger hf deploy
Browse files- docker-compose.yml +1 -0
- pyproject.toml +1 -1
docker-compose.yml
CHANGED
|
@@ -25,6 +25,7 @@ services:
|
|
| 25 |
environment:
|
| 26 |
POSTGRES_HOST: db
|
| 27 |
API_BASE_URL: http://api:8000
|
|
|
|
| 28 |
depends_on:
|
| 29 |
db:
|
| 30 |
condition: service_healthy
|
|
|
|
| 25 |
environment:
|
| 26 |
POSTGRES_HOST: db
|
| 27 |
API_BASE_URL: http://api:8000
|
| 28 |
+
DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-pmuser}:${POSTGRES_PASSWORD:-pmpassword}@db:5432/${POSTGRES_DB:-predictive_maintenance}
|
| 29 |
depends_on:
|
| 30 |
db:
|
| 31 |
condition: service_healthy
|
pyproject.toml
CHANGED
|
@@ -15,6 +15,7 @@ dependencies = [
|
|
| 15 |
# Database
|
| 16 |
"sqlalchemy[asyncio]>=2.0.30",
|
| 17 |
"asyncpg>=0.29.0",
|
|
|
|
| 18 |
"alembic>=1.13.0",
|
| 19 |
"greenlet>=3.0.0",
|
| 20 |
# Config & validation
|
|
@@ -44,7 +45,6 @@ dev = [
|
|
| 44 |
"pytest>=8.2.0",
|
| 45 |
"pytest-asyncio>=0.23.0",
|
| 46 |
"pytest-cov>=5.0.0",
|
| 47 |
-
"aiosqlite>=0.20.0",
|
| 48 |
"ruff>=0.4.0",
|
| 49 |
"mypy>=1.10.0",
|
| 50 |
"types-passlib",
|
|
|
|
| 15 |
# Database
|
| 16 |
"sqlalchemy[asyncio]>=2.0.30",
|
| 17 |
"asyncpg>=0.29.0",
|
| 18 |
+
"aiosqlite>=0.20.0",
|
| 19 |
"alembic>=1.13.0",
|
| 20 |
"greenlet>=3.0.0",
|
| 21 |
# Config & validation
|
|
|
|
| 45 |
"pytest>=8.2.0",
|
| 46 |
"pytest-asyncio>=0.23.0",
|
| 47 |
"pytest-cov>=5.0.0",
|
|
|
|
| 48 |
"ruff>=0.4.0",
|
| 49 |
"mypy>=1.10.0",
|
| 50 |
"types-passlib",
|