Skip to content

Commit

Permalink
Set 'typing' package to be installed only on Python 2.7. This fixes t…
Browse files Browse the repository at this point in the history
…he import issue raised

Python 3.7, on using the 'typing 3.6'.
  • Loading branch information
awais786 committed May 4, 2020
1 parent 6fc6ac5 commit 8f0f096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 8f0f096

Please sign in to comment.