Skip to content

Commit

Permalink
Fix code-blocs in docs/setuptools_pep621
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Oct 12, 2021
1 parent 76bbe11 commit 6aed529
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/setuptools_pep621.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@ proposed by ``ini2toml`` takes the following assumptions:
'file: description.rst' => {file = "description.rst"}

- Instead of requiring a separated/dedicated section to specify parameters, the
directives ``find:`` and ``find_namespace:`` just use a nested table. For example::
directives ``find:`` and ``find_namespace:`` just use a nested table. For example:

.. code-block:: ini
.. code-block:: ini
# setup.cfg
[options]
package = find_namespace:
[options.packages.find]
where = src
exclude =
tests
# setup.cfg
[options]
package = find_namespace:
[options.packages.find]
where = src
exclude =
tests
.. code-block:: toml
.. code-block:: toml
# pyproject.toml
[tool.setuptools.packages.find-namespace]
where = "src",
exclude = ["tests"]
# pyproject.toml
[tool.setuptools.packages.find-namespace]
where = "src",
exclude = ["tests"]
- Fields set up to be dynamically resolved by setuptools_ via directives, that
only have an static equivalent in `PEP 621`_ (e.g. ``version = attr: module.attribute``
Expand Down

0 comments on commit 6aed529

Please sign in to comment.