From 59388700e54006953a63ed95f806331b0793d3d5 Mon Sep 17 00:00:00 2001 From: Sebastian Trebitz Date: Thu, 19 Nov 2020 19:19:23 +0100 Subject: [PATCH] depend on typing only if Python <= 3.5 --- Pipfile | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index 0adb922..f9574f8 100644 --- a/Pipfile +++ b/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -typing = "*" +typing = {version = "*", python_version = "<= '3.5'"} [dev-packages] pytest = "==3.8.0" diff --git a/setup.py b/setup.py index 603eb71..3b31856 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ author_email='greg.scott.atkin@gmail.com', license='MIT', py_modules=['declxml'], - install_requires=['typing'], + install_requires=['typing; python_version <= "3.5"'], data_files=[('', ['py.typed'])], zip_safe=False, classifiers=[