stubber.freeze.freeze_manifest_2

Freeze manifest files for micropython 1.16 and later uses the manifest file to generate frozen stubs

Module Contents

Functions

make_path_vars(*[, mpy_path, mpy_lib_path, port, board])

freeze_one_manifest_2(manifest, frozen_stub_path, ...)

copy_frozen_to_stubs(stub_path, port, board, files, ...)

copy the frozen files from the manifest to the stubs folder

stubber.freeze.freeze_manifest_2.make_path_vars(*, mpy_path: pathlib.Path = CONFIG.mpy_path, mpy_lib_path: pathlib.Path = CONFIG.mpy_lib_path, port: str | None = None, board: str | None = None)
Parameters:
stubber.freeze.freeze_manifest_2.freeze_one_manifest_2(manifest: pathlib.Path, frozen_stub_path: pathlib.Path, mpy_path: pathlib.Path, mpy_lib_path: pathlib.Path, version: str)
Parameters:
stubber.freeze.freeze_manifest_2.copy_frozen_to_stubs(stub_path: pathlib.Path, port: str, board: str, files: List[stubber.tools.manifestfile.ManifestOutput], version: str, mpy_path: pathlib.Path)

copy the frozen files from the manifest to the stubs folder

stubpath = the destination : # stubs/{family}-{version}-frozen

Parameters:
  • stub_path (pathlib.Path) –

  • port (str) –

  • board (str) –

  • files (List[stubber.tools.manifestfile.ManifestOutput]) –

  • version (str) –

  • mpy_path (pathlib.Path) –