Skip to content

Add excluded dependencies #7214

@MrPandir

Description

@MrPandir

I want to request functionality to exclude dependencies, even if it's a sub dependency.

I would like to see the --excluded flag in the uv add command, and excluded-dependencies in pyproject.toml.

This functionality is in rye, but not in uv for some reason. Is there any reason why it's not there, or are there other ways to avoid installing sub-dependencies? Let me know.

I have seen the uv sync --no-install-package parameter, but this solution only affects the virtual environment, and is not locked in pyproject.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalityneeds-designNeeds discussion, investigation, or designwishNot on the immediate roadmap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions