NAME
Dist::Zilla::PluginBundle::DBIO - Dist::Zilla plugin bundle for DBIO distributions
VERSION
version 0.900007
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 gate that scores lib/ after the whole test suite has run under Devel::Cover, 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::CoverageGate — a test runner behind the build plugin that reads cover_db/ of the build directory once the whole suite has run (
HARNESS_PERL_SWITCHES=-MDevel::Cover), fordzil testanddzil release. It scores the lib/ of the dist. A score below the threshold logs a warning by default and aborts underCOVERAGE_STRICT=1orRELEASE=1; without a measured coverage (no cover_db/, no Devel::Cover::DB) it aborts underRELEASE=1, because a release without a coverage run is a failed release, and only logs a note otherwise.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::ExecDir — installs the scripts under bin/, and PodWeaver weaves their POD; a distribution without bin/ is not affected
Dist::Zilla::Plugin::DBIO::CodebergMeta — repository, bugtracker and homepage META resources, derived offline from the git remote (codeberg.org only; for another host or an unusable remote the build logs why and adds no resources)
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; these are the six exclude_filename names, and there is no exclude_match. There is no PruneCruft: 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 (the first item is for drivers only):
Dist::Zilla::Plugin::DBIO::RequireCoreVersion — every dist but core: the runtime prereq
DBIOin the prereqs (the cpanfile) must ask for at least the version being released. A lower minimum version stops the release with a message that names both versions and the line to write (requires 'DBIO', '<version>';). A dist without a runtime prereq onDBIOhas nothing to check. It changes no prereq.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
Core and drivers version alike, through Dist::Zilla::PluginBundle::Git::VersionManager. The version is the main module's $VERSION; only when it has none does Git::NextVersion take it from the git tags (first_version = 0.900000). 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 at the release. Right after the release BumpVersionAfterRelease raises all of them to the next version, so between two releases the source carries the next version.
For core = 1 the bundle also 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. 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::MakeMaker::Awesome instead of the standard MakeMaker. Versioning and release workflow are those of the drivers ("Versioning", "Release checks"), except that core has no Dist::Zilla::Plugin::DBIO::RequireCoreVersion. It also gets Dist::Zilla::Plugin::DBIO::VersionLockstepTest.
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.
eumm_version
Minimum version of ExtUtils::MakeMaker the build asks for. It is written into the use ExtUtils::MakeMaker line of Makefile.PL and into configure_requires of the META files. For a driver it goes to Dist::Zilla::Plugin::MakeMaker, for the core (core = 1) to Dist::Zilla::Plugin::MakeMaker::Awesome. Without it a driver keeps the default of MakeMaker and the core asks for 6.78.
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 the suite run must reach. Default: 80. Set to 0 to switch the coverage gate off. See Dist::Zilla::Plugin::DBIO::CoverageGate.
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.