uv icon indicating copy to clipboard operation
uv copied to clipboard

Add a download link for a minor uv version

Open danielhollas opened this issue 1 year ago • 5 comments

Right now when installing uv via URL, one can either install the latest version

curl -LsSf https://astral.sh/uv/install.sh | sh

or a specific version

curl -LsSf https://astral.sh/uv/0.2.9/install.sh | sh

Given that uv now has official version policy, it would be nice to be able to specify a major and minor version, without pinning the patch version. Something like:

curl -LsSf https://astral.sh/uv/0.2/install.sh | sh

danielhollas avatar Jun 06 '24 19:06 danielhollas

(We should do this)

zanieb avatar Aug 19 '24 22:08 zanieb

This would be arguably nice to extend to docker tags too

samypr100 avatar Aug 19 '24 23:08 samypr100

Good point! I had some fun with this at my last job... https://github.com/PrefectHQ/prefect/blob/4da5da207b126639998917cb1e246f7b15484405/.github/workflows/docker-images.yaml#L110-L116

zanieb avatar Aug 20 '24 00:08 zanieb

I found this command in the release curl --proto ‘=https’ --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.5.8/uv-installer.sh | sh. Why is it not documented here?

nikpivkin avatar Dec 12 '24 06:12 nikpivkin

@nikpivkin that's documented at https://docs.astral.sh/uv/getting-started/installation/#github-releases

zanieb avatar Dec 12 '24 14:12 zanieb

Until this is added, does anyone know a way to install the latest patch in a minor version without going through pip?

Context: I am installing uv in an Azure Pipeline like pip install uv~=0.x.0 right now, but I would like to avoid using pip if possible. Searching for alternatives is how I found this issue, actually. The proposed download link one-liner seems very natural.

mynewestgitaccount avatar Aug 30 '25 07:08 mynewestgitaccount