1
0
mirror of https://github.com/django/django.git synced 2025-03-12 02:12:38 +00:00

Refs #30944 -- Added pyproject.toml in reusable apps docs.

Related to f8f35e8c530aaf440fa8160327461460d79f6db2.
This commit is contained in:
Nick Pope 2021-02-11 11:44:38 +00:00 committed by GitHub
parent 6307c3f1a1
commit a2fa2fa2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,12 +183,20 @@ this. For a small app like polls, this process isn't too difficult.
license. Just be aware that your licensing choice will affect who is able license. Just be aware that your licensing choice will affect who is able
to use your code. to use your code.
#. Next we'll create ``setup.cfg`` and ``setup.py`` files which detail how to #. Next we'll create ``pyproject.toml``, ``setup.cfg``, and ``setup.py`` files
build and install the app. A full explanation of these files is beyond the which detail how to build and install the app. A full explanation of these
scope of this tutorial, but the `setuptools documentation files is beyond the scope of this tutorial, but the `setuptools
<https://setuptools.readthedocs.io/en/latest/>`_ has a good explanation. documentation <https://setuptools.readthedocs.io/en/latest/>`_ has a good
Create the files ``django-polls/setup.cfg`` and ``django-polls/setup.py`` explanation. Create the ``django-polls/pyproject.toml``,
with the following contents: ``django-polls/setup.cfg``, and ``django-polls/setup.py`` files with the
following contents:
.. code-block:: toml
:caption: django-polls/pyproject.toml
[build-system]
requires = ['setuptools>=40.8.0', 'wheel']
build-backend = 'setuptools.build_meta:__legacy__'
.. code-block:: ini .. code-block:: ini
:caption: django-polls/setup.cfg :caption: django-polls/setup.cfg