Files
denya-onecare/pyproject.toml
T
root 0449390cbb fix(penthouse): consolidate duplicates when both legacy and clean rows exist
When the mapping file was cleaned (PH1E- → PH1E) but the legacy dashed
rows were never removed from the live DB, seed_units inserted the clean
rows AND left the legacy rows as inert aliases — yielding 8 penthouse
rows instead of 4, all with floor=null.

The self-heal now handles the 'both forms exist' case by consolidating
to exactly one row per unit: the clean-code row is the canonical
survivor, any tickets referencing the legacy row are re-pointed to it,
and the legacy row is removed. The operation is idempotent.

Also fixes a missing comma in pyproject.toml (TOML parse error).

Adds regression test test_penthouse_consolidation_when_both_forms_exist
that reproduces the live condition and fails pre-fix.
2026-10-02 13:04:47 +00:00

37 lines
810 B
TOML

[project]
name = "denya-onecare"
version = "0.1.0"
description = "Denya OneCare - Centralized issue tracking for Pavilion Accra"
requires-python = ">=3.11"
dependencies = [
"fastapi[standard]>=0.115.0",
"uvicorn[standard]>=0.30.0",
"sqlalchemy[asyncio]>=2.0.0",
"greenlet>=3.0",
"alembic>=1.13.0",
"pydantic-settings>=2.5.0",
"python-jose[cryptography]>=3.3.0",
"bcrypt>=4.0.0",
"python-multipart>=0.0.9",
"aiosqlite>=0.20.0",
]
[build-system]
requires = ["setuptools>=64.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["app*"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["."]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"httpx>=0.27.0",
]