summaryrefslogtreecommitdiff
path: root/docs/userguide/entry_point.rst
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-10-16 01:14:51 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-10-16 02:16:12 +0200
commitedfa441febf6c5d8af8973ce952b3a0c19b7b575 (patch)
treeb28e099e3fe17d6c9607608d9d79dc96eb5305a2 /docs/userguide/entry_point.rst
parentb170eac3e00f65c3d56d48d5aa8ee18f00a7baf9 (diff)
downloadpython-setuptools-git-edfa441febf6c5d8af8973ce952b3a0c19b7b575.tar.gz
📝 Recover interdoc links & correct broken syntax
Diffstat (limited to 'docs/userguide/entry_point.rst')
-rw-r--r--docs/userguide/entry_point.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/userguide/entry_point.rst b/docs/userguide/entry_point.rst
index 7f5165a8..d1127ae4 100644
--- a/docs/userguide/entry_point.rst
+++ b/docs/userguide/entry_point.rst
@@ -33,6 +33,8 @@ with ``__init__.py`` as:
and ``__main__.py`` providing a hook:
+.. code-block:: python
+
from . import hello_world
if __name__ == '__main__':
hello_world()
@@ -49,7 +51,7 @@ user-friendly name for installers of the package to execute. Installers
like pip will create wrapper scripts to execute a function. In the
above example, to create a command ``hello-world`` that invokes
``timmins.hello_world``, add a console script entry point to
-``setup.cfg``::
+``setup.cfg``:
.. code-block:: ini
@@ -74,6 +76,8 @@ In addition to ``console_scripts``, Setuptools supports ``gui_scripts``, which
will launch a GUI application without running in a terminal window.
+.. _dynamic discovery of services and plugins:
+
Advertising Behavior
====================
@@ -138,9 +142,9 @@ Some entry points may require additional dependencies to properly function.
For such an entry point, declare in square brakets any number of dependency
``extras`` following the entry point definition. Such entry points will only
be viable if their extras were declared and installed. See the
-:ref:`guide on dependencies management <dependency_management>` for
+:doc:`guide on dependencies management <dependency_management>` for
more information on defining extra requirements. Consider from the
-above example::
+above example:
.. code-block:: ini