repository.toml#
This page lists every key of a repository.toml file that follows specification 2.
For files without a spec_version key, see repository.toml specification 1.
Location#
repoplone looks for repository.toml in the current folder, then in each parent folder up to the root of the file system.
The first file found wins.
Every relative path in the file is relative to the folder that holds it.
Without a file, every command prints Did not find a repository.toml file. and exits with code 0.
Example#
spec_version = "2"
[repository]
name = "my-project"
changelog = "CHANGELOG.md"
version = "version.txt"
container_images_prefix = "ghcr.io/my-org/my-project"
compose = ["docker-compose.yml"]
[repository.towncrier]
settings = "towncrier.toml"
section = "Project"
[[package]]
type = "python-plone"
name = "my.project"
path = "backend"
changelog = "backend/CHANGELOG.md"
publish = false
[[package]]
type = "node-volto"
name = "volto-my-project"
path = "frontend/packages/volto-my-project"
changelog = "frontend/packages/volto-my-project/CHANGELOG.md"
publish = false
Top level#
Key |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
|
|
table |
yes |
The repository. See [repository]. |
|
array of tables |
no |
One table per package. See [[package]]. |
|
array of tables |
no |
One table per app. Without any, repoplone derives the components. See [[component]]. |
A specification 2 file must not contain [backend] or [frontend] tables.
repoplone refuses them and points to repoplone settings migrate.
[repository]#
Key |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
yes |
The name of the repository. It names the release in changelogs and in the GitHub release. |
|
|
path |
yes |
The repository changelog, usually |
|
|
path |
yes |
The file that holds the repository version, usually |
|
|
string |
no |
|
|
|
string |
no |
|
The prefix of the container image names. A component’s image is |
|
list of paths |
no |
|
Compose files. A release replaces the old version with the new one in the tags of the images that match |
|
string |
no |
derived |
The issue tracker. Defaults to |
|
table |
no |
News fragments for the repository as a whole. See towncrier tables. |
|
|
table |
no |
The release pipeline. See [repository.release]. |
Write changelog and version even when you use the usual file names.
A [repository] table replaces the built-in defaults as a whole.
compose must be a list.
managed_by_uv is not part of specification 2: repoplone reads it from the backend’s pyproject.toml.
towncrier tables#
A towncrier table points to a towncrier configuration.
It appears once as [repository.towncrier] and once in each [[package]], as towncrier.settings and towncrier.section.
Key |
Type |
Default in |
Default in a |
Description |
|---|---|---|---|---|
|
path |
|
the package’s |
The towncrier configuration file. |
|
string |
|
the package name |
The heading of this part in the repository changelog. |
A [repository.towncrier] table turns on news fragments for the repository as a whole.
An empty table turns them on with both defaults.
Without the table, the repository has no news fragments of its own.
Each value must be a non-empty string.
An enabled key, or any other key, is an error.
[[package]]#
Key |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
yes |
The package type. See Package types. |
|
|
string |
yes |
The distribution name on PyPI, or the package name on npm. An empty name disables the package. |
|
|
path |
yes |
The folder of the package. |
|
|
path |
yes |
The package changelog. |
|
|
path |
no |
|
The source folder, relative to |
|
boolean |
no |
|
Whether a release uploads the package to PyPI or npm. |
|
boolean |
no |
|
Marks the primary package of its family. Without it, the first package of the family is primary. |
|
list of strings |
no |
The components that install this package. Only with |
|
|
string |
no |
by type |
The package this one builds on. Only on |
|
string |
no |
from |
The Python version used to build the package. Python types only. |
|
list of strings |
no |
from |
The supported Python versions. Python types only. |
|
list of strings |
no |
from |
The supported Plone versions. |
|
table |
no |
See towncrier tables. |
Two packages must not share a name or a path.
A family has at most one package with primary = true.
base_package only has an effect on the primary package of a family.
Set on another package, it gives a warning.
In a file with [[component]] tables, the components own the base packages.
There, primary and base_package on a package give a warning and have no effect.
towncrier_settings and a flat section key belong to specification 1.
repoplone refuses them, and names the towncrier.settings or towncrier.section key to use instead.
Package types#
Type |
Family |
Default |
Released with |
|---|---|---|---|
|
python |
|
uv |
|
python |
uv |
|
|
node |
|
release-it |
|
node |
|
release-it |
|
node |
release-it |
repoplone also reads two older names.
backend stands for python-plone, and frontend stands for node-volto.
repoplone settings migrate writes the current names.
[[component]]#
Key |
Type |
Required |
Default |
Description |
|---|---|---|---|---|
|
string |
yes |
The name of the app. It names the |
|
|
string |
yes |
A package type. See Package types. |
|
|
path |
yes |
The folder of the app. |
|
|
string |
no |
by type |
The package the app builds on. Only on |
|
path |
no |
|
A file with the base package version, relative to |
|
string |
no |
A package whose changelog a release copies to |
A name uses lowercase letters, digits, ., -, and _, and starts with a letter or a digit.
Two components must not share a name or a path.
These rules link packages and components:
A package may list components only when the file declares
[[component]]tables.componentsis a non-empty list of declared component names.A Python package cannot be part of a Node component.
A component’s watch paths are its own folder plus the folder of each package that lists it.
Implicit components#
Without [[component]] tables, repoplone derives up to two components.
Name |
From |
Path |
|---|---|---|
|
the primary Python package |
the folder of the package |
|
the primary Node package |
the root of the workspace that holds the package |
Each takes the base_package of its package.
[repository.release]#
[repository.release]
steps = ["changelog", "version", "repository", "release_python", "git", "notify", "gh_release", "bye"]
[repository.release.registry.notify]
function = "local_step"
title = "Notify the team"
args = { entrypoint = "scripts.release:notify", channel = "releases" }
Key |
Type |
Default |
Description |
|---|---|---|---|
|
list of strings |
the built-in order |
The step ids, in the order they run. Each is a built-in id or a key of |
|
table |
A step of your own. |
|
|
string |
A built-in step id. Use |
|
|
string |
the title of |
The title the release prints. |
|
table |
|
Arguments for the step. |
An empty or missing steps list runs the built-in order.
steps must not repeat an id, nor name local_step directly.
A registry key equal to a built-in id replaces that built-in.
Specification 2 accepts only release_python and release_node.
release_backend and release_frontend are specification 1 ids.
The built-in ids and the local_step contract are in Release steps.
See also
The repository model, for what each table stands for.
Components, for when to declare components.
repoplone settings sanity-check, to validate a file.