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
  • Loading branch information
elyezer authored Feb 11, 2021
1 parent d9e47cf commit c675b46
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 c675b46

Please sign in to comment.