diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2020-10-17 10:21:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 10:21:29 -0400 |
| commit | 61e61296d9537c3e82516611ec283e42b1ed0466 (patch) | |
| tree | a59e14b18e987a16e566ed5dec93e7ba84dbe15f /docs | |
| parent | 384bfb366aec36231afe781cce291e4476054d28 (diff) | |
| parent | a7e930914e1d5baed8a646ae5a0be65a9c97d07e (diff) | |
| download | python-setuptools-git-61e61296d9537c3e82516611ec283e42b1ed0466.tar.gz | |
Merge pull request #2410 from imba-tjd/patch-2
docs: code-block style fix
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/userguide/entry_point.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/userguide/entry_point.rst b/docs/userguide/entry_point.rst index d1127ae4..edab4465 100644 --- a/docs/userguide/entry_point.rst +++ b/docs/userguide/entry_point.rst @@ -14,7 +14,7 @@ Console Scripts =============== First consider an example without entry points. Imagine a package -defined thus:: +defined thus: .. code-block:: bash @@ -40,7 +40,7 @@ and ``__main__.py`` providing a hook: hello_world() After installing the package, the function may be invoked through the -`runpy <https://docs.python.org/3/library/runpy.html>`_ module:: +`runpy <https://docs.python.org/3/library/runpy.html>`_ module: .. code-block:: bash @@ -100,7 +100,7 @@ For a project wishing to solicit entry points, Setuptools recommends the module (part of stdlib since Python 3.8) or its backport, `importlib_metadata <https://pypi.org/project/importlib_metadata>`_. -For example, to find the console script entry points from the example above:: +For example, to find the console script entry points from the example above: .. code-block:: python @@ -119,7 +119,7 @@ method to import and load that entry point (module or object). hello-world = timmins:hello_world Then, a different project wishing to load 'my.plugins' plugins could run -the following routine to load (and invoke) such plugins:: +the following routine to load (and invoke) such plugins: .. code-block:: python |
