Skip to content

Commit a2fa2fa

Browse files
authored
Refs #30944 -- Added pyproject.toml in reusable apps docs.
Related to f8f35e8.
1 parent 6307c3f commit a2fa2fa

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

docs/intro/reusable-apps.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,20 @@ this. For a small app like polls, this process isn't too difficult.
183183
license. Just be aware that your licensing choice will affect who is able
184184
to use your code.
185185

186-
#. Next we'll create ``setup.cfg`` and ``setup.py`` files which detail how to
187-
build and install the app. A full explanation of these files is beyond the
188-
scope of this tutorial, but the `setuptools documentation
189-
<https://setuptools.readthedocs.io/en/latest/>`_ has a good explanation.
190-
Create the files ``django-polls/setup.cfg`` and ``django-polls/setup.py``
191-
with the following contents:
186+
#. Next we'll create ``pyproject.toml``, ``setup.cfg``, and ``setup.py`` files
187+
which detail how to build and install the app. A full explanation of these
188+
files is beyond the scope of this tutorial, but the `setuptools
189+
documentation <https://setuptools.readthedocs.io/en/latest/>`_ has a good
190+
explanation. Create the ``django-polls/pyproject.toml``,
191+
``django-polls/setup.cfg``, and ``django-polls/setup.py`` files with the
192+
following contents:
193+
194+
.. code-block:: toml
195+
:caption: django-polls/pyproject.toml
196+
197+
[build-system]
198+
requires = ['setuptools>=40.8.0', 'wheel']
199+
build-backend = 'setuptools.build_meta:__legacy__'
192200

193201
.. code-block:: ini
194202
:caption: django-polls/setup.cfg

0 commit comments

Comments
 (0)