deprecate `tests_require` in favor of extras
@@ -109,24 +109,33 @@ setup(
['colorama'] if (sys.platform == 'win32') else []
),
- tests_require=[
+ extras_require={
+ 'test': [
'beautifulsoup4',
+ 'coverage',
+ 'discogs-client',
'flask',
'mock',
'pylast',
- 'rarfile',
- 'responses',
- 'pyxdg',
+ 'pytest',
'python-mpd2',
- 'discogs-client',
- 'requests_oauthlib'
+ 'pyxdg',
+ 'rarfile',
+ 'responses>=0.3.0',
+ 'requests_oauthlib',
] + (
# Tests for the thumbnails plugin need pathlib on Python 2 too.
['pathlib'] if (sys.version_info < (3, 4, 0)) else []
),
+ 'lint': [
+ 'flake8',
+ 'flake8-blind-except',
+ 'flake8-coding',
+ 'flake8-future-import',
+ 'pep8-naming',
+ ],
# Plugin (optional) dependencies:
- extras_require={
'absubmit': ['requests'],
'fetchart': ['requests', 'Pillow'],
'embedart': ['Pillow'],
