Skip to main content

Module archive

Module archive 

Source

Structsยง

ArchiveBuilder
Creates a .tar.gz archive of the source tree, honouring all .gitignore rules found in the directory hierarchy.
ArchiveBuilderConfig
Configuration for ArchiveBuilder.

Functionsยง

build_ignore_set ๐Ÿ”’
Compiles a [GlobSet] from the given list of glob patterns.
create_archive ๐Ÿ”’
Walks source_dir respecting .gitignore rules and writes a .tar.gz archive to output, prefixing every entry with prefix. .git and the output file itself are always excluded. Additionally, entries whose path contains a component matched by ignore_set are skipped.
default_ignore_patterns ๐Ÿ”’