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 |
|---|---|---|
|
As in specification 2. |
unchanged |
|
A path or a list of paths. |
a list |
|
Deprecated. |
removed; read from the backend’s |
|
News fragments for the repository. |
kept, without |
|
Off. |
removed |
|
The Python package. |
a |
|
The Node package. |
a |
|
Not used. |
removed |
|
Derived from |
removed |
|
The towncrier configuration. |
|
|
The changelog heading. |
|
|
Deprecated. |
removed |
|
The Python package step. |
|
|
The Node package step. |
|
no |
|
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
BackendandFrontend. In specification 2, they take the package name unlesstowncrier.sectionsets one.- Version labels
repoplone versions currentlabels the packagesBackendandFrontend. In specification 2, it labels them with their type.- Release steps
[repository.release] stepsaccepts both the old and the new ids.- Arrays
A specification 1 file must not contain
[[package]]or[[component]]tables. repoplone refuses them and asks forspec_version = "2".
See also
Migrate from repoplone 1, to migrate a file.
repository.toml, for the specification 2 keys.