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

Fallback + Python<3.7 install for importlib_resources #8

Merged
3 commits merged into from
May 11, 2020

Conversation

illusional
Copy link
Contributor

@illusional illusional commented May 8, 2020

Addresses conversation and closes #5.

@ghost
Copy link

ghost commented May 8, 2020

Hi @illusional thanks for the PR. Will this allow installation on Py 2.x? The code will not work on Py 2.x and I don't really want to support Py 2.x .

@illusional
Copy link
Contributor Author

I mean, by itself it won’t. It just came with the block of code I referred to for fallback. I can change the comment to better describe the sitch, maybe like “for python <3.7 without importlib.resources by default’.

I can also change the python requires tag in setup.py if you want that as part of this PR.

cwlformat/formatter.py Outdated Show resolved Hide resolved
@ghost
Copy link

ghost commented May 8, 2020

Hi @illusional anything that ensures pip does not try to install for earlier than 3.6 is fine. The code uses string literals, which were introduced in 3.6

@illusional
Copy link
Contributor Author

Hey @kaushik-work, I added a commit to address your review.

@ghost ghost merged commit 1832cd1 into rabix:master May 11, 2020
@ghost
Copy link

ghost commented May 11, 2020

Thanks so much @illusional !

This pull request was closed.
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

Successfully merging this pull request may close these issues.

importlib.resources breaks Python <3.7
1 participant