diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2021-02-11 11:44:38 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 12:44:38 +0100 |
| commit | a2fa2fa2f840350d23698df78bae5677c20cb623 (patch) | |
| tree | 15295952bdb11b58227dae1d5b5eb32100a098c4 /docs/intro | |
| parent | 6307c3f1a123f5975c73b231e8ac4f115fd72c0d (diff) | |
| download | django-a2fa2fa2f840350d23698df78bae5677c20cb623.tar.gz | |
Refs #30944 -- Added pyproject.toml in reusable apps docs.
Related to f8f35e8c530aaf440fa8160327461460d79f6db2.
Diffstat (limited to 'docs/intro')
| -rw-r--r-- | docs/intro/reusable-apps.txt | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/docs/intro/reusable-apps.txt b/docs/intro/reusable-apps.txt index ea3bd64584..8c1bf7827c 100644 --- a/docs/intro/reusable-apps.txt +++ b/docs/intro/reusable-apps.txt @@ -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 to use your code. -#. Next we'll create ``setup.cfg`` and ``setup.py`` files which detail how to - build and install the app. A full explanation of these files is beyond the - scope of this tutorial, but the `setuptools documentation - <https://setuptools.readthedocs.io/en/latest/>`_ has a good explanation. - Create the files ``django-polls/setup.cfg`` and ``django-polls/setup.py`` - with the following contents: +#. Next we'll create ``pyproject.toml``, ``setup.cfg``, and ``setup.py`` files + which detail how to build and install the app. A full explanation of these + files is beyond the scope of this tutorial, but the `setuptools + documentation <https://setuptools.readthedocs.io/en/latest/>`_ has a good + explanation. Create the ``django-polls/pyproject.toml``, + ``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 :caption: django-polls/setup.cfg |
