repository.toml specification 1#

This page lists the keys of a repository.toml file in specification 1, and the specification 2 form of each. repoplone 2 still reads these files.

A file follows specification 1 when it has no spec_version key, or when spec_version is "1" or "1.0".

Example#

[repository]
name = "my-project"
changelog = "CHANGELOG.md"
version = "version.txt"
compose = ["docker-compose.yml"]

[repository.towncrier]
section = "Project"
settings = "towncrier.toml"

[backend.package]
name = "my.project"
path = "backend"
changelog = "backend/CHANGELOG.md"
towncrier_settings = "backend/pyproject.toml"
base_package = "Products.CMFPlone"
publish = false

[frontend.package]
name = "volto-my-project"
path = "frontend/packages/volto-my-project"
changelog = "frontend/packages/volto-my-project/CHANGELOG.md"
towncrier_settings = "frontend/packages/volto-my-project/towncrier.toml"
base_package = "@plone/volto"
publish = false

Keys and their specification 2 form#

repoplone settings migrate makes each change in the last column.

Specification 1

Description

Specification 2

[repository] name, changelog, version, container_images_prefix, version_format, issues_url

As in specification 2.

unchanged

[repository] compose

A path or a list of paths.

a list

[repository] managed_by_uv

Deprecated.

removed; read from the backend’s pyproject.toml

[repository.towncrier] with settings

News fragments for the repository.

kept, without enabled

[repository.towncrier] without settings

Off.

removed

[backend.package] with a name

The Python package.

a [[package]] with type = "python-plone" and primary = true

[frontend.package] with a name

The Node package.

a [[package]] with type = "node-volto" and primary = true

[backend.package] or [frontend.package] without a name

Not used.

removed

enabled in a package

Derived from name.

removed

towncrier_settings in a package

The towncrier configuration.

towncrier.settings

section in a package

The changelog heading.

towncrier.section

[backend] path, [frontend] path

Deprecated.

removed

release_backend in [repository.release]

The Python package step.

release_python

release_frontend in [repository.release]

The Node package step.

release_node

no spec_version

spec_version = "2"

The other keys of [backend.package] and [frontend.package] keep their names in the [[package]] table: path, changelog, code_path, publish, base_package, python_version, python_versions, and plone_versions.

Behavior that differs from specification 2#

Changelog headings

The package sections of the repository changelog are titled Backend and Frontend. In specification 2, they take the package name unless towncrier.section sets one.

Version labels

repoplone versions current labels the packages Backend and Frontend. In specification 2, it labels them with their type.

Release steps

[repository.release] steps accepts both the old and the new ids.

Arrays

A specification 1 file must not contain [[package]] or [[component]] tables. repoplone refuses them and asks for spec_version = "2".

See also