ext_tooling
ptwm.ext_tooling.pack
ptwm ext pack — bundle into -.tar.zst.
ptwm.ext_tooling.pack
ptwm ext pack — bundle into
ptwm.ext_tooling.pack
python/ptwm/ext_tooling/pack.py:1module ptwm.ext_tooling.packptwm ext pack — bundle into <name>-<version>.tar.zst.
ptwm.ext_tooling.pack.pack_bundle
python/ptwm/ext_tooling/pack.py:11def pack_bundle(cwd: Path) -> PathCreate a ``<name>-<version>.tar.zst`` archive from the bundle in *cwd*.
The archive contains ``manifest.toml``, ``signature.bin`` (if present),
and ``<name>.wasm`` (if present).
| Name | Type | Description |
|---|---|---|
| cwd | Path | Root directory of the extension bundle. |
Returns
Path — Path to the written ``.tar.zst`` archive (placed inside *cwd*). Raises
ImportError— When ``zstandard`` is not installed. Install it via ``pip install ptwm[ext-dev]``.