python -m build

The standard command that turns a project described by pyproject.toml into installable package files, a wheel and a source distribution, in the dist folder.

In more detail

It is a separate package, installed with pip install build. It hands the work to the build backend named in pyproject.toml, such as hatchling.

Related terms

Taught in

References