From 0975a86549474553a8feabcf43589e5ab2f07cf0 Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Tue, 8 Jun 2021 16:10:44 -0300 Subject: [PATCH] Install `typing` conditionally Updated `typing`'s install requirement in setup.py to only install it in older python 3 versions as described in https://pypi.org/project/typing/, as this is a builtin library since python 3.5. Installing `typing` when it's also available as a builtin library causes issues in some situations as they are no longer in sync, so it shouldn't be required if it can be avoided. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 64bfda8..581cbb1 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ def read(fname): packages=['url_summary'], install_requires=[ 'six', - 'typing', + 'typing;python_version<"3.5"', ], long_description=read('README.rst'), classifiers=[