[ci] put ceiling on graphviz in Python 3.7 jobs #6370
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Python 3.7 CI jobs are failing with this error:
Example recent build from
master
: (build link).python-graphviz
has a floor ofpython>=3.8
since xflr6/graphviz#202, but I guess that hasn't extended to theconda-forge
package. That results in a newer version ofpython-graphviz
being pulled into a Python 3.7 environment which contains invalid syntax for Python 3.7.This PR proposes putting a ceiling on
python-graphviz
in LightGBM's Python 3.7 CI jobs.Notes for Reviewers
Looks like this is the result of the latest
python-graphviz
release on conda-forge about 4 hours ago: conda-forge/python-graphviz-feedstock#55.I don't think conda-forge will be interested in a repodata patch to prevent this from happening, so I'm not planning to propose one. Based on this evidence:
I did put up conda-forge/python-graphviz-feedstock#56 proposing adding a
python>=3.8
floor on conda-forge, so maybe if that's merged we could eventually remove this ceiling in CI scripts.If this ceiling on
python-graphviz
causes problems in the future, I'd support turning off the plotting tests for Python 3.7 environments.