From fa14ea44b9724e149550bc3995fdc64465fdea92 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 22 Oct 2024 22:19:14 -0400 Subject: [PATCH] Add docs example for URLs with `[tool.uv.dependency-metadata]` (#8484) --- docs/concepts/resolution.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/concepts/resolution.md b/docs/concepts/resolution.md index f84e7e254670..fdf679b8cb3d 100644 --- a/docs/concepts/resolution.md +++ b/docs/concepts/resolution.md @@ -302,6 +302,15 @@ For example, you can declare the metadata for `flash-attn`, allowing uv to resol the package from source (which itself requires installing `torch`): ```toml +[project] +name = "project" +version = "0.1.0" +requires-python = ">=3.12" +dependencies = ["flash-attn"] + +[tool.uv.sources] +flash-attn = { git = "https://github.com/Dao-AILab/flash-attention", tag = "v2.6.3" } + [[tool.uv.dependency-metadata]] name = "flash-attn" version = "2.6.3"