New service/reference_docs.py renders specs/policies/*.md and
specs/profiles/*.md read-only at request time via a small markdown
library (added markdown + PyYAML to the service extras) -- not a
static-build pipeline, matching the WP-0012-T03 decision to skip
state-hub's heavier Observable Framework pattern.
One parameterized route, GET /reference/{kind}/{slug}, covers both
addendum URL shapes. Discovered phase_detail.html's Status table never
displayed the degeneration_policy id at all -- added that row (with
the reference link) rather than wiring a link with nothing to attach
it to. phase_new.html gets a plain link next to the field.
Deliberately did not wire extension-id links into the UI in this task
-- extension ids don't appear anywhere in the Control Plane today
(that's WP-0014's gap, not this one's to expand).
6 new Docker-gated tests. Full suite: 94 passing offline, 164 passing
with Docker (up from 158).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
41 lines
949 B
TOML
41 lines
949 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "target-revenue"
|
|
version = "0.1.0"
|
|
description = "Stage 0 schemas, pure Outstanding Target fold, and offline validators for the Target Revenue Framework (TRF)."
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = { text = "TRSL-0.1 (Target Revenue Source License, preliminary candidate — see LICENSE)" }
|
|
dependencies = [
|
|
"jsonschema>=4.21",
|
|
"cryptography>=42.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
]
|
|
service = [
|
|
"psycopg[binary]>=3.1",
|
|
"psycopg-pool>=3.1",
|
|
"fastapi>=0.110",
|
|
"uvicorn>=0.27",
|
|
"jinja2>=3.1",
|
|
"itsdangerous>=2.1",
|
|
"python-multipart>=0.0.9",
|
|
"markdown>=3.6",
|
|
"PyYAML>=6.0",
|
|
]
|
|
service-dev = [
|
|
"target-revenue[service,dev]",
|
|
"httpx>=0.27",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/target_revenue"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|