Skip to content

Commit

Permalink
docs: Use pyproject.toml in custom markups example
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Dec 8, 2024
1 parent 397d3af commit 8b7adcb
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions docs/custom_markups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,11 @@ your module's ``entry_points``, in the “pymarkups” entry point group.

For example:

.. code-block:: python
.. code-block:: toml
:caption: pyproject.toml
setup(
...
entry_points={
'pymarkups': [
'mymarkup = mymodule:MyMarkupClass',
],
},
...
)
Or using the declarative syntax in ``setup.cfg``:

.. code-block:: ini
[options.entry_points]
pymarkups =
mymarkup = mymodule:MyMarkupClass
[project.entry-points.pymarkups]
mymarkup = "mymodule:MyMarkupClass"
See the `setuptools documentation`_ on entry points for details.

Expand Down

0 comments on commit 8b7adcb

Please sign in to comment.