fontlab_instamix.bootstrap · declarations 001
Back to fontlab_instamix.bootstrap
DEFAULT_SCRIPTS
module-attribute
DEFAULT_SCRIPTS
DOCS_PREFIXES
module-attribute
DOCS_PREFIXES
bundles
bundles(project: Project) -> list[str]
<extensions>/<kind>/<Name>.fontlab<Kind> folders that hold a plugin.json.
find_root
find_root(start: Path) -> Path
Folder holding pyproject.toml at or above start.
install_project
install_project(start, data: Path | None = None, *, copy: bool | None = None, requirements=None, _seen: set | None = None) -> list[dict]
Install the project around start (usually __file__).
Packages are linked from the checkout (an editable install), scripts are
linked into FontLab's Scripts, sibling dependency checkouts are installed
first, other dependencies go through uv. A legacy install.vfpy
install of the same id is removed first. Returns the ledger records.
manifest_data
manifest_data(project: Project) -> dict
Manifest describing the project checkout as an extension.
The top-level Scripts folder maps onto FontLab's Scripts; any other
listed folder maps onto Scripts/<folder>. Plugin bundles below
<extensions>/<kind>/ map onto FontLab's Extensions/<kind>/.
migrate_legacy
migrate_legacy(project: Project, folder: Path, data: Path) -> dict | None
Remove a legacy install.vfpy install of this project, if one is active.
read_project
read_project(start: Path) -> Project
Parse [tool.fontlab-install] from the nearest pyproject.toml.
sibling_dependencies
sibling_dependencies(project: Project) -> tuple[list[Path], list[str]]
Split dependencies into sibling checkouts (with install.vfpy) and uv specs.
Dependencies whose environment marker does not apply to FontLab's Python are skipped.