astral-sh / uv

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

`uv python pin` should support writing to a `uv.toml` or `pyproject.toml` #4970

Open zanieb opened 2 months ago

zanieb commented 2 months ago

We need to design the schema for this data. Probably at uv.python-version or uv.python.default-version.

T-256 commented 2 months ago

Then, should it also be top-level command uv pin? since it tries to manage project/workspace directly.

zanieb commented 2 months ago

That's a reasonable question. I'm not sure. I don't love it at the top-level since it's not obvious what we're pinning.

zanieb commented 1 month ago

I duped myself, https://github.com/astral-sh/uv/issues/4359 covers reading from the configuration file.

charliermarsh commented 1 month ago

(At least figure out the rough design prior to the release.)