Skip to content

Commit

Permalink
Describe entry points using setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 2, 2022
1 parent 3a5f960 commit 0c1aad1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions keyring/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,11 @@ def _load_plugins():
Locate all setuptools entry points by the name 'keyring backends'
and initialize them.
Any third-party library may register an entry point by adding the
following to their setup.py::
following to their setup.cfg::
entry_points = {
'keyring.backends': [
'plugin_name = mylib.mymodule:initialize_func',
],
},
[options.entry_points]
keyring.backends =
plugin_name = mylib.mymodule:initialize_func
`plugin_name` can be anything, and is only used to display the name
of the plugin at initialization time.
Expand Down

0 comments on commit 0c1aad1

Please sign in to comment.