Skip to content

Commit 44bc8da

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 44bc8da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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=='2.7'"]
2626

2727
setup(
2828
author="Will McGugan",
@@ -33,7 +33,6 @@
3333
extras_require={
3434
"scandir :python_version < '3.5'": ["scandir~=1.5"],
3535
":python_version < '3.4'": ["enum34~=1.1.6"],
36-
":python_version < '3.6'": ["typing~=3.6"],
3736
":python_version < '3.0'": ["backports.os~=0.1"],
3837
},
3938
license="MIT",

0 commit comments

Comments
 (0)