Skip to content

Ignore group completely when resolving depencencies. #11104

Open
@fizcris

Description

@fizcris

Summary

If we have a project.toml like:

[project]
name = "example"
version = "1.0.0"
description = "desccription"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "matplotlib>=3.10.0",
    "pandas>=2.2.3",
]

[dependency-groups]
internal = [
    "my-app-1">=1.0.0",
    "my-app-2">=2.0.0",
]

[tool.uv.sources]
my-app-1 = { index = "internalRepo"}
my-app-2 = { index = "internalRepo2"}

[[tool.uv.index]]
name = "internalRepo"
url = "https://my-internal-repo.com/simple"
explicit = true

[[tool.uv.index]]
name = "internalRepo2"
url = "https://my-internal-repo2.com/simple"
explicit = true

If in the moment we are solving dependencies there is access to the private repositories it will fail and there is no way to exclude the internal group.

So the following command will fail uv sync --no-group internal. And there is no known way to completely exclude the internal group from dep resolution.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions