astral-sh / uv

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

Config and command to install dependencies with alternative package indexes #7149

Open AdrianB-sovo opened 2 months ago

AdrianB-sovo commented 2 months ago

I'm using AWS CodeArtifact and I want to install all dependencies with an uv command — without running anything, just to have the dependencies available for my IDE after cloning the project —.

Currently, the only way I could find is to have a script (e.g. install_requirements.sh) in each project that would export UV_EXTRA_INDEX_URL (except that I personnally use the SSO profile with --profile option in AWS CLI), then run the uv pip install command.

Is there something planned to have something defined somewhere (e.g. some uv install hooks?) that would be automatically used by an uv command to install dependencies, without a custom script? The idea is that, if someone wants to clone a repo to start working on it, there would be an official way to do that.

zanieb commented 2 months ago

I think we'll be tackling this in #171 when we allow add index sources to the pyproject.toml directly, cc @charliermarsh