Package runtime migrations and branding assets

This commit is contained in:
rob
2026-08-30 07:21:37 +01:00
parent 97a75d0243
commit af4aa713b9
51 changed files with 72 additions and 29 deletions
+14 -7
View File
@@ -7,9 +7,9 @@ a pre-trading sole-trader software business. SQLite is authoritative.
## 2. Repository state
The accounting/service layers and full backlog are implemented and captured in the
initial Git baseline. `.venv`, caches, generated databases, bytecode, and package
metadata are ignored.
The accounting/service layers and full approved backlog are implemented. The initial
Git baseline exists; a follow-up packaging change makes wheels self-contained. `.venv`,
caches, generated databases, bytecode, build output, and package metadata are ignored.
## 3. Current application state
@@ -34,15 +34,18 @@ approval, XDG runtime locations, and ReportLab/svglib shared A4 rendering.
Completed the full backlog, including migrations 0014–0028, all controls
and reports, CLI/runtime paths, PDF renderers, managed generated-document metadata,
and deterministic visual samples. Corrected migration 0017 to use SQLite batch mode.
PKG-001 moved migrations and branding resources into the installable package and
validated initialization/document generation from a wheel outside the checkout.
## 7. Current task
No active approved task. The final audit tasks and `DOC-FUTURE-001` business-letter
draft/finalize/archive workflow are complete. `DOC-006` added the root operator guide.
No active approved task. The final audit tasks, business-letter workflow, operator
guide, and self-contained wheel deployment task are complete.
## 8. Important code locations
- Models/migrations: `src/roborto_accounting/persistence/`, `alembic/versions/`
- Models/migrations: `src/roborto_accounting/persistence/`,
`src/roborto_accounting/migrations/versions/`
- Services: `src/roborto_accounting/services/`
- Reports/documents: `src/roborto_accounting/reporting/`
- CLI/runtime paths: `src/roborto_accounting/cli/`, `src/roborto_accounting/config.py`
@@ -55,6 +58,9 @@ draft/finalize/archive workflow are complete. `DOC-006` added the root operator
- `.venv/bin/alembic -c <temporary-config> upgrade head` — fresh SQLite through 0028
- `.venv/bin/accounts --help`
- `.venv/bin/accounts document-samples --output <directory>`
- `.venv/bin/pip wheel . --no-deps --no-build-isolation --wheel-dir <directory>`
- wheel installed to an isolated target outside the checkout: initialization through
0028 and five sample PDFs succeeded
- `git diff --check`
## 10. Environment variables by NAME ONLY
@@ -64,7 +70,8 @@ draft/finalize/archive workflow are complete. `DOC-006` added the root operator
## 11. Testing/quality status
60 isolated tests pass. Fresh migration through 0028 has no SQLite foreign-key
violations. Representative A4 invoice, quotation, Cash Flow, and P&L PDFs were
violations. The built wheel contains migrations and both brand SVGs and works outside
the checkout. Representative A4 invoice, quotation, Cash Flow, and P&L PDFs were
visually inspected; multi-page headers, wrapping, totals, footers, and page numbering
were checked.