Pyproject.toml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
<code>pyproject.toml</code> is a file that specifies required packages, scripts, plugins and URLs.
<code>pyproject.toml</code> is a file that specifies required packages, scripts, plugins and URLs.


=Build Backend Configuration=
<code>pyproject.toml</code> tells the [[Python_Language_Modularization#Build_Frontend|build frontend]] tool which [[Python_Language_Modularization#Build_Backend|backend]] to use for the specific project it is part of.
<code>pyproject.toml</code> tells the [[Python_Language_Modularization#Build_Frontend|build frontend]] tool which [[Python_Language_Modularization#Build_Backend|backend]] to use for the specific project it is part of.
<syntaxhighlight lang='py'>
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
</syntaxhighlight>


=Project Metadata=
=Project Metadata=

Revision as of 02:12, 6 April 2024

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.

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

Project Metadata