Thomas Adamcik
08db8829af
config: Move all code to new load function
2013-04-15 23:37:40 +02:00
Thomas Adamcik
78d3888dd1
config: Remove ConfigErrors expception
2013-04-15 23:09:19 +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
Thomas Adamcik
f2b42c53d1
Merge pull request #416 from jodal/feature/split-ext-load-steps
...
Split extension load steps
2013-04-15 13:50:32 -07:00
Thomas Adamcik
7e154bdcbf
ext: Remove filter_enabled_extensions
2013-04-15 22:46:47 +02:00
Stein Magnus Jodal
2793a384c2
ext: Register ext's GStreamer elements
2013-04-15 22:44:11 +02:00
Stein Magnus Jodal
41594c116e
ext: Split load into load+validate
2013-04-15 22:43:51 +02:00
Stein Magnus Jodal
cfd9ddf550
config: Fix typo in logger name
2013-04-15 22:43:01 +02:00
Thomas Adamcik
86cad84f7d
main: Refactor to use underlying _load and _validate functions from config
2013-04-15 22:41:07 +02:00
Thomas Adamcik
611af060f6
config: Add core_defaults to config
2013-04-15 22:26:45 +02:00
Thomas Adamcik
51f89017fe
config: Fix handling of None in Secret
2013-04-15 21:16:19 +02:00
Thomas Adamcik
f5cd806dc5
config: Rename convert to deserialize
2013-04-15 21:16:19 +02:00
Thomas Adamcik
e4873c4516
config: Return convereted values and errors
2013-04-15 21:16:18 +02:00
Stein Magnus Jodal
a9a789aa8a
conf: Rename logging.levels to loglevels
...
Part of #280
2013-04-15 20:40:01 +02:00
Stein Magnus Jodal
ee915fbf7a
docs: Add command line options
2013-04-15 18:51:58 +02:00
Stein Magnus Jodal
90067a2128
docs: Mark command line options with :option:
2013-04-15 18:28:12 +02:00
Stein Magnus Jodal
8939167e88
Merge pull request #414 from adamcik/feature/config-value-kwargs
...
Make config value init kwargs strict.
2013-04-15 09:15:08 -07:00
Thomas Adamcik
fb0810bf9e
config: Specify we want bytes for default configs
2013-04-15 17:43:14 +02:00
Stein Magnus Jodal
a7035063c2
docs: Note on debugging GStreamer
2013-04-15 11:58:54 +02:00
Thomas Adamcik
0ede12f050
ext: Update and fix extensiondev docs with respect to config
2013-04-15 00:08:48 +02:00
Thomas Adamcik
ad25a60ba5
config: Update extensions with respect to config changes
2013-04-15 00:08:23 +02:00
Thomas Adamcik
ee57eb58a3
config: Strict config value init kwargs, also adds Secret
2013-04-15 00:07:31 +02:00
Thomas Adamcik
4826dc7cac
config: Support lists in required validator
2013-04-15 00:07:07 +02:00
Thomas Adamcik
805733a2aa
config: Make tests discoverable and fix broken ones
2013-04-14 23:52:39 +02:00
Stein Magnus Jodal
ceee6630fa
Merge pull request #413 from adamcik/feature/binary-config-reading
...
Treat configs as binary data
2013-04-14 09:57:40 -07:00
Thomas Adamcik
d5b8f2ab02
config: Make List use proper encode/decode helpers
2013-04-14 17:50:16 +02:00
Thomas Adamcik
7ed9b8adab
config: Extract encode and decode helpers from String
2013-04-14 17:34:54 +02:00
Thomas Adamcik
9f18d50ab0
config: Fix escapes in string handling
2013-04-14 17:16:17 +02:00
Thomas Adamcik
6b89051b5e
config: Add encoding support to strings
2013-04-14 16:15:58 +02:00
Thomas Adamcik
bc41d55a88
config: Read configs in binary mode
2013-04-14 16:14:21 +02:00
Stein Magnus Jodal
1debaf3276
docs: Fix class links in Ext API docs
2013-04-14 14:28:09 +02:00
Stein Magnus Jodal
4c08a5dfab
docs: Include Backend class in API docs
2013-04-14 14:27:53 +02:00
Stein Magnus Jodal
be58c38083
docs: Fix link from Ext API to Config API
2013-04-14 14:23:12 +02:00
Stein Magnus Jodal
0ae356f581
docs: Add note about using virtualenv
2013-04-14 14:19:29 +02:00
Stein Magnus Jodal
61e0f941e0
docs: Don't number lists explicitly in rST
2013-04-14 14:19:20 +02:00
Stein Magnus Jodal
96d6badfd7
docs: More reasons for running 'python setup.py develop'
2013-04-14 14:05:19 +02:00
Stein Magnus Jodal
2d0e5ac117
docs: Document config API
2013-04-14 13:58:37 +02:00
Stein Magnus Jodal
6df42299b4
docs: Remove b'' usage in setup.py example
2013-04-14 13:15:42 +02:00
Stein Magnus Jodal
b42fa02195
docs: Fix typo
2013-04-14 13:14:15 +02:00
Stein Magnus Jodal
c481c2fe52
docs: Update changelog
2013-04-14 13:12:16 +02:00
Stein Magnus Jodal
209c8d979a
docs: Document API of Extension class
2013-04-14 13:12:14 +02:00
Stein Magnus Jodal
eeba15e4cc
Remove tox.ini
...
Testing across Python 2.6 and 2.7 with tox is no longer working on systems
which doesn't ship both Python versions by default. I can install Python 2.6 on
a newer Ubuntu system using the deadsnakes PPA, but dependencies installed from
APT, like gobject and gstreamer are still only installed for Python 2.7, thus
making tox useless.
2013-04-14 11:45:38 +02:00
Stein Magnus Jodal
526bc83712
Make setup.py Python 3 compatible
2013-04-14 11:45:26 +02:00
Stein Magnus Jodal
f001142b7d
docs: Update default.conf path
2013-04-14 11:29:47 +02:00
Stein Magnus Jodal
65f14a9cc4
exc: Remove OptionalDependencyError
...
It is no longer needed as the extension loading mechanisms verifies the
environment and presence of dependencies before it tries to import modules that
would cause ImportErrors if optional dependencies are missing.
2013-04-14 11:26:16 +02:00
Stein Magnus Jodal
809b165966
exc: Remove unused SettingsError
2013-04-14 11:06:45 +02:00
Stein Magnus Jodal
f38b806133
utils: Remove unused importing utils
2013-04-14 10:54:26 +02:00
Stein Magnus Jodal
0b1f51f9e8
Merge pull request #412 from adamcik/feature/scanner-to-new-config
...
scanner/config: Convert to new config system (fixes #405 )
2013-04-13 14:56:18 -07:00
Thomas Adamcik
1163d12306
scanner/config: Convert to new config system ( fixes #405 )
2013-04-13 23:15:47 +02:00