Skip to content

add uv_sync_groups and uv_sync_only_groups #113

@resulal

Description

@resulal

What's the problem this feature will solve?

When using uv-venv-lock-runner with a uv.lock file, there is no option to specify the new dependency-groups, except with_dev boolean.

uv has already implemented --group and --only-group options to uv sync, where the latter also omits the project itself. Both options can be called multiple times.

Describe the solution you'd like

Similar to uv_sync_flags and extras, one can imagine specifying the dependency-groups as:

uv_sync_only_groups = 
  docs

where the following table exists in pyproject.toml file.

[dependency-groups]
docs = [
  "mkdocs>=1.6.0",
]

This way the uv.lock file can be used across multiple target tox run environments with the fast uv-venv-lock-runner runner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions