ext: Change entry point from 'mopidy.extension' to 'mopidy.ext' to be more consistent

This commit is contained in:
Stein Magnus Jodal 2013-04-02 12:07:35 +02:00
parent 7d78d02d59
commit 2e678ffe8f
3 changed files with 4 additions and 4 deletions

View File

@ -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',
],
},

View File

@ -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

View File

@ -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',