39 lines
1.0 KiB
TOML
39 lines
1.0 KiB
TOML
[project]
|
|
name = "persistance"
|
|
version = "0.1.0"
|
|
description = "Database-agnostic SQLAlchemy/Alembic persistence layer for CaCu, CaMa and TEA, with a standard repository API."
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"sqlmodel>=0.0.22",
|
|
"alembic>=1.13",
|
|
"pydantic-settings>=2.0",
|
|
"core",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
# DB-API drivers for running against MySQL/MariaDB, PostgreSQL or SQL Server
|
|
# instead of the SQLite defaults (the Alembic migrations run from this
|
|
# package's own environment, so it needs the driver too, not only WebApi).
|
|
drivers = [
|
|
"pymysql>=1.1",
|
|
"psycopg2-binary>=2.9",
|
|
"pymssql>=2.3",
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
core = { path = "../Core", editable = true }
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["persistance"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
# Only the tests of `persistance.assets` build Hamilton graphs; the package itself doesn't import it.
|
|
"apache-hamilton>=1.90",
|
|
]
|