diff --git a/pages/common/poetry-build.md b/pages/common/poetry-build.md new file mode 100644 index 00000000000000..fae707d88dbc91 --- /dev/null +++ b/pages/common/poetry-build.md @@ -0,0 +1,24 @@ +# poetry build + +> Build a Poetry package as a tarball and a wheel. +> More information: . + +- Build the package in the default format (sdist and wheel): + +`poetry build` + +- Build only the wheel package: + +`poetry build --format {{wheel}}` + +- Build only the source distribution (sdist): + +`poetry build --format {{sdist}}` + +- Build the package and output to a specific directory: + +`poetry build --output {{path/to/directory}}` + +- Display help: + +`poetry build --help`