Pyproject.toml

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

pyproject.toml is a file that specifies required packages, scripts, plugins and URLs.

Build Backend Configuration

pyproject.toml tells the build frontend tool which backend to use for the specific project it is part of.

The requires key is a list of packages that are needed to build the package. The frontend should install them automatically when building the package. What about the dependencies specified in requirements.txt?

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

Project Metadata