Commit graph

2713 commits

Author SHA1 Message Date
Adrian Sampson
bd586c694e merge fix from master 2012-12-30 17:20:32 -08:00
Adrian Sampson
e6e7e93657 disable auto-migration for unit tests 2012-12-30 17:20:18 -08:00
Adrian Sampson
0fdda2fe0b implicit colorization conditional
This simplifies many points in the code where the "color" option had to be
checked by centralizing these checks.
2012-12-30 17:18:14 -08:00
Adrian Sampson
3b56bf4b8b python version classifiers in setup.py 2012-12-30 16:23:37 -08:00
Adrian Sampson
9b4c7f77f4 on OS X, prioritize ~/.config for migration 2012-12-30 16:01:15 -08:00
Adrian Sampson
e893926aae automatic migration on program startup 2012-12-30 14:51:08 -08:00
Adrian Sampson
16bb655d87 migrate database and state file 2012-12-30 11:36:13 -08:00
Adrian Sampson
56c379f36d migrate path formats and replacements 2012-12-29 22:16:30 -08:00
Adrian Sampson
3535305aec migrate import_*, auto*, and plugin names 2012-12-29 21:55:44 -08:00
Adrian Sampson
64f1f7eb3c "migrate" command writes to config.yaml
The command now moves any existing config.yaml file aside and writes the
translated data in its place.
2012-12-29 21:44:27 -08:00
Adrian Sampson
f6cb877cde primitive legacy-config migration command 2012-12-29 17:54:13 -08:00
Adrian Sampson
5d210f755c merge fix from master 2012-12-29 13:07:09 -08:00
Adrian Sampson
082932069f echonest_tempo: catch IO errors (GC-482) 2012-12-26 17:16:59 -08:00
Adrian Sampson
392f9861e0 allow the import log path to be None 2012-12-23 18:06:55 -08:00
Adrian Sampson
123189b393 default file locations
Due mostly to some improvements in Confit, we now have a reasonable way to
define the default filenames of auxiliary data files. These are relative to the
beets config directory (i.e., alongside config.yaml).
2012-12-23 18:01:21 -08:00
Adrian Sampson
51e9c519d4 plugin renames: fuzzy and random
Renamed fuzzy_search to fuzzy and rdm to random. These names should be easier
to remember since they are the same as the commands they provide.

--HG--
rename : beetsplug/fuzzy_search.py => beetsplug/fuzzy.py
rename : beetsplug/rdm.py => beetsplug/random.py
rename : docs/plugins/fuzzy_search.rst => docs/plugins/fuzzy.rst
rename : docs/plugins/rdm.rst => docs/plugins/random.rst
2012-12-23 14:46:20 -08:00
Adrian Sampson
6b000983c3 merge echonest_tempo fix from master 2012-12-23 14:34:08 -08:00
Adrian Sampson
1809de1500 GH-71: changelog note & retry limit 2012-12-21 23:10:30 -08:00
Adrian Sampson
85b62081e4 Merge pull request #71 from zacharydenton/master
echonest_tempo plugin: Don't crash when Echo Nest API rate limit is exceeded.
2012-12-21 22:55:01 -08:00
Zach Denton
e332940247 Wait when Echo Nest API rate limit is exceeded. 2012-12-22 06:31:23 +01:00
Adrian Sampson
11e1fd1bd8 document new Confit-based configuration 2012-12-20 21:56:47 -08:00
Adrian Sampson
3c511b9e27 rename Confit's add_args to set_args 2012-12-20 17:14:04 -08:00
Adrian Sampson
2f5165d4e1 avoid loading a "phantom" plugin
I'm not sure when this was introduced, but "beet version" could list a plugin
called "plugins" because the load_plugins function would pick up the
BeetsPlugin class itself. This was benign but confusing.
2012-12-20 17:08:05 -08:00
Adrian Sampson
a23b685747 use Confit's as_str_seq() instead of get(list)
This validator lets the user write either a real list, like [a, b, c], or just
a whitespace-separated string, like a b c. This is a little nicer for some
settings like "plugins" where the brackets and commas just look like line
noise.
2012-12-20 17:03:51 -08:00
Adrian Sampson
2451571dbe version bump to "1.1b1" 2012-12-19 12:25:48 -08:00
Adrian Sampson
fbcd1d1c18 merge fixes from master 2012-12-19 12:22:23 -08:00
Adrian Sampson
2023344019 Windows: fix relative paths in normpath()
The changes introduced in rc1 caused paths to be syspath-ified before they were
passed to os.path.abspath. The magic prefix caused them to be interpreted as
absolute paths even if they were relative. The fix is, in this *isolated*
case, to use Unicode but prefix-free paths in calls to the os.path.* functions.
Those functions need to act on Unicode objects but seem to be purely syntactic
-- nothing is tripped up by using long filenames without the magic prefix.
2012-12-19 12:19:23 -08:00
Jakob Schnitzer
792b74f4a2 have setup.py install the default config 2012-12-19 18:29:14 +01:00
Adrian Sampson
6d68a4855e per-plugin configuration defaults in __init__()
This uses the new BeetsPlugin.config convenience view heavily. Things are
slowly getting less verbose.
2012-12-18 22:35:44 -08:00
Adrian Sampson
4a5594bec6 begin adding convenient plugin defaults
We need plugins to set their config values at run time instead of module import
time. That is, defaults should be put in the __init__ method. This is easy
enough, but to make it even more convenient, I added a BeetsPlugin.config
field, which is a Confit view into a subsection of the configuration named
after the plugin.
2012-12-18 20:42:42 -08:00
Adrian Sampson
2c45251db9 clean configuration for testing
This way, unit tests will never see a user's global beets configuration.
2012-12-18 20:27:36 -08:00
Adrian Sampson
f606827cb9 fix ordered dictionary methods on views 2012-12-18 20:10:42 -08:00
Adrian Sampson
55cac36d35 sync with latest confit
This includes Confit's shift to using OrderedDict, which needs some debugging.
2012-12-18 20:03:52 -08:00
Adrian Sampson
09c543ed0e remove link to GitHub downloads page
https://github.com/blog/1302-goodbye-uploads
2012-12-17 23:32:55 -08:00
Adrian Sampson
0c49db0f11 fetchart: fix exception when source returns None 2012-12-17 23:22:45 -08:00
Adrian Sampson
5b50f235c6 Added tag 1.0rc1 for changeset c84744f4519b 2012-12-17 18:12:38 -08:00
Adrian Sampson
556a77a506 docs version: 1.0 2012-12-17 18:11:39 -08:00
Adrian Sampson
6082f0162f changelog summary for 1.0rc1 2012-12-17 18:04:39 -08:00
Adrian Sampson
c0461c8847 improve some short plugin descriptions 2012-12-17 17:29:24 -08:00
Adrian Sampson
6a69c13132 exit without traceback on ^C 2012-12-17 17:13:11 -08:00
Adrian Sampson
3a0ac96cc5 zero: Unicode logging calls 2012-12-17 15:08:48 -08:00
Adrian Sampson
f6ff974255 fix non-boolean modifications to boolean MF fields 2012-12-16 13:03:33 -08:00
Adrian Sampson
85600df2be remove outdated test 2012-12-15 13:22:18 -08:00
Adrian Sampson
cbd538de7b combine TempConfigTestCase and ExtraAsserts 2012-12-15 13:21:09 -08:00
Adrian Sampson
39cd1f6c63 switch from context manager to base class
Replaced temp_config context manager with TempConfigTestCase base class. This
lets us clean up even when a test fails.
2012-12-15 13:15:10 -08:00
Adrian Sampson
3e5ef375c8 confit-ify remaining tests except for ConfigTest 2012-12-14 15:23:47 -08:00
Adrian Sampson
ed3a3d1937 confit-ify a bunch more tests 2012-12-14 14:21:06 -08:00
Adrian Sampson
6f19f466fc tests: temporarily modify global configuration 2012-12-14 13:39:14 -08:00
Adrian Sampson
e84a41b550 start fixing up tests for confit overhaul 2012-12-14 13:18:06 -08:00
Adrian Sampson
582851a6fe merge fix from master 2012-12-14 12:57:40 -08:00