googleapis / googleapis/release-please

Support `uv.lock` files out-of-the-box.

Open
#2,561 0 comments 73 reactions 1 assignee Claimed by @chingor13 View on GitHub
priority: p3 type: feature request
Dominant language
TypeScript
Stars
7.5k
Forks
588
Avg merge
12h 16m
Merged PRs (30d)
7

Description

`release-please` already understands and correctly manages the `pyproject.toml` file used by [`uv`](https://docs.astral.sh/uv/), but not the`uv.lock` lockfile, which also contains the package version. The trick is to add a special `extra-files` entry to `release-please-config.json`:

```json
"extra-files": [
{
"path": "uv.lock",
"type": "toml",
"jsonpath": "$.package[?(@.name.value=='my-package')].version"
},
```
as described in [this extremely helpful issue comment](https://github.com/googleapis/release-please/issues/2455#issuecomment-2643132770) from a user.

It would be great to not need this trick!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.