diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-06 11:22:22 +0100 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-05-06 11:22:22 +0100 |
commit | b06270e4f41d10e61cd5838e5a92184adb72d30e (patch) | |
tree | 82d2fe82695b5e6452db1c990b68ad1094a09f41 /docs/references | |
parent | 4561ddadfbdbd97fc028005f40376e295f67af52 (diff) | |
download | python-setuptools-git-b06270e4f41d10e61cd5838e5a92184adb72d30e.tar.gz |
Add introduction text to keywords docs
Diffstat (limited to 'docs/references')
-rw-r--r-- | docs/references/keywords.rst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/references/keywords.rst b/docs/references/keywords.rst index 990653e5..38c5b26d 100644 --- a/docs/references/keywords.rst +++ b/docs/references/keywords.rst @@ -2,6 +2,36 @@ Keywords ======== +The following are keywords ``setuptools.setup()`` accepts. +They allow configuring the build process for a Python distribution or adding +metadata via a ``setup.py`` script placed at the root of your project. +All of them are optional; you do not have to supply them unless you need the +associated ``setuptools`` feature. + +Metadata and configuration supplied via ``setup()`` is complementary to (and +may be overwritten by) the information present in ``setup.cfg`` and ``pyproject.toml``. +Some important metadata, such as ``name`` and ``version``, may assume +a default *degenerate* value if not specified. + +Users are strongly encouraged to use a declarative config either via +:doc:`setup.cfg </userguide/declarative_config>` or :doc:`pyproject.toml +</userguide/pyproject_config>` and only rely on ``setup.py`` if they need to +tap into special behaviour that requires scripting (such as building C +extensions). + +.. note:: + When using declarative configs via ``pyproject.toml`` users can still keep a + very simple ``setup.py`` just to ensure editable installs are supported, for + example:: + + from setuptools import setup + + setup() + + Future versions of ``setuptools`` may support editable installs even + without ``setup.py``. + + ``name`` A string specifying the name of the package. |