fontlab_instamix.bootstrap
bootstrap
Install a project checkout into FontLab from its install.vfpy.
A project's install.vfpy needs two lines::
import fontlab_instamix.bootstrap as b
b.install_project(__file__)
It reads [tool.fontlab-install] from the project's pyproject.toml
(keys: id, name, packages, scripts, extensions,
dependencies, init-script) and turns it into a .fontlabext
installed by :mod:fontlab_instamix.extension, so the ledger and uninstall
are shared. Like the legacy install.vfpy it replaces, it removes an
earlier legacy install first, writes a .dist-info, maps the top-level
Scripts/ onto FontLab's Scripts and Extensions/<kind>/ bundles onto
FontLab's Extensions, and adds the FontApp startup block when asked.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
DEFAULT_SCRIPTS |
attribute | ||
DOCS_PREFIXES |
attribute | ||
bundles |
function | (project: Project) -> list[str] |
<code><extensions>/<kind>/<Name>.fontlab<Kind></code><code> folders that hold a </code><code>plugin.json</code>. |
find_root |
function | (start: Path) -> Path |
Folder holding <code>pyproject.toml</code><code> at or above </code><code>start</code>. |
install_project |
function | (start, data: Path | None=None, *, copy: bool | None=None, requirements=None, _seen: set | None=None) -> list… |
Install the project around <code>start</code><code> (usually </code><code>__file__</code>). |
manifest_data |
function | (project: Project) -> dict |
Manifest describing the project checkout as an extension. |
migrate_legacy |
function | (project: Project, folder: Path, data: Path) -> dict | None |
Remove a legacy <code>install.vfpy</code> install of this project, if one is active. |
read_project |
function | (start: Path) -> Project |
Parse <code>[tool.fontlab-install]</code><code> from the nearest </code><code>pyproject.toml</code>. |
sibling_dependencies |
function | (project: Project) -> tuple[list[Path], list[str]] |
Split dependencies into sibling checkouts (with install.vfpy) and uv specs. |