mirror of https://github.com/astral-sh/uv
Add docs example for URLs with `[tool.uv.dependency-metadata]` (#8484)
This commit is contained in:
parent
cc734ea2b6
commit
fa14ea44b9
|
|
@ -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`):
|
the package from source (which itself requires installing `torch`):
|
||||||
|
|
||||||
```toml
|
```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]]
|
[[tool.uv.dependency-metadata]]
|
||||||
name = "flash-attn"
|
name = "flash-attn"
|
||||||
version = "2.6.3"
|
version = "2.6.3"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue