mirror of https://github.com/astral-sh/uv
Show uv_build in projects documentation (#14968)
Fix https://github.com/astral-sh/uv/issues/14957
This commit is contained in:
parent
b2eff990df
commit
17f0c91896
|
|
@ -111,8 +111,8 @@ dependencies = []
|
|||
example-pkg = "example_pkg:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
!!! tip
|
||||
|
|
@ -134,8 +134,8 @@ dependencies = []
|
|||
example-pkg = "example_pkg:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
The command can be executed with `uv run`:
|
||||
|
|
@ -195,8 +195,8 @@ requires-python = ">=3.11"
|
|||
dependencies = []
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
!!! tip
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ bird-feeder = { workspace = true }
|
|||
members = ["packages/*"]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
In this example, the `albatross` project depends on the `bird-feeder` project, which is a member of
|
||||
|
|
@ -106,8 +106,8 @@ tqdm = { git = "https://github.com/tqdm/tqdm" }
|
|||
members = ["packages/*"]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
Every workspace member would, by default, install `tqdm` from GitHub, unless a specific member
|
||||
|
|
@ -188,8 +188,8 @@ dependencies = ["bird-feeder", "tqdm>=4,<5"]
|
|||
bird-feeder = { path = "packages/bird-feeder" }
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
requires = ["uv_build>=0.8.3,<0.9.0"]
|
||||
build-backend = "uv_build"
|
||||
```
|
||||
|
||||
This approach conveys many of the same benefits, but allows for more fine-grained control over
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ version_files = [
|
|||
"docs/guides/integration/github.md",
|
||||
"docs/guides/integration/aws-lambda.md",
|
||||
"docs/concepts/build-backend.md",
|
||||
"docs/concepts/projects/init.md",
|
||||
"docs/concepts/projects/workspaces.md",
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
|
|
|
|||
Loading…
Reference in New Issue