uv icon indicating copy to clipboard operation
uv copied to clipboard

Add `excluded-dependencies` support

Open zanieb opened this issue 7 months ago • 2 comments

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

zanieb avatar Apr 02 '25 01:04 zanieb

This is literally what I requested in issue #7214, so I'll just mention it so it can be referenced.

MrPandir avatar May 15 '25 17:05 MrPandir

This should be fairly easy to add, if someone is interested.

zanieb avatar May 15 '25 17:05 zanieb

let me investigate and propose a fix EDIT:- Working

CodeMan62 avatar May 20 '25 18:05 CodeMan62

@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

CodeMan62 avatar May 23 '25 12:05 CodeMan62