Skip to content

✨ feat(lock): add only_groups config for uv sync#293

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:feat/only-groups
Feb 23, 2026
Merged

✨ feat(lock): add only_groups config for uv sync#293
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:feat/only-groups

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

Users who need to install a single dependency group in isolation -- for example, CI tooling from a private index without pulling in the project or its other dependencies -- had to resort to uv_sync_flags = --only-group,my-group as a workaround. This works but is non-obvious and mixes flag-level details into the tox config.

This adds a first-class only_groups config for the lock runner that maps directly to uv sync --only-group. It follows the same pattern as the existing dependency_groups config: accepts a set of group names and emits --only-group <name> flags for each.

[testenv:ci]
runner = uv-venv-lock-runner
only_groups = ["ci"]

Closes #267

@gaborbernat gaborbernat added the enhancement New feature or request label Feb 23, 2026
Users who need to install a single dependency group in isolation (e.g.
CI tooling from a private index) had to use `uv_sync_flags` with
`--only-group` as a workaround. This adds a first-class `only_groups`
config that maps directly to `uv sync --only-group`.

Closes tox-dev#267
@gaborbernat gaborbernat enabled auto-merge (squash) February 23, 2026 20:29
@gaborbernat gaborbernat merged commit e871445 into tox-dev:main Feb 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to create a test environnment similar to uv sync --only-group ...

1 participant