From ece57265674c65663f48855e7391d6ef4c1e171d Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Thu, 30 May 2019 12:47:18 +1000 Subject: [PATCH] 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. --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5a705b982b..79278f8be1 100755 --- a/setup.py +++ b/setup.py @@ -115,10 +115,12 @@ def build_manpages(): '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={