Pants v2: Fast, consistent builds for Python and more

Welcome to the Pants v2 documentation hub!

Pants v2 is a fast, scalable build system for growing codebases. It's currently focused on Python, with support for other languages coming soon.

Here you'll find guides to help you get started with Pants v2, comprehensive documentation on how to configure, run and customize Pants v2, and information on how to get help from the Pants community.

Get Started

To generate BUILD file targets for new source files, use:

$ ./pants tailor

You can run this when you first integrate Pants into your codebase, and then run it again as you add source files.

The tailor goal will add python_library and python_tests targets as needed. It won't add other target types, such as resources, files or pex_binary targets; You must still provide those manually.

Note that the tailor goal never modifies or deletes existing targets. It only creates new BUILD files or appends to existing ones.

You may freely edit the targets emitted by tailor before adding them to your repo.

Updated about a month ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.