Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only including 'typing' in install_requires for Python <3.5 #40

Closed
edmorley opened this issue Aug 11, 2017 · 1 comment
Closed

Only including 'typing' in install_requires for Python <3.5 #40

edmorley opened this issue Aug 11, 2017 · 1 comment

Comments

@edmorley
Copy link

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)

@edmorley
Copy link
Author

Fixed by #61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant