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

Pin old versions of HoloViews to bokeh<2.0 #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

philippjfr
Copy link

@philippjfr philippjfr commented Mar 25, 2020

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.

@philippjfr philippjfr requested a review from a team as a code owner March 25, 2020 18:50
@conda-forge-linter
Copy link

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 (recipe) and found it was in an excellent condition.

@philippjfr
Copy link
Author

Probably going to keep thinking about this, maybe a better approach would be to append ,<2.0.0 to all bokeh version pins (dropping the comma if the pin is simply bokeh).

Copy link
Member

@jakirkham jakirkham left a 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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
record['depends'][i] = current+',<2.0.0'
record['depends'][i] = current + ',<2.0.0'

@jakirkham
Copy link
Member

@conda-forge/core, could someone else please take a look too? 🙂

@philippjfr
Copy link
Author

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?

@jakirkham
Copy link
Member

Not from me. Maybe update the title and OP to reflect the change of scope?

@jjhelmus
Copy link
Contributor

jjhelmus commented Mar 27, 2020

I do not think this logic is sufficient to correct all the holoview packages currently in conda-forge. A number of the earlier version have a minimum bound on boken which would not be correctly with the current matching scheme.

The current bokeh requirements for the holoview packages are:

$ conda search --override-channels -c conda-forge holoviews --info | grep bokeh | sort | uniq 
  - bokeh
  - bokeh >=0.12.14,<=0.12.16
  - bokeh >=0.12.15
  - bokeh >=0.12.15,<=0.12.16
  - bokeh >=0.12.15,<=0.13.0
  - bokeh >=0.12.15,<1.1.0
  - bokeh >=1.0.0,<1.1.0
  - bokeh >=1.1.0
  - bokeh >=1.1.0,<2
  - bokeh >=1.1.0,<2.0.1

Those with a dependency of bokeh >=0.12.15 and bokeh >=1.1.0 would have any upper limit on thee bokeh version with this patch.

@owenlamont
Copy link

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.

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Mar 9, 2023

Sorry for letting this slip, but is this still relevant 2 years later

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.

None yet

6 participants