Skip to content

Commit

Permalink
Add docs example for [tool.uv.dependency-metadata]
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Oct 23, 2024
1 parent d6d6de8 commit 34a8b32
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 34a8b32

Please sign in to comment.