auto-commit-service/pyproject.toml
Lilith 81c66c1991 refactor(database): simplify to SQLite-only storage
Removed PostgreSQL support and dependencies for single source of truth:
- Removed all PostgreSQL fallback logic from connection.py
- Removed asyncpg dependency (keeping only aiosqlite)
- Simplified database URL to direct SQLite path
- Updated config: database_path now points to file, not directory
- Default location: ~/.cache/commits/auto_commit.db (not nested in postgres/)
- Cleaner get_database_size_mb() using direct file stat
- Simplified VACUUM logic (SQLite-only)

Benefits:
- No fallback complexity or environment variable checks
- Single dependency (aiosqlite) instead of two (asyncpg + aiosqlite)
- Clearer configuration (file path vs directory path)
- Less code, less maintenance, no tech debt
- Same rolling data retention features (500MB limit, 90 day retention)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 11:08:38 -08:00

42 lines
942 B
TOML

[project]
name = "auto-commit-service"
version = "0.2.0"
description = "Automated commit message generation service using local LLM inference"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"lilith-fastapi-service-base>=2.1.0",
"lilith-auto-commit-pipeline>=0.1.0",
"lilith-pipeline-framework>=1.0.0",
"httpx>=0.27.0",
"pydantic>=2.0",
"pyyaml>=6.0",
"uvicorn>=0.30.0",
"typer>=0.12.0",
"sqlalchemy[asyncio]>=2.0.0",
"aiosqlite>=0.19.0",
]
[project.scripts]
commits = "auto_commit_service.cli:main"
[project.optional-dependencies]
model-boss = [
"lilith-model-boss>=0.1.0",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-httpx>=0.30",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/auto_commit_service"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]