Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
61e61296
Commit
61e61296
authored
Oct 17, 2020
by
Jason R. Coombs
Committed by
GitHub
Oct 17, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2410 from imba-tjd/patch-2
docs: code-block style fix
parents
384bfb36
a7e93091
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/userguide/entry_point.rst
docs/userguide/entry_point.rst
+4
-4
No files found.
docs/userguide/entry_point.rst
View file @
61e61296
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment