Skip to content

uv tree: extra packages are listed as roots #8516

Closed
@bluss

Description

@bluss

new uv tree features are looking good. Here's one change from before that could maybe be a bug.

uv init jc
# Initialized project `jc` at `/home/user/jc`
cd jc
uv add --frozen jupyter-client
uv tree
Resolved 12 packages in 186ms
cffi v1.17.1
└── pycparser v2.22
jc v0.1.0
└── jupyter-client v8.6.3
    ├── jupyter-core v5.7.2
    │   ├── platformdirs v4.3.6
    │   └── traitlets v5.14.3
    ├── python-dateutil v2.9.0.post0
    │   └── six v1.16.0
    ├── pyzmq v26.2.0
    ├── tornado v6.4.1
    └── traitlets v5.14.3

Expected: There is one root 'jc'. Actual: There are two roots 'cffi' and 'jc'.
'cffi' comes from this resolution: cffi==1.17.1 ; implementation_name == 'pypy' and it will be in its right spot in the tree if we run uv tree --universal

uv tree --universal
Resolved 12 packages in 0.59ms
jc v0.1.0
└── jupyter-client v8.6.3
    ├── jupyter-core v5.7.2
    │   ├── platformdirs v4.3.6
    │   ├── pywin32 v308
    │   └── traitlets v5.14.3
    ├── python-dateutil v2.9.0.post0
    │   └── six v1.16.0
    ├── pyzmq v26.2.0
    │   └── cffi v1.17.1
    │       └── pycparser v2.22
    ├── tornado v6.4.1
    └── traitlets v5.14.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions