deprecate tests_require in favor of extras

This commit is contained in:
Jacob Pavlock 2020-07-06 17:02:23 -07:00
parent aedd77317f
commit 723e04ebb3

View file

@ -109,24 +109,33 @@ setup(
['colorama'] if (sys.platform == 'win32') else []
),
tests_require=[
'beautifulsoup4',
'flask',
'mock',
'pylast',
'rarfile',
'responses',
'pyxdg',
'python-mpd2',
'discogs-client',
'requests_oauthlib'
] + (
# Tests for the thumbnails plugin need pathlib on Python 2 too.
['pathlib'] if (sys.version_info < (3, 4, 0)) else []
),
# Plugin (optional) dependencies:
extras_require={
'test': [
'beautifulsoup4',
'coverage',
'discogs-client',
'flask',
'mock',
'pylast',
'pytest',
'python-mpd2',
'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:
'absubmit': ['requests'],
'fetchart': ['requests', 'Pillow'],
'embedart': ['Pillow'],