diff --git a/docs/userguide/declarative_config.rst b/docs/userguide/declarative_config.rst index 342f18460e..2f650e1746 100644 --- a/docs/userguide/declarative_config.rst +++ b/docs/userguide/declarative_config.rst @@ -133,6 +133,24 @@ value associated with ``""`` in the ``package_dir`` dictionary. Please see :doc:`package discovery ` for more details. +Interpolation +============= + +Config files are parsed using :mod:`configparser` with +`interpolation `_ +enabled. As a result, one config value may reference another. This +feature may be used, for example, in defining extras: + +.. code-block:: ini + + [options.extras_require] + tester = + pytest==3.3.2 + pytest-sugar + dev = + pytest-xdist + %(tester)s + Specifying values =================