Upgrade Plone, Volto, or Aurora#
This guide shows you how to upgrade the base package of one app in a repository. The base package is Plone for a backend, and Volto or Aurora for a frontend.
Each app is a component.
In a repository without [[component]] tables, the apps are backend and frontend.
See what is out of date#
List the base package of each component.
uvx repoplone deps info
Compare the version each component pins with the latest release on PyPI or npm.
uvx repoplone deps check
The table has one row per component, with its base package, the version it uses, and the latest version.
A Python component that is not managed by uv shows not managed by uv instead of the latest version.
Upgrade one component#
Upgrade a component to the latest release of its base package.
uvx repoplone deps upgrade backend
Or to a version of your choice.
uvx repoplone deps upgrade backend 6.1.4
For a Node component, give the version in semantic versioning syntax, such as 19.0.0-alpha.7.
repoplone refuses a Python-style version such as 19.0.0a7, and suggests the right spelling.
repoplone edits the file where the component pins its base package.
Component type |
File repoplone edits |
|---|---|
|
The constraints and the pin of |
|
The |
|
The |
After the edit, repoplone runs make <component>-install to update the component’s lockfile.
It then reminds you to add a news fragment, and names the folder.
Refresh the backend constraints#
Plone publishes the versions of its own dependencies as constraints. To pull the constraints of the Plone version the backend already uses, without changing that version, run this command.
uvx repoplone deps constraints backend
It only works for a backend managed by uv, with its dependencies in pyproject.toml.
Track an unreleased branch#
To test the backend against a branch of its base package, give the branch name with a leading @.
uvx repoplone deps upgrade backend @main
repoplone reads the constraints from the branch’s pyproject.toml and pins the base package to the branch with a [tool.uv.sources] entry instead of a version.
The base package must declare its repository in its metadata for this to work.
Update the lockfiles only#
To refresh the lockfile of a component without changing any pin, run its install target through repoplone.
uvx repoplone deps sync volto
Without a component name, deps sync installs every component in turn.
See also
Upgrade a Volto distribution, when the frontend builds on a Volto distribution.
Add news fragments, to describe the upgrade in the changelog.
repoplone deps, for every option of the
depscommands.