NAME

Dist::Zilla::PluginBundle::DBIO - Dist::Zilla plugin bundle for DBIO distributions

VERSION

version 0.900004

SYNOPSIS

# Standard DBIO driver distribution
name = DBIO-MyDriver

[@DBIO]

# Distribution containing code derived from DBIx::Class
name = DBIO-PostgreSQL

[@DBIO]
heritage = 1

# DBIO core distribution
name           = DBIO
copyright_year = 2005

[@DBIO]
core     = 1
heritage = 1

DESCRIPTION

Standard Dist::Zilla plugin bundle for all DBIO distributions.

All distributions

Every distribution using [@DBIO] gets an automatic code-coverage test (xt/release/coverage.t) that scores lib/ after a Devel::Cover run, plus:

The tarball

What is tracked in git is what ships. Dist::Zilla::Plugin::Git::GatherDir gathers every tracked file, dotfiles included, for core and drivers alike; only what the build generates itself stays out (META.yml, META.json, MANIFEST, README, README.md), plus .karr. There is no PruneCruft and no exclude list: a file that should not ship is not tracked. Untracked files, such as the git-ignored skills skilletor installs, are never gathered by it.

LICENSE

The LICENSE file is committed in the repository and gathered like any other tracked file; no license file is generated during the build. Dist::Zilla::Plugin::DBIO::LicenseFile then checks it and aborts the build when it is missing or deviates. Non-heritage distributions must carry the standard Perl_5 license text of the dist (dzil genlicense writes it); heritage distributions must carry the fixed DBIx::Class license with the DBIO attribution preamble, which the plugin holds as its reference text.

Release checks

Before Dist::Zilla::Plugin::ConfirmRelease, for core and drivers alike:

Versioning

Version is read from the main module's $VERSION via Dist::Zilla::Plugin::VersionFromMainModule (core) or via Dist::Zilla::PluginBundle::Git::VersionManager (drivers).

For drivers, RewriteVersion::Transitional is configured with global = 1 and finder = [:InstallModules], so every module under lib/ is versioned: each .pm carries its own literal $VERSION assignment, and all of them are rewritten in lockstep on version bump.

Core versions only from the main module (VersionFromMainModule) and rewrites no other file, yet every core module carries a literal $VERSION. For core = 1 the bundle therefore adds Dist::Zilla::Plugin::DBIO::VersionLockstepTest: a test that fails when a module under lib/ has no $VERSION or one that differs from the main module's. At a version bump the core raises every module by hand; the test fails the build until none is left behind. Non-core distributions do not get it.

Heritage distributions (heritage = 1)

For distributions containing code derived from DBIx::Class. Uses Pod::Weaver::PluginBundle::DBIO::Heritage which adds a DBIx::Class copyright and attribution block to the generated POD. The copyright_holder defaults to DBIO & DBIx::Class Authors.

Core distribution (core = 1)

Uses Dist::Zilla::Plugin::VersionFromMainModule (version from $VERSION in the main module) and Dist::Zilla::Plugin::MakeMaker::Awesome instead of the standard MakeMaker. Also enables Dist::Zilla::Plugin::ExecDir for bin/. The release workflow uses NextRelease + Git::Commit/Tag/Push directly rather than @Git::VersionManager. It also gets Dist::Zilla::Plugin::DBIO::VersionLockstepTest (see "Versioning").

ATTRIBUTES

heritage

Set to 1 for distributions derived from DBIx::Class code. Switches Dist::Zilla::Plugin::PodWeaver to use Pod::Weaver::PluginBundle::DBIO::Heritage instead of Pod::Weaver::PluginBundle::DBIO, which adds a DBIx::Class copyright and attribution block to the generated POD. Also changes the default copyright_holder to DBIO & DBIx::Class Authors. Default: 0.

Override the copyright holder string. If not set, defaults to DBIO & DBIx::Class Authors for heritage distributions and DBIO Authors for all others.

share_skill

Names of the agent skills this distribution owns (is the source of truth for). They are shipped as a sharedir (share/skills/) and exposed at runtime via DBIO::Skills. Repeatable; if omitted, the set is derived from the dist name. See Dist::Zilla::Plugin::DBIO::GatherSkills.

coverage_threshold

Statement-coverage percentage required for xt/release/coverage.t to pass. Default: 80. Set to 0 to gather the file as a no-op skip (coverage enforcement disabled). See Dist::Zilla::Plugin::DBIO::CoverageTest.

AUTHOR

DBIO Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.