Commit graph

6377 commits

Author SHA1 Message Date
Johnny Robeson
7a1ca51c49 remove b' from platform checks 2016-05-30 20:29:17 -04:00
Johnny Robeson
023ad9f48f remove b' from pipline sentinels 2016-05-30 20:28:36 -04:00
Johnny Robeson
cd1f79340f remove explicit b' from sql query dict key names 2016-05-30 18:50:11 -04:00
Johnny Robeson
32d4545b5e set min-version to 2.7 in setup.cfg 2016-05-30 16:32:34 -04:00
Johnny Robeson
88c5fe6069 add missing space in mediafile comment 2016-05-30 15:44:21 -04:00
Johnny Robeson
9193cb3f45 Revert "readd deprecated plugins search with name == b'name'"
This reverts commit a5921f625c.
2016-05-30 15:43:12 -04:00
Johnny Robeson
62ba435cd6 keyword args can't be bytes, so remove b' prefix 2016-05-30 01:59:17 -04:00
Johnny Robeson
358c60e43b reword a comment in mediafile 2016-05-30 01:58:05 -04:00
Johnny Robeson
c52394c499 fix the rest of b'__main__': 2016-05-30 01:11:37 -04:00
Johnny Robeson
a5921f625c readd deprecated plugins search with name == b'name'
This is to make sure we can still load plugins based off official
plugins between the time of 9c41c39913 and 71b9fd785c
2016-05-30 01:03:18 -04:00
Adrian Sampson
71b9fd785c Revert "Do __name__ comparison with bytes and not unicode"
This reverts commit 9c41c39913.
That commit used byte strings for the `if __name__ == '__main__'` pattern,
which was necessary when we were doing unicode_literals. But it is wrong on
Python 3, and now that we're liberated from unicode_literals, we need to go
back to native strings for this comparison.
2016-05-29 19:19:59 -07:00
Johnny Robeson
662bc1858d use list() on map() when we really want lists not iters 2016-05-29 20:49:06 -04:00
Johnny Robeson
a37a52633b replace deprecated assertNotEquals() with assertNotEqual() 2016-05-29 04:03:54 -04:00
Johnny Robeson
c330f3abc3 replace deprecated assert_() with assertTrue() 2016-05-29 03:56:39 -04:00
Johnny Robeson
78387e3f10 Merge pull request #2024 from jrobeson/remove-unnecessary-library-import
Remove library import from __init__.py
2016-05-28 23:15:21 -04:00
Johnny Robeson
9b2e126132 remove __future__ import from py3 native release.py 2016-05-28 17:24:55 -04:00
Johnny Robeson
93c5e4b5a8 Remove library import from __init__.py 2016-05-28 17:05:48 -04:00
Johnny Robeson
ce8d7bf9f1 remove unittest2 import (py < 2.7) 2016-05-27 23:46:33 -04:00
Markus Unterwaditzer
e82080aec6 Don't cache tox directory
This appears to break pull requests and branches that introduce new
dependencies

See #1484 for example
2016-05-28 01:25:12 +02:00
Markus Unterwaditzer
5dcea9cb0f Merge pull request #2023 from untitaker/python-modernize
Py3 compat: Run python-modernize across the codebase
2016-05-28 00:29:07 +02:00
Markus Unterwaditzer
f2f18d9d56 Fix variable names 2016-05-28 00:26:58 +02:00
Markus Unterwaditzer
5c41a9e767 Remove superfluous parens 2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
0fc07c28bc Stylefixes 2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
9518f28faa Fix numeric types 2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
1ae6ce04dd Run python-modernize across the codebase 2016-05-27 23:13:01 +02:00
Markus Unterwaditzer
7970681289 Merge pull request #2022 from jrobeson/py3-compat-replace-iter.next
use next() instead of iter.next() throughout
2016-05-27 23:12:18 +02:00
Johnny Robeson
b99a6acc54 use next() instead of iter.next() throughout 2016-05-27 17:00:40 -04:00
Johnny Robeson
9e03e7c8cf Merge pull request #2020 from jrobeson/update-gitignore
Rebase our .gitignore on top of gitignore.io
2016-05-27 15:39:48 -04:00
Adrian Sampson
976606f5e6 Changelog and thanks for #2010 2016-05-27 00:18:52 -07:00
Adrian Sampson
59435792e9 Merge pull request #2010 from sumpfralle/web-api-unique-results
web: add API functions for retrieving unique values of specific keys
2016-05-27 00:15:34 -07:00
Adrian Sampson
4d11b9c4f1 Merge pull request #2019 from jrobeson/py3-compat-use-reduce-from-functools
use reduce() from functools
2016-05-27 00:10:15 -07:00
Adrian Sampson
a97c9b8c3c Merge pull request #2017 from jrobeson/py3-compat-exec
use exec() in a python3 compatible way
2016-05-27 00:09:45 -07:00
Adrian Sampson
47f2a4ef31 Merge pull request #2016 from jrobeson/octal-confusions
clear up octal confusions for python 2/3 compat
2016-05-27 00:08:40 -07:00
Johnny Robeson
a3b219d7c2 Rebase our .gitignore on top of gitignore.io 2016-05-27 00:56:00 -04:00
Johnny Robeson
a405a072f7 use reduce() from functools 2016-05-26 23:52:35 -04:00
Johnny Robeson
038c36b974 Merge pull request #2018 from jrobeson/py3-compat-confit-next-if-py3
remove unneeded if PY3 in iter_first
2016-05-26 23:01:23 -04:00
Johnny Robeson
f1ecf0af10 remove unneeded if PY3 in iter_first 2016-05-26 22:40:55 -04:00
Johnny Robeson
d6d7341314 use exec() in a python3 compatible way 2016-05-26 22:37:41 -04:00
Johnny Robeson
7f41d5c188 use 0o prefix when we want octal 2016-05-26 22:31:55 -04:00
Johnny Robeson
cede0ed466 remove leading 0 when octal is unwanted 2016-05-26 22:31:25 -04:00
Adrian Sampson
69b9d2521e Merge pull request #2015 from jrobeson/remove-TYPES_TYPE-from-confit
remove unused TYPES_TYPE from confit
2016-05-26 19:14:12 -07:00
Lars Kruse
d50923553d web: add API functions for retrieving unique values of specific keys
the following API paths are added:
* /item/values/FIELD
* /album/values/FIELD

Both paths will deliver a json dictionary with the key 'values' containing a
list of unique values belonging to the requested table and field.
Sorting is possible by supplying the query argument "sort_key".

This feature is useful for remote clients, e.g. Mopidy-Beets:
* track genres: /item/unique/genre
* track languages: /album/unique/language
* album artists: /album/unique/albumartist?sort_key=albumartist_sort
* album years: /album/unique/year
2016-05-27 04:12:09 +02:00
Johnny Robeson
34f17fbf02 remove unused TYPES_TYPE from confit 2016-05-26 21:35:16 -04:00
Johnny Robeson
6d0727f143 Merge pull request #2014 from jrobeson/cover-more-float-cast-cases
Cover more float types in safe_cast
2016-05-26 01:45:46 -04:00
Johnny Robeson
15cc128233 add safe_cast fixes to the changelog 2016-05-26 01:45:16 -04:00
Johnny Robeson
5963595f32 Add safe_cast tests for . and 1.0.0 2016-05-26 00:57:16 -04:00
Johnny Robeson
18aef27402 Cover more float types in safe_cast
Now input like `.` and `1.0.0` are handled
2016-05-26 00:57:16 -04:00
Adrian Sampson
1e591c8122 Changelog for #2011 2016-05-24 10:39:36 -07:00
Adrian Sampson
1de7836b09 Merge pull request #2011 from sumpfralle/web-api-handle-missing-art
web: handle missing art gracefully
2016-05-24 10:38:26 -07:00
Lars Kruse
be4dc227fc web: handle missing art gracefully 2016-05-24 03:05:51 +02:00