Skip to content

Commit

Permalink
Add docs example for URLs with [tool.uv.dependency-metadata] (#8484)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Oct 23, 2024
1 parent cc734ea commit fa14ea4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/concepts/resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fa14ea4

Please sign in to comment.