Skip to content

Define extra per --package with uv sync #19506

@tlippold-meta

Description

@tlippold-meta

Summary

When using uv sync --package=A --package=B and you want to install an extra of only one package, it is not possible AFAIK.

uv sync --package=A --package=B --extra=E installs the extra E of both packages.

uv sync --package=A[E] --package=B is not accepted by the parser:

invalid value 'A[E]' for '--package ': Not a valid package or extra name: "A[E]". Names must start and end with a letter or digit and may only contain -, _, ., and alphanumeric characters.

I would suggest accepting uv sync --package=A[E] --package=B if that is possible.

Example

uv sync --package=A[E] --package=B to install the extra E only of package A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions