Bundle

The bundle macro creates distributable archives from a file or directory and registers the generated archive as a bundle artifact.

Dependencies

No additional dependency is required. ZIP, TAR, and TAR.GZ archives are created with the Python standard library.

Typical usage

from pathlib import Path

from cikit.macros import bundle

archive = bundle.create(env, "firmware-package.zip", Path("build/release"))

Supported target formats are:

  • .zip

  • .tar

  • .tar.gz

Directory contents are placed directly in the archive root.

create() returns the path to the registered archive.