Fix rarfile 4.0 dependency conflict
@@ -120,13 +120,14 @@ setup(
'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 []
- ),
+ ) + [
+ 'rarfile<4' if sys.version_info < (3, 6, 0) else 'rarfile',
+ ],
'lint': [
'flake8',
'flake8-blind-except',
@@ -152,7 +153,9 @@ setup(
'mpdstats': ['python-mpd2>=0.4.2'],
'plexupdate': ['requests'],
'web': ['flask', 'flask-cors'],
- 'import': ['rarfile'],
+ 'import': (
+ ['rarfile<4' if (sys.version_info < (3, 6, 0)) else 'rarfile']
+ ),
'thumbnails': ['pyxdg', 'Pillow'] +
(['pathlib'] if (sys.version_info < (3, 4, 0)) else []),
'metasync': ['dbus-python'],
