From 08e7e3f692c4186dc68ebd10cdc0bae433c0a239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ely=C3=A9zer=20Rezende?= Date: Thu, 11 Feb 2021 07:32:43 -0800 Subject: [PATCH] Require future-annotations on Python <3.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to use `from __future__ import annotations` on Python 3.6 we need to install the future-annotations package. Fix #42 Signed-off-by: Elyézer Rezende --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 788b54f..cb97418 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,11 @@ # Do not change the variable name. It's parsed by doc/conf.py script. version = '0.1.7' -requires = ['Sphinx >= 1.2', 'six'] +requires = [ + 'future-annotations;python_version<"3.7"', + 'Sphinx >= 1.2', + 'six' +] def readme():