LinuxCommandLibrary

poetry-build

Build Python distribution packages

TLDR

Build package

$ poetry build
copy
Build wheel only
$ poetry build -f wheel
copy
Build sdist only
$ poetry build -f sdist
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community