bau/packaging

Search:
Group by:

Validates package contents and generates Nimble compatibility metadata.

Procs

proc collectPackageFiles(projectDir: string; cfg: BauConfig): seq[string] {.
    ...raises: [OSError, ValueError], tags: [ReadDirEffect, RootEffect],
    forbids: [].}

Return package-relative files selected for publication.

Explicit include and exclude patterns from [package] are honored; when no includes are configured, Bau walks the project and skips build artifacts.

proc hasLocalPublishOverrides(cfg: BauConfig): bool {....raises: [], tags: [],
    forbids: [].}
Return true when local patches or path dependencies block publishing.
proc nimbleContent(cfg: BauConfig): string {....raises: [KeyError], tags: [],
    forbids: [].}
Generate Nimble compatibility metadata from Bau configuration.
proc packageManifest(projectDir: string; cfg: BauConfig): string {.
    ...raises: [OSError, ValueError, IOError], tags: [ReadDirEffect, RootEffect],
    forbids: [].}
Build a textual package manifest for the selected package files.
proc verifyPackage(projectDir: string; cfg: BauConfig) {.
    ...raises: [OSError, ValueError, IOError], tags: [ReadDirEffect, RootEffect],
    forbids: [].}
Validate that a package has required metadata and non-empty contents.