File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -183,12 +183,20 @@ this. For a small app like polls, this process isn't too difficult.
183
183
license. Just be aware that your licensing choice will affect who is able
184
184
to use your code.
185
185
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__'
192
200
193
201
.. code-block:: ini
194
202
:caption: django-polls/setup.cfg
You can’t perform that action at this time.
0 commit comments