Alembic was the sole user of psycopg2 (via plain postgresql:// URL dispatch). Rewriting env.py with the async-engine pattern lets it share the asyncpg driver already used at runtime. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
56 lines
1.2 KiB
TOML
56 lines
1.2 KiB
TOML
[project]
|
|
name = "hackerdeck"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.14"
|
|
dependencies = [
|
|
"asynciolimiter>=1.2.0",
|
|
"asyncpg>=0.30.0",
|
|
"fastapi>=0.127.0",
|
|
"typer>=0.15.0",
|
|
"httpx>=0.28.1",
|
|
"loguru>=0.7.3",
|
|
"pgqueuer>=0.19.0",
|
|
"pydantic>=2.12.5",
|
|
"pydantic-ai-slim[google]>=1.89.1",
|
|
"pyyaml>=6.0.3",
|
|
"sqlalchemy[asyncio]>=2.0.45",
|
|
"sqlmodel>=0.0.27",
|
|
"tenacity>=9.1.2",
|
|
"uvicorn>=0.40.0",
|
|
"alembic>=1.17.2",
|
|
]
|
|
|
|
[project.scripts]
|
|
hackerdeck = "hackerdeck.main:main"
|
|
hackerdeck-alembic = "hackerdeck.alembic_cli:main"
|
|
hackerdeck-pgq-install = "hackerdeck.pgq_cli:main"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"deptry>=0.24.0",
|
|
"prek>=0.2.24",
|
|
"pyright>=1.1.407",
|
|
"ruff>=0.14.10",
|
|
"rust-just>=1.45.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["uv_build>=0.9.0,<0.10.0"]
|
|
build-backend = "uv_build"
|
|
|
|
[tool.uv.build-backend]
|
|
module-name = "hackerdeck"
|
|
module-root = ""
|
|
|
|
[tool.alembic]
|
|
script_location = "%(here)s/hackerdeck/alembic"
|
|
prepend_sys_path = ["."]
|
|
path_separator = "os"
|
|
|
|
[[tool.alembic.post_write_hooks]]
|
|
name = "ruff"
|
|
type = "exec"
|
|
executable = "ruff"
|
|
options = "format REVISION_SCRIPT_FILENAME"
|