-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add excluded dependencies #7214
Copy link
Copy link
Closed
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionalityneeds-designNeeds discussion, investigation, or designNeeds discussion, investigation, or designwishNot on the immediate roadmapNot on the immediate roadmap
Metadata
Metadata
Assignees
Labels
enhancementNew feature or improvement to existing functionalityNew feature or improvement to existing functionalityneeds-designNeeds discussion, investigation, or designNeeds discussion, investigation, or designwishNot on the immediate roadmapNot on the immediate roadmap
I want to request functionality to exclude dependencies, even if it's a sub dependency.
I would like to see the
--excludedflag in theuv addcommand, andexcluded-dependenciesinpyproject.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-packageparameter, but this solution only affects the virtual environment, and is not locked inpyproject.toml.