You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``pyproject.toml`` file is used to define many different project configurations.
8
+
It replaces the need for setup.py, requirements.txt, and other configuration files.
9
+
10
+
A fundamental use for ``pyproject.toml`` is to define dependencies. You should
11
+
make an effort to add all the required dependencies to the ``[dependencies]``
12
+
section of the file. The template also creates a section for dependencies used only in development: ``[project.optional-dependencies][dev]``. You can add additional sets of optional dependencies here, e.g. for extended feature sets.
13
+
14
+
In addition to dependencies, ``pyproject.toml`` centralizes the project's
15
+
configuration and makes it easier to manage. If you examine your ``pyproject.toml``
16
+
file, you'll see sections with titles like ``[tool.<blah>]``. These sections are
17
+
used to configure tools that are used in the project that would otherwise require
18
+
their own configuration files.
19
+
20
+
A ``pyproject.toml`` file provides a vast number of customization options well
21
+
beyond what can be covered here. For an in-depth look at how the file can be used
22
+
and how it compares to the older ``setup.py`` checkout the
23
+
`Python Packaging User Guide <https://packaging.python.org/en/latest/guides/writing-pyproject-toml/>`_.
0 commit comments