Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv add treats valid pyproject.toml as invalid #6785

Closed
metaist opened this issue Aug 29, 2024 · 1 comment · Fixed by #6787
Closed

uv add treats valid pyproject.toml as invalid #6785

metaist opened this issue Aug 29, 2024 · 1 comment · Fixed by #6787
Assignees
Labels
bug Something isn't working

Comments

@metaist
Copy link

metaist commented Aug 29, 2024

$ 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.

@charliermarsh charliermarsh added the bug Something isn't working label Aug 29, 2024
@charliermarsh charliermarsh self-assigned this Aug 29, 2024
@charliermarsh
Copy link
Member

Thanks! Will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants