ext: Change entry point from 'mopidy.extension' to 'mopidy.ext' to be more consistent
This commit is contained in:
parent
7d78d02d59
commit
2e678ffe8f
@ -126,7 +126,7 @@ the PyPI registration.
|
||||
|
||||
The package must have ``install_requires`` on ``setuptools`` and ``Mopidy``, in
|
||||
addition to any other dependencies required by your extension. The
|
||||
``entry_points`` part must be included. The ``mopidy.extension`` part cannot be
|
||||
``entry_points`` part must be included. The ``mopidy.ext`` part cannot be
|
||||
changed, but the innermost string should be changed. It's format is
|
||||
``ext_name = package_name:Extension``. ``ext_name`` should be a short
|
||||
name for your extension, typically the part after "Mopidy-" in lowercase. This
|
||||
@ -166,7 +166,7 @@ class that will connect the rest of the dots.
|
||||
'pysoundspot',
|
||||
],
|
||||
entry_points={
|
||||
b'mopidy.extension': [
|
||||
b'mopidy.ext': [
|
||||
'soundspot = mopidy_soundspot:Extension',
|
||||
],
|
||||
},
|
||||
|
||||
@ -130,7 +130,7 @@ def check_old_folders():
|
||||
|
||||
def load_extensions():
|
||||
extensions = []
|
||||
for entry_point in pkg_resources.iter_entry_points('mopidy.extension'):
|
||||
for entry_point in pkg_resources.iter_entry_points('mopidy.ext'):
|
||||
logger.debug('Loading extension %s', entry_point.name)
|
||||
|
||||
# TODO Filter out disabled extensions
|
||||
|
||||
2
setup.py
2
setup.py
@ -44,7 +44,7 @@ setup(
|
||||
'mopidy = mopidy.__main__:main',
|
||||
'mopidy-scan = mopidy.scanner:main',
|
||||
],
|
||||
b'mopidy.extension': [
|
||||
b'mopidy.ext': [
|
||||
'http = mopidy.frontends.http:Extension [http]',
|
||||
'lastfm = mopidy.frontends.lastfm:Extension [lastfm]',
|
||||
'local = mopidy.backends.local:Extension',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user