1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 12:55:28 +02:00
tldr/pages/common/uv-build.md
Meinard Francisco 595818316a
uv-{build,cache,export,publish,self}: add pages (#16906)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-06-21 04:14:05 +05:30

36 lines
771 B
Markdown

# uv build
> Build Python packages into source distributions and wheels.
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-build>.
- Build a package in the current directory:
`uv build`
- Build a package from a specific directory:
`uv build {{path/to/directory}}`
- Build only a wheel (skip source distribution):
`uv build --wheel`
- Build only a source distribution (skip wheel):
`uv build --sdist`
- Build and output to a specific directory:
`uv build {{[-o|--out-dir]}} {{path/to/output}}`
- Build a specific package in a workspace:
`uv build --package {{package_name}}`
- Build all packages in the workspace:
`uv build {{[--all|--all-packages]}}`
- Build with a specific Python interpreter:
`uv build {{[-p|--python]}} {{python3.11}}`