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
7620: Start removing dependencies on requests #7643
7620: Start removing dependencies on requests #7643
Conversation
@mistercrunch @villebro Do you want to have a look? Unless I missed something this should be it. |
awesome @sturmer ! I will review and test today. |
Two problems:
The first observation is easy to fix, but the second is more difficult.. @dpgaspar @betodealmeida do you think requests can be replaced with |
Thanks Ville, I'll check that out today. |
I've had a look at Beto's fork of prison and I can't see any usage of requests 🤔 (In the meanwhile, I'll try to fix the dependencies in setup.py and see where I get.) |
Note: This last commit won't work until prison stops depending on requests. |
superset/utils/core.py
Outdated
it seems it is not installed on your system. Aborting... | ||
""") | ||
from sys import exit | ||
exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@villebro I've started messing around with the try-caught imports and it seems the business gets quite deep. For instance, if I don't correctly Would it make sense to remove completely the druid-related code from the |
@sturmer I agree, it's not trivial and there are several options, all with pros and cons. Let me digest this for a while and get back with a proposal. |
Btw, something that can be done now is a PR for https://github.com/dpgaspar/Flask-AppBuilder , i.e. bumping |
Well in the end it didn't go so deep after all. I've managed to have |
30be853
to
5c5b46e
Compare
@sturmer fab 2.1.5 is now in master |
Just restarted the build. Fingers crossed :) |
5c5b46e
to
e996f77
Compare
It's time to heed the advice by Maxime and use the ideas from here to skip tests that depend on PyDruid & co. Will work on that tomorrow. |
@sturmer I have a few ideas of how to do the conditional importing in a simpler way. Should I make a PR to your branch? Optionally if I can have write access to the branch I could contribute commits, making it easier to collaborate. |
Sorry about the conflicts, we just merged a large PR running |
@villebro Sure, I thought you could push to this branch as a project maintainer. If you aren't, do you happen to know how I can authorize you? (I've googled it briefly and couldn't find anything relevant.) @mistercrunch No worries, I'll solve the conflicts. |
9eeee06
to
ab87fc7
Compare
This reverts commit d7e0f166cc3f3dd2496b4a666e177f0c191aeb0f.
d615c28
to
c79031c
Compare
I was also thinking: Maybe we could remove the entries in Log: solved merge conflicts, maybe this CI run will be green 🤞 |
@villebro @mistercrunch @betodealmeida @john-bodley CI green! It is now or never! (Just kidding, take your time -- but if anyone feels like reviewing I'd appreciate feedback. Quoting Ville:
) |
Nice! Merging while the button is green, we really need to make some progress towards releases! Started this issue to track blockers: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CATEGORY
SUMMARY
Make dependency on requests and pydruid connector optional. Note: the first commit is @villebro 's work.
TEST PLAN
It might require some
@unittest.skipUnless
, I will check the result of the Travis tests first.ADDITIONAL INFORMATION
Fixes #7620.
REVIEWERS
@mistercrunch , @villebro