Skip to content

Commit

Permalink
Require future-annotations on Python <3.7
Browse files Browse the repository at this point in the history
In order to use `from __future__ import annotations` on Python 3.6 we need to install the future-annotations package.

Fix sphinx-contrib#42

Signed-off-by: Elyézer Rezende <[email protected]>
  • Loading branch information
elyezer committed Feb 11, 2021
1 parent d9e47cf commit 08e7e3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 08e7e3f

Please sign in to comment.