poetry-build
Build Python distribution packages
TLDR
Build package
$ poetry build
Build wheel only$ poetry build -f wheel
Build sdist only$ poetry build -f sdist
SYNOPSIS
poetry build [options]
DESCRIPTION
poetry build creates distributable Python packages from the current project. By default it generates both a wheel (.whl) and a source distribution (sdist/tarball) in the dist/ directory.
Use -f wheel to build only the wheel format or -f sdist for only the source distribution. The build process uses the project metadata from pyproject.toml including name, version, dependencies, and entry points.
PARAMETERS
-f, --format FORMAT
Build format (wheel, sdist).
CAVEATS
Outputs to dist/ directory. Requires valid pyproject.toml.
HISTORY
poetry build provides Python package building functionality.
SEE ALSO
poetry(1), poetry-publish(1)
