uv.lock file

The uv.lock file in your charm’s root directory specifies the exact versions of your charm’s dependencies and your development dependencies.

Charmcraft doesn’t create this file. This file is required if your charm uses the uv plugin. It’s also required by the tox-uv plugin. For more information, see tox.ini file.

Use uv lock to create this file and update it if you change your charm’s dependencies. Alternatively, you can update this file by using uv add and uv remove to manage dependencies in the pyproject.toml file.

You shouldn’t manually edit this file.

For 12-factor app profiles targeting Ubuntu 24.04 LTS or lower: This file isn’t necessary. Dependencies are specified in the requirements.txt file instead of pyproject.toml.