Skip to content

uv add treats valid pyproject.toml as invalid #6785

@metaist

Description

@metaist
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:        22.04
Codename:       jammy

$ uv -vv add --optional foo pyright
    0.006241s DEBUG uv uv 0.4.0
    0.006540s DEBUG uv_workspace::workspace Found project root: `/home/metaist/github.com/ds`
    0.007855s DEBUG uv_workspace::workspace No workspace root found, using project root
    0.008276s DEBUG uv::commands::project The virtual environment's Python version satisfies `Python >=3.8`
 uv_requirements::specification::from_source source=pyright
 uv_client::linehaul::linehaul 
    0.009417s DEBUG uv_client::base_client Using request timeout of 30s
 uv_resolver::flat_index::from_entries 
error: Dependencies in `pyproject.toml` are malformed

Here's the pyproject.toml.

Interestingly, if I run uv add pyright or uv add --dev pyright it works just fine.

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