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:

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):

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.

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.