Daniel Hahler
ebb413b6b1
Handle exceptions in load_extensions
...
This will skip those extensions, instead of crashing mopidy, e.g. when
mopidy-mopify fails because of a missing HOME environment variable
during mopidy's tests.
Ref: https://github.com/dirkgroenen/mopidy-mopify/issues/119
2015-11-28 23:51:52 +01:00
Stein Magnus Jodal
149fa15cab
docs: Fix return value reference
...
Fixes #1332
2015-11-22 21:05:32 +01:00
Stein Magnus Jodal
f655fc7009
ext: Make get_{cache,config,data}_dir() class methods
...
Fixes #1275
2015-09-04 10:20:04 +02:00
Stein Magnus Jodal
77e8436f3e
docs: Elaborate on core/{cache,data}_dir usage
...
Related to #1253
2015-08-21 20:01:06 +02:00
Stein Magnus Jodal
0fcf492327
docs: Tweak #1232 docs, update changelog
2015-07-26 12:55:16 +02:00
Dejan Prokić
41db4991aa
ext: Add getter methods for cache, config and data directories
...
Methods do get or create directories
2015-07-25 18:16:35 +02:00
Thomas Adamcik
8b6553ec16
ext: Update validate_extension to validate_extension_data
...
Adds more checks to catch extension errors and importantly tests for exercise
these code paths.
2015-05-11 22:30:50 +02:00
Thomas Adamcik
4566ddd9ae
ext: Add exception logging to extension loading
2015-05-11 21:29:03 +02:00
Thomas Adamcik
8ed9e5f1e0
ext: Catch exceptions in extension helpers
2015-05-11 21:20:37 +02:00
Thomas Adamcik
5550785146
ext: Wrap extension state in a ExtensionData tuple
...
This allows us to do more of the data loading that might fail safely in the
mopidy.ext module instead of having things spread all over the place.
Note that only minimal changes have been made to __main__ to make things work.
Further refactoring should follow.
2015-05-11 00:33:41 +02:00
Thomas Adamcik
5937cdc3b2
ext: Add tests for validate_extension and handle validate_environment failures
2015-05-10 23:15:13 +02:00
Thomas Adamcik
c4e18f4218
ext: Add ext.load_extensions tests and basic error handling
2015-05-10 23:00:13 +02:00
Stein Magnus Jodal
df1636e814
docs: Remove GStreamer mixer example
2015-04-07 00:42:39 +02:00
Stein Magnus Jodal
c4940cbea2
autopep8: Add space after class signature/docstring
2015-04-03 00:05:26 +02:00
Stein Magnus Jodal
c8c44c868b
Merge branch 'release/v0.19.x' into develop
2014-12-23 22:58:54 +01:00
Stein Magnus Jodal
302bb7c221
ext: Fix unpacking of VersionConflict exception
...
Fixes #911
2014-12-23 22:58:19 +01:00
Stein Magnus Jodal
496142c201
py3: Use absolute imports by default
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
c9b0101e76
docs: Make extensiondev example and API docs for validate_environment() match
...
(cherry picked from commit 31c874b3eb )
2014-10-13 23:19:30 +02:00
Stein Magnus Jodal
31c874b3eb
docs: Make extensiondev example and API docs for validate_environment() match
2014-10-12 11:40:59 +02:00
Stein Magnus Jodal
837fb00fb7
Fail early if extension doesn't implement setup()
...
Fixes #813
2014-08-03 23:13:14 +02:00
Stein Magnus Jodal
b754885064
Fix all import order warnings
2014-05-07 20:08:43 +02:00
Stein Magnus Jodal
30dde4e593
ext: Remove old extension API
...
As far as I know, all extensions except Mopidy-Arcam (not currently
maintained) and Mopidy-VKontakte already use the new API. Both of the
remaining extensions got open pull requests with the needed changes to use the
new API.
2014-02-17 11:44:57 +01:00
Stein Magnus Jodal
7ce38de351
ext: Disable extension if a dependency isn't of the correct version
...
Fixes #657
2014-01-21 14:48:43 +01:00
Stein Magnus Jodal
05632c3b8b
backend: Update backend API imports
2014-01-11 18:20:45 +01:00
Stein Magnus Jodal
7ab8fd8861
docs: Reference the correct element
2014-01-11 14:41:53 +01:00
Stein Magnus Jodal
bc4434a8cb
ext: Doc Registry and setup(), deprecate old methods
2014-01-11 14:16:51 +01:00
Stein Magnus Jodal
95ef4c0193
ext: Remove get_library_updaters()
2014-01-11 14:05:54 +01:00
Thomas Adamcik
042868e602
Merge branch 'develop' into feature/extension-registry
...
Conflicts:
mopidy/backends/local/json/actor.py
mopidy/backends/local/json/library.py
2014-01-08 23:50:03 +01:00
Stein Magnus Jodal
0fb7c79524
log: Use loggers named after __name__
2014-01-01 13:31:20 +01:00
Thomas Adamcik
d93d3e6fcd
local: Add local/library config value
...
- Updated library provider to support missing library
- Added config value to select local library provider
- Updated tests to use library config value
2013-12-24 00:22:58 +01:00
Thomas Adamcik
8a94d81c42
ext: Move away from global registry to ease testing.
...
Extension's setup method are now passed the active registry allowing them to
"steal" a list of the registry items they care about. In the case of commands
the registry is passed via args.registry.
2013-12-23 21:46:24 +01:00
Thomas Adamcik
decce4ccf6
ext: Add basic global registry and switch to Extension.setup()
2013-12-22 15:11:15 +01:00
Thomas Adamcik
2d13734dfc
logging: Remove use of root logger
2013-11-26 16:42:04 +01:00
Thomas Adamcik
03c301705d
commands: Move mopidy.utils.command to mopidy.commands
...
- Also adds documenation to Command class.
- Moves scan command to commands to match naming.
2013-11-16 03:02:45 +01:00
Thomas Adamcik
f89169d551
commands: Review changes for wording etc ( #570 )
2013-11-16 02:23:04 +01:00
Thomas Adamcik
5f5c6a841c
ext/backend: Use utils.command directly.
...
Commands don't "belong" to backends or frontends so just leave it at an ext
level and start using mopidy.utils.command directly.
2013-11-14 23:34:06 +01:00
Thomas Adamcik
da4cfebe05
ext: Add get_command and mopidy.backends.base.Command
2013-11-14 23:31:20 +01:00
Thomas Adamcik
518cac5eab
ext/backends: Add get_sub_commands and BaseSubCommandProvider
2013-11-08 22:01:18 +01:00
Stein Magnus Jodal
152c8aa9c5
docs: Fix syntax error
2013-10-28 20:09:42 +01:00
Stein Magnus Jodal
aaef6b867e
docs: Fix build warning
2013-10-07 21:09:29 +02:00
Stein Magnus Jodal
5c7a496dc2
Fix flake8 warnings
2013-08-08 21:09:01 +02:00
Thomas Adamcik
6ac62c6869
local: Review fixes.
2013-07-30 22:59:22 +02:00
Thomas Adamcik
dfcb49a8ba
ext: Add library updaters to extensionss
2013-07-30 00:21:55 +02:00
Stein Magnus Jodal
8c65f34d01
docs: Make it explicit who starts the extension actors
2013-04-26 22:10:13 +02:00
Thomas Adamcik
2f8bc32c14
config: Remove ExtensionConfigSchema
2013-04-24 23:39:14 +02:00
Thomas Adamcik
b7232797ea
config/ext: Accept unicode defaults
2013-04-24 23:31:39 +02:00
Thomas Adamcik
134faddb9e
ext: Typo in docstring
2013-04-16 22:48:40 +02:00
Thomas Adamcik
5a495c590c
ext: Do not compound config enabled and validate_extension
2013-04-16 00:02:31 +02:00
Thomas Adamcik
992b293174
ext: Switch to validate_extension(extension, config)
2013-04-15 23:03:40 +02:00
Thomas Adamcik
ec939d707c
Merge branch 'develop' into feature/config-api-cleanup
...
Conflicts:
mopidy/__main__.py
mopidy/ext.py
2013-04-15 22:54:37 +02:00