Skip to main content

Module packaging

Module packaging 

Source
Expand description

Packaging rule — the deterministic core: given the root of an unpacked built artifact and the test-file globs that must not appear in it, scan returns every offending file.

Functions§

inspect
Inspect a built artifact at path for files matching globs. path is a directory (an already-unpacked artifact) or an archive this rule unpacks first — .whl, .tgz/.tar.gz, .crate. Offenders come back as paths relative to the artifact root.
scan
Every file under root — the root of an unpacked built artifact — whose name matches one of globs, sorted. globs are file-name globs where * matches any run of characters; each is matched against an entry’s file name, not its full path.