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:
Dist::Zilla::Plugin::Git::GatherDir — gathers the tracked files (see "The tarball")
Dist::Zilla::Plugin::DBIO::LicenseFile — checks the committed LICENSE (see "LICENSE")
Dist::Zilla::Plugin::MetaProvides::Package + Dist::Zilla::Plugin::Prereqs::FromCPANfile — metadata from cpanfile
Dist::Zilla::Plugin::PodWeaver — POD generation via
@DBIOor@DBIO::HeritageDist::Zilla::Plugin::ExtraTests — promotes xt/author/, xt/release/ and xt/smoke/ tests into t/ for release; tests lying flat in xt/ are not promoted and are therefore not covered by the release gate
Dist::Zilla::Plugin::DBIO::CoverageTest — generates xt/release/coverage.t, a coverage gate that reads cover_db/ after
HARNESS_PERL_SWITCHES=-MDevel::Cover. A missing cover_db/ skips the test, even underCOVERAGE_STRICT=1orRELEASE=1; a score below the threshold passes with a diagnostic by default and fails underCOVERAGE_STRICT=1orRELEASE=1.Dist::Zilla::Plugin::DBIO::PodCheckerTest — generates xt/author/pod-checker.t, a Pod::Checker run over the built (woven) POD under lib/ and bin/. Any Pod::Checker error — above all an unresolved internal link — fails
dzil testanddzil release; skipped on a plain install.Dist::Zilla::Plugin::DBIO::CodebergMeta — repository, bugtracker and homepage META resources, derived offline from the git remote (codeberg.org only; no resources for other hosts)
Dist::Zilla::Plugin::MetaResources — sets the family-wide IRC channel META resource (
x_IRC = irc://irc.perl.org/#dbio) for every distribution; fixed, not per-dist configurableDist::Zilla::Plugin::Git::CheckFor::CorrectBranch — enforces release from
main
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:
Dist::Zilla::Plugin::TestRelease — runs the tests of the built dist and stops the release when they fail
Dist::Zilla::Plugin::Test::ChangesHasContent — fails when Changes has no entry under
{{$NEXT}}Dist::Zilla::Plugin::InstallRelease — installs the released dist locally with
cpanm .
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.
copyright_holder
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.