From 8f0f0969a050cf02932fa0a87b3c61464325bd1b Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Sun, 3 May 2020 17:19:45 +0500 Subject: [PATCH] Set 'typing' package to be installed only on Python 2.7. This fixes the import issue raised Python 3.7, on using the 'typing 3.6'. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a6ce6f43..3d067f6e 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,8 @@ "Topic :: System :: Filesystems", ] -REQUIREMENTS = ["appdirs~=1.4.3", "pytz", "setuptools", "six~=1.10"] +REQUIREMENTS = ["appdirs~=1.4.3", "pytz", "setuptools", "six~=1.10", "typing; python_version < '3.5'"] + setup( author="Will McGugan", @@ -33,7 +34,6 @@ extras_require={ "scandir :python_version < '3.5'": ["scandir~=1.5"], ":python_version < '3.4'": ["enum34~=1.1.6"], - ":python_version < '3.6'": ["typing~=3.6"], ":python_version < '3.0'": ["backports.os~=0.1"], }, license="MIT",