astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
19.76k stars 582 forks source link

`uv venv --preview` now requires `[project]` table #6177

Closed branchvincent closed 3 weeks ago

branchvincent commented 3 weeks ago

Thanks for all your amazing work on uv and ruff :)

I noticed after https://github.com/astral-sh/uv/commit/0dcec9eba8fff90c7863451f6435de594c9c9624, uv venv now accidentally requires a [project] table if pyproject.toml exists:

$ cd "$(mktemp -d)"
$ touch pyproject.toml
$ uv venv --preview
× No `project` table found in: `$TMPDIR/tmp.t05D1l2KEK/pyproject.toml`

Of course, projects may have a pyproject.toml without having yet adopted PEP 621 (like https://github.com/pypa/trove-classifiers)

zanieb commented 3 weeks ago

Thanks for the report! We definitely shouldn't fail here.

Blocks #6166