Add docs example for URLs with `[tool.uv.dependency-metadata]` (#8484)

This commit is contained in:
Charlie Marsh 2024-10-22 22:19:14 -04:00 committed by GitHub
parent cc734ea2b6
commit fa14ea44b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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"