Skip to content

Upgrading only one group packages, i.e., --upgrade-group #13705

@hovnatan

Description

@hovnatan

Question

I have a virtual environment setup from multiple groups in dependencies (default-groups="all"). Now working in that virtual environment I want to upgrade and sync lock file for packages only from one of the groups, e.g., something like this uv sync --upgrade --group lint, but that command upgrades all packages from all groups. Is it possible to achieve this behavior? If I try uv sync --upgrade --only-group lint that will remove packages from all other groups, which is not desired.

Platform

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions