Skip to content

Commit 8f0f096

Browse files
committed
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'.
1 parent 6fc6ac5 commit 8f0f096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"Topic :: System :: Filesystems",
2323
]
2424

25-
REQUIREMENTS = ["appdirs~=1.4.3", "pytz", "setuptools", "six~=1.10"]
25+
REQUIREMENTS = ["appdirs~=1.4.3", "pytz", "setuptools", "six~=1.10", "typing; python_version < '3.5'"]
26+
2627

2728
setup(
2829
author="Will McGugan",
@@ -33,7 +34,6 @@
3334
extras_require={
3435
"scandir :python_version < '3.5'": ["scandir~=1.5"],
3536
":python_version < '3.4'": ["enum34~=1.1.6"],
36-
":python_version < '3.6'": ["typing~=3.6"],
3737
":python_version < '3.0'": ["backports.os~=0.1"],
3838
},
3939
license="MIT",

0 commit comments

Comments
 (0)