Make pathlib dependency in tests conditional

We already do this in the optional dependency section so this shouldn't cause any problems. It's only used by the `thumbnails` plugin.
This commit is contained in:
Carl Suster 2019-05-30 12:47:18 +10:00 committed by GitHub
parent 5d5fc09b2b
commit ece5726567
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,10 +115,12 @@ setup(
'rarfile',
'responses',
'pyxdg',
'pathlib',
'python-mpd2',
'discogs-client'
],
] + (
# 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={