syrusakbary/promise

Only including 'typing' in install_requires for Python <3.5

edmorley opened this issue · 1 comments

The typing module is available in Python 3.5 and up, so doesn't need to be installed from PyPI on those versions.

I believe the following should work:

    install_requires=[
        'typing; python_version < "3.5"',
        ...
    ],

(Similar to: https://github.com/django/channels/blob/db1b3ba951ef2c3cff6e91ed94d4115d479c0d4f/testproject/setup.py#L10)

Fixed by #61.