Pyproject.toml
Contents of pyproject.toml
¶
The pyproject.toml
file is used for packaging and dependency management.
It's part of the newer Python packaging standard (PEP 518, PEP 621).
Here's what it typically includes:
-
Project Metadata:
- Basic info like project name, version, description, authors, and license.
- Example:
-
Dependencies:
- Direct dependencies required to run your project.
- Example:
-
Development Dependencies:
- Dependencies needed for development, such as testing libraries, but not for running the project.
- Example:
-
Build System Requirements:
- Specifies the build backend and any requirements for building the project.
- Example:
-
Other Configurations:
- Additional configurations like tool-specific settings for linters, formatters, etc.