build: migrate to pyproject.toml with src layout #8
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 189 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.314
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #8"
general
weight: 0.35
cheyang
Summary
Migrate the project to PEP 621 packaging (
pyproject.toml) with a src layout. Previously the repo only worked when cloned into a directory namedpatio(emulated by the DockerfileCOPY . /app/patiotrick): a fresh clone could neither runpython -m patio.appnor execute the test suite.Changes
src/patio/(puregit mv, no code changes; all internalpatio.*imports unchanged)pyproject.toml: setuptools backend,patio-runtimepackage,requires-python >= 3.10, dependencies,devextra,patioconsole script, pytest configrequirements.txtandrequirements-dev.txt(superseded by project metadata)pip install /appinstead of requirements +PYTHONPATHworkaround; ENTRYPOINT uses thepatioconsole scriptconftest.pysys.path hackAsyncMockresponse instance (raisingTypeErrorinto the error branch) and the metrics test pinned an old prometheus-client exposition versionTest Plan
pip install -e ".[dev]"thenpytest— 61 passed (previously the suite could not run at all from a fresh clone)uv build --wheel— wheel contains only thepatio/package, no tests/docpatio --port 19091starts and/health,/respond correctly