-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix: Support importlib_metadata v5.0.0 #5840
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
fix: Support importlib_metadata v5.0.0 #5840
Conversation
importlib_metadata removed compatibility shims for deprecated entry point interfaces. see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500 Filter result of entry_points function by group parameter. see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points
e7cdc49 to
ed4b893
Compare
In circleci frontend-unit-tests, old node image is used and python 3.5 is used. Support both old version and latest version by checking ijmportlib_metadata version
ed4b893 to
1a525b9
Compare
|
@susodapop ping |
|
@susodapop could you please merge this one? |
|
This one seems like the better approach, rather than #5831. @susodapop I'm inclined to merge this, if you have no objections? |
|
i want this!! |
|
@justinclift one month has passed :( |
|
I've written elsewhere in the repo issues and PR's that I'm not actively contributing to Redash at the moment. Best to ping @arikfr |
|
@susodapop Ahhh, sorry. Was on leave, and missed that. I'll merge this pro-actively for now, and if it causes issues we can investigate/fix them over time. Hmm, on that note I saw some Cypress problems recently, but haven't looked into them at all. Something to add to the ToDo list. 😉 |
* fix: Support importlib_metadata v5.0.0 importlib_metadata removed compatibility shims for deprecated entry point interfaces. see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500 Filter result of entry_points function by group parameter. see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points * fix: Enable to run in older python version In circleci frontend-unit-tests, old node image is used and python 3.5 is used. Support both old version and latest version by checking ijmportlib_metadata version
* fix: Support importlib_metadata v5.0.0 importlib_metadata removed compatibility shims for deprecated entry point interfaces. see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500 Filter result of entry_points function by group parameter. see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points * fix: Enable to run in older python version In circleci frontend-unit-tests, old node image is used and python 3.5 is used. Support both old version and latest version by checking ijmportlib_metadata version
What type of PR is this?
Description
importlib_metadata removed compatibility shims for deprecated entry point interfaces.
see: https://github.com/python/importlib_metadata/blob/main/CHANGES.rst#v500
Filter result of entry_points function by group parameter.
see: https://importlib-metadata.readthedocs.io/en/latest/api.html#importlib_metadata.entry_points
It seems #5831 fix problem by using old version, but supporting new version should be encouraged.
redash support Nodejs v14.17 and test frontend in circleci with circleci/node:14.17.
This include old python v3.5 and require some dirty hack. 034fcc2
If changing image used in circleci is better, I prefer to handle it in another pull request.
How is this tested?
Related Tickets & Documents
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
percy in CI is failed but it is caused by #5691 and it seems OK.