Johnny Robeson
bbcbcfb178
remove zsh completion script
2016-09-23 02:59:17 -04:00
Johnny Robeson
b42880907e
Don't open library if we got it from the test suite
2016-09-23 02:59:17 -04:00
Johnny Robeson
893a563e26
adapt some tests to click cli test runner
2016-09-23 02:59:16 -04:00
Adrian Sampson
b762eed171
Remove home-made bash completion infrastructure
...
In favor of Click's built-in support.
The script is now generated using `_BEET_COMPLETE=source beet` instead of
`beet completion`. We should strongly consider restoring the `beet completion`
command just for backwards compatibility. All of this needs to be heavily
publicized in the changelog.
2016-09-23 02:59:16 -04:00
Johnny Robeson
944808016e
Switch to Click test runner
2016-09-23 02:59:16 -04:00
Adrian Sampson
87e9e806f8
Basic port to Click (TODO: fill in desc)
2016-09-23 02:59:16 -04:00
Johnny Robeson
40b6db2ef3
Add click dependency
2016-09-23 02:59:16 -04:00
Johnny Robeson
6b73aa25d2
Use b'' in discogs medium query regex
...
Since the first arg to `re.sub()` is bytes, thus must be the
replacement string.
2016-09-20 17:38:39 -04:00
Johnny Robeson
009108627d
Add python 3.6-dev to Travis ( #2198 )
...
[appveyor skip]
2016-09-18 17:57:43 -04:00
Johnny Robeson
49fc2ac5e9
Use run_with_command in write_cmd in test_ui.py
2016-09-18 03:31:00 -04:00
Johnny Robeson
ec4eb8368e
Replace capture_stdout in test_config_command
...
I didn't see a good reason not to use `run_with_command` here
2016-09-18 03:29:04 -04:00
Johnny Robeson
ddaa94003b
add yaml output command func to config_command tests
2016-09-18 03:17:44 -04:00
Johnny Robeson
d585019ab3
Remove indirect run_command() in test_info.py
...
This was breaking the `info` command in the click branch. I assume
that was because `run_command` was aliased to `run_with_output`.
It was also confusing in its own right, so I consider it a win
either way.
2016-09-17 21:59:56 -04:00
Johnny Robeson
bdb2de69bb
add python 3.6 to tox.ini
2016-09-16 23:29:29 -04:00
Johnny Robeson
db782a2404
wrap 2 results in a list in cue and random plugin
2016-09-14 00:40:53 -04:00
Johnny Robeson
7c33d6858c
Merge pull request #2196 from codyopel/py3/fromfilename
...
fromfilename: fix dict view conversion for python3 (fix #2195 )
2016-09-12 21:53:17 -04:00
Cody W. Opel
d384b07914
fromfilename: fix dict view conversion for python3 ( fix #2195 )
...
dict.values() returns a view rather than a list in python3
2016-09-12 09:29:32 -04:00
Johnny Robeson
925d7bebf9
drop vararg_callback as the only caller is gone.
...
It was used only in the duplicates plugin
2016-09-10 16:59:04 -04:00
Johnny Robeson
cc5012fda2
slight language tweak in duplicates plugin docs
...
Suggested by @sampsyo in https://github.com/beetbox/beets/pull/2193
2016-09-10 16:53:53 -04:00
Johnny Robeson
55f37bc127
Merge pull request #2193 from jrobeson/replace-varargs_callback-in-duplicates
...
Use -k for each arg in duplicates plugin
2016-09-10 16:50:29 -04:00
Johnny Robeson
079d083a4b
add docs and changelog for --keys change
2016-09-10 05:13:06 -04:00
Adrian Sampson
d00c0fb5cf
Replace varargs_callback in duplicates
...
Now you just use `-k KEY1 -k KEY2`, which seems more natural to me anyway.
2016-09-10 05:13:06 -04:00
Johnny Robeson
b779917043
ConfigView.set_args() can now accept dicts
...
Credit goes to @duailibe for implementing this in the click branch
2016-09-10 02:42:17 -04:00
Adrian Sampson
b63ac3aef7
Fix a missing Python 3 dict view conversion
2016-09-09 20:12:05 -04:00
Johnny Robeson
da0e15b71e
fold capture_stdout into _run_list() in test_ui
2016-09-09 18:55:47 -04:00
Adrian Sampson
f8a8388e0c
Avoid using None when format is unspecified
2016-09-07 21:47:31 -04:00
Adrian Sampson
eb58575024
Unicode formats in a test
2016-09-07 21:46:07 -04:00
Adrian Sampson
15a5512ea5
Require Unicode format strings
...
Fallout from #2188 . Following @jrobeson's suggestion, I just turned the check
in LibModel.__format__ into an assert. This turned up a few badly-behaved
clients, which are also fixed.
2016-09-07 21:42:59 -04:00
Adrian Sampson
ed8d04f594
Unicode templates in duplicates ( fix #2188 )
2016-09-07 21:04:05 -04:00
Adrian Sampson
139d22fe9f
Template strings must always be unicode ( #2188 )
...
This seems to be half the problem.
2016-09-07 21:01:24 -04:00
Johnny Robeson
7a2bdf502f
s/utf8/utf-8/ in all encoding/decoding contexts
...
This matches up with the python documentation.
2016-09-06 23:10:24 -04:00
Johnny Robeson
632240c01c
s/linux2/linux/ as platform name in test_library
...
This causes no issues for us now, and is more forward compatible.
2016-09-05 22:57:38 -04:00
Johnny Robeson
2edc58c032
Merge pull request #2176 from jrobeson/bug-2172-2
...
Compare case insensitive paths with SUBSTR and BYTELOWER
2016-09-04 22:40:31 -04:00
Johnny Robeson
27f48eff0f
Merge pull request #2118 from jrobeson/add-gstreamer-to-travis
...
Add gstreamer deps to travis config
2016-08-31 23:16:02 -04:00
Johnny Robeson
25fb0304a6
Add gstreamer deps to travis config
...
[appveyor skip]
2016-08-31 22:59:29 -04:00
Johnny Robeson
f9a8be1241
Merge pull request #2180 from jrobeson/py3-functemplate-ast
...
PY3 compatibility for the functemplate AST compiler
2016-08-30 04:03:24 -04:00
Johnny Robeson
2cc7225805
functemplate AST: enable the compiler on py3
2016-08-30 03:49:58 -04:00
Johnny Robeson
6234da31a8
functemplate AST: py3 versions of FunctionDef/Call
...
Note that `ast.Call` only changed signatures on py 3.5.
2016-08-30 03:49:17 -04:00
Johnny Robeson
38ec80b35e
functemplate AST: only encode ident names on py2
...
They are passed as `unicode` types, but the AST only accepts py2
strings.
2016-08-30 03:42:29 -04:00
Johnny Robeson
4b7a44a9b5
functemplate AST: use py2/3 compatible string type
...
It was previously forced to `unicode`, but now uses the appropriate
string type for the executing Python version.
2016-08-30 03:40:51 -04:00
Adrian Sampson
65c65ae8f7
Merge pull request #2179 from stefanor/tyop
...
Correct a typo
2016-08-29 16:34:08 -07:00
Stefano Rivera
bcb1f8036a
Correct a typo
...
Spotted by lintian which runs spellchecks on man pages.
2016-08-29 16:29:32 -07:00
Johnny Robeson
cda239a06d
pass arguments to FunctionDef as keyword args
...
This makes it a lot easier to read.
2016-08-29 18:31:43 -04:00
Johnny Robeson
15be20c701
Compare case insensitive paths with SUBSTR and BYTELOWER
...
Create a custom `bytelower` sqlite function so we can compare bytestrings in a semi
case insensitive fashion. This is to work around sqlite builds are that compiled
with `-DSQLITE_LIKE_DOESNT_MATCH_BLOBS`.
See https://github.com/beetbox/beets/issues/2172 for details.
2016-08-29 17:24:53 -04:00
nathdwek@laptop
ed0adc2b63
Add more doc and changelog for #2175
2016-08-26 18:18:35 +02:00
nathdwek@laptop
3acd44260a
Apply #2175 to mpdstats to keep consistency
2016-08-26 18:17:37 +02:00
Nathan Dwek
c872adf5ca
Merge pull request #2175 from tarruda/mpdupdate-use-mpd_host
...
mpdupdate: Use `$MPD_HOST` environment variable.
2016-08-26 16:57:24 +02:00
Thiago de Arruda
9963fd0432
mpdupdate: Support $MPD_HOST environment variable.
...
This environment variable is also used by mpc. See
http://linux.die.net/man/1/mpc for details.
2016-08-26 11:36:39 -03:00
Marvin Steadfast
5592499b31
embyupdate: backwards compatible hostname
...
`host` takes `localhost`, `http://localhost ` and `https://`.
2016-08-26 12:28:48 +02:00
Marvin Steadfast
a282d4abc5
embyupdate: Fix authentication header problem
...
There was a problem with the authentication header in the latest
versions. The header creation function changed to fix that. Username and
passwort authentication should work again.
The `host` config variable takes now a full hostname. For example
`http://localhost ` instead of just `localhost`. This makes it easier to
use https hosts.
2016-08-26 10:29:08 +02:00