mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-13 20:48:16 +00:00
30 lines
591 B
Plaintext
30 lines
591 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# poetry build
|
|
|
|
> Build a Poetry package as a tarball and a wheel.
|
|
> More information: <https://python-poetry.org/docs/cli/#build>.
|
|
|
|
- Build a tarball and a wheel for the project:
|
|
|
|
`poetry build`
|
|
|
|
- Build a wheel package:
|
|
|
|
`poetry build {{[-f|--format]}} wheel`
|
|
|
|
- Build a source distribution (sdist):
|
|
|
|
`poetry build {{[-f|--format]}} sdist`
|
|
|
|
- Clean the output directory before building:
|
|
|
|
`poetry build --clean`
|
|
|
|
- Set the output directory:
|
|
|
|
`poetry build {{[-o|--output]}} {{path/to/directory}}`
|