feat(tools): just doctor + designer quickstart #194
No reviewers
Labels
No labels
build-dist
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!194
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/designer-doctor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Step 2 of the designer-tooling roadmap: the local path for building, plus one page that ties the
whole flow together.
tools/doctor.py(stdlib), also runnable asjust doctor. It checks a machine for localbuilds. Each missing item prints the
breworpipcommand that installs it.just,pre-commitand its installed hook, andjsonschema.just checkimportsjsonschema, so the full gate is not stdlib-only.just plates),pandoc (
just doc), resvg (just assets-raster) and pytest.justisinstalled. It also prints the
repoRootto set for the Affinity scripts.docs/DESIGNER_QUICKSTART.md: one page from Affinity export to merged PR. It includes ano-terminal path (Forgejo web upload plus the
build-distlabel from #193) and a table ofcommon errors. Linked from
README.mdand the affinity-scripts README.just build, or add the build-dist label toyour PR".
Testing
generator/tests/unit/test_doctor.py(4 tests). A missing git fails with exit 1 and printsthe fix; this is the control that must fail. Missing recommended or optional tools still exit 0.
PYTHONPATH=. pytest generator/tests: 284 passed.just check: exit 0.pre-commit(the hook file exists but the binary isn't onPATH), plus pandoc and resvg as optional.
Impact Statement
their names changed.
dist/change.Docs
New
docs/DESIGNER_QUICKSTART.md, with links fromREADME.mdand the affinity-scripts README.The no-terminal path assumes #193 (build bot) is merged and its label and secret are set up.