uv
uv copied to clipboard
Add `excluded-dependencies` support
We support this now by setting an impossible marker, e.g., override-dependencies = ["package; sys_platform = "never"] (https://docs.astral.sh/uv/reference/settings/#override-dependencies). We should add a dedicated option, e.g., excluded-dependencies = ["package"]. Unlike --no-install-package, this omits the whole dependency tree. We should add a dedicated option, as this is fairly bespoke.
Related:
- #12523
- #4422
This is literally what I requested in issue #7214, so I'll just mention it so it can be referenced.
This should be fairly easy to add, if someone is interested.
let me investigate and propose a fix EDIT:- Working
@zanieb i have a small question can you tell me is this PR #10207 is related to this can I take reference of that and implement it or what I need just small clarification and then I will be good to go EDIT:- sorry I found what to do