-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Pin old versions of HoloViews to bokeh<2.0 #38
base: main
Are you sure you want to change the base?
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Probably going to keep thinking about this, maybe a better approach would be to append |
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.
LGTM. One minor style suggestion below.
not any('pandas' in d for d in record['depends'])): | ||
i = record['depends'].index('bokeh >=1.1.0') | ||
current = record['depends'][i] | ||
record['depends'][i] = current+',<2.0.0' |
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.
record['depends'][i] = current+',<2.0.0' | |
record['depends'][i] = current + ',<2.0.0' |
@conda-forge/core, could someone else please take a look too? 🙂 |
I think I want to do the same for older versions of Panel. Any objections to adding that here or would you prefer a new PR? |
Not from me. Maybe update the title and OP to reflect the change of scope? |
I do not think this logic is sufficient to correct all the The current bokeh requirements for the holoview packages are:
Those with a dependency of |
Interesting, I need to make a near identical change to the jupyterlab-nvdashboard package - it has earlier releases missing a bokeh <2 requirement. I hope I can re-use some similar logic for my problem. |
Sorry for letting this slip, but is this still relevant 2 years later |
So I'm not entirely happy with this patch but I had to use some heuristic to detect HoloViews versions <1.13.0. Since we only just introduced the hard dependency on pandas that was the best heuristic I could find. Happy to hear better suggestions, e.g. using LooseVersion to compare the actual HoloViews version, I've found that can be a little bit brittle at times though.
Also I guess I may have missed some intermediate pins, I know early versions did not pin bokeh at all (yikes) and more recent versions pinned "bokeh >=1.1.0" but there's probably a bunch of intermediate versions I missed since there's so many of them.