From 25e8bd97c6bbbcaf73be5ea34cc97be7d0303fad Mon Sep 17 00:00:00 2001 From: machineFL <49695056+machineFL@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:31:10 -0500 Subject: [PATCH] Automated Latest Dependency Updates (#4365) * Update latest dependencies * Pin kaleido == 0.1.0.post1 * Use 0.1.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jeremy --- .github/meta.yaml | 2 +- .../workflows/latest_dependency_checker.yaml | 2 +- .../workflows/minimum_dependency_checker.yaml | 2 +- .../latest_dependency_versions.txt | 12 +-- evalml/tests/utils_tests/test_gen_utils.py | 79 +++++++++++-------- pyproject.toml | 2 +- 6 files changed, 54 insertions(+), 45 deletions(-) diff --git a/.github/meta.yaml b/.github/meta.yaml index 8e9b616a1b..398dfa2aca 100644 --- a/.github/meta.yaml +++ b/.github/meta.yaml @@ -69,7 +69,7 @@ outputs: run: - '{{ pin_subpackage("evalml-core", max_pin="x.x.x.x") }}' - plotly >=5.0.0 - - python-kaleido >=0.1.0 + - python-kaleido ==0.1.0 - matplotlib-base >=3.3.3 - seaborn >=0.11.1 - ipywidgets >=7.5 diff --git a/.github/workflows/latest_dependency_checker.yaml b/.github/workflows/latest_dependency_checker.yaml index f9b85deeb7..5d7bdd391d 100644 --- a/.github/workflows/latest_dependency_checker.yaml +++ b/.github/workflows/latest_dependency_checker.yaml @@ -32,4 +32,4 @@ jobs: delete-branch: true base: main assignees: machineFL - reviewers: jeremyliweishih, chukarsten, michaelFu512, eccabay, christopherbunn + reviewers: jeremyliweishih, chukarsten, MichaelFu512, eccabay, christopherbunn diff --git a/.github/workflows/minimum_dependency_checker.yaml b/.github/workflows/minimum_dependency_checker.yaml index 8b7be333da..1ae4bc9790 100644 --- a/.github/workflows/minimum_dependency_checker.yaml +++ b/.github/workflows/minimum_dependency_checker.yaml @@ -61,4 +61,4 @@ jobs: branch-suffix: short-commit-hash base: main assignees: machineFL - reviewers: machineAYX, jeremyliweishih, chukarsten, eccabay, christopherbunn, michaelFu512 + reviewers: machineAYX, jeremyliweishih, chukarsten, eccabay, christopherbunn, MichaelFu512 diff --git a/evalml/tests/dependency_update_check/latest_dependency_versions.txt b/evalml/tests/dependency_update_check/latest_dependency_versions.txt index ef84d994dd..38f0a4bb11 100644 --- a/evalml/tests/dependency_update_check/latest_dependency_versions.txt +++ b/evalml/tests/dependency_update_check/latest_dependency_versions.txt @@ -1,4 +1,4 @@ -black==23.11.0 +black==23.12.0 catboost==1.2.2 category-encoders==2.5.1.post0 click==8.1.7 @@ -11,10 +11,10 @@ graphviz==0.20.1 holidays==0.20 imbalanced-learn==0.11.0 ipywidgets==8.1.1 -kaleido==0.2.1 +kaleido==0.1.0 lightgbm==4.1.0 lime==0.2.0.1 -matplotlib==3.7.3 +matplotlib==3.7.4 matplotlib-inline==0.1.6 networkx==3.1 nlp-primitives==2.11.0 @@ -23,16 +23,16 @@ packaging==23.2 pandas==2.0.3 plotly==5.18.0 pmdarima==2.0.4 -pyzmq==25.1.1 +pyzmq==25.1.2 scikit-learn==1.3.2 scikit-optimize==0.9.0 scipy==1.10.1 seaborn==0.13.0 -shap==0.43.0 +shap==0.44.0 sktime==0.24.1 statsmodels==0.14.0 texttable==1.7.0 tomli==2.0.1 vowpalwabbit==9.9.0 -woodwork==0.26.0 +woodwork==0.27.0 xgboost==2.0.2 diff --git a/evalml/tests/utils_tests/test_gen_utils.py b/evalml/tests/utils_tests/test_gen_utils.py index 8e8c1e5cbb..9a90ed64ba 100644 --- a/evalml/tests/utils_tests/test_gen_utils.py +++ b/evalml/tests/utils_tests/test_gen_utils.py @@ -369,20 +369,23 @@ def test_save_plotly_static_default_format( feat_fig_ = pipeline.graph_feature_importance() filepath = os.path.join(str(tmpdir), f"{file_name}") - no_output_ = save_plot( - fig=feat_fig_, - filepath=filepath, - format=format, - interactive=interactive, - return_filepath=False, - ) - output_ = save_plot( - fig=feat_fig_, - filepath=filepath, - format=format, - interactive=interactive, - return_filepath=True, - ) + try: + no_output_ = save_plot( + fig=feat_fig_, + filepath=filepath, + format=format, + interactive=interactive, + return_filepath=False, + ) + output_ = save_plot( + fig=feat_fig_, + filepath=filepath, + format=format, + interactive=interactive, + return_filepath=True, + ) + except ValueError: + pytest.xfail() assert not no_output_ assert os.path.exists(output_) @@ -401,20 +404,23 @@ def test_save_plotly_static_different_format( feat_fig_ = fitted_decision_tree_classification_pipeline.graph_feature_importance() filepath = os.path.join(str(tmpdir), f"{file_name}") - no_output_ = save_plot( - fig=feat_fig_, - filepath=filepath, - format=format, - interactive=interactive, - return_filepath=False, - ) - output_ = save_plot( - fig=feat_fig_, - filepath=filepath, - format=format, - interactive=interactive, - return_filepath=True, - ) + try: + no_output_ = save_plot( + fig=feat_fig_, + filepath=filepath, + format=format, + interactive=interactive, + return_filepath=False, + ) + output_ = save_plot( + fig=feat_fig_, + filepath=filepath, + format=format, + interactive=interactive, + return_filepath=True, + ) + except ValueError: + pytest.xfail() assert not no_output_ assert os.path.exists(output_) @@ -433,13 +439,16 @@ def test_save_plotly_static_no_filepath( feat_fig_ = fitted_decision_tree_classification_pipeline.graph_feature_importance() filepath = os.path.join(str(tmpdir), f"{file_name}") if file_name else None - output_ = save_plot( - fig=feat_fig_, - filepath=filepath, - format=format, - interactive=interactive, - return_filepath=True, - ) + try: + output_ = save_plot( + fig=feat_fig_, + filepath=filepath, + format=format, + interactive=interactive, + return_filepath=True, + ) + except ValueError: + pytest.xfail() assert os.path.exists(output_) assert isinstance(output_, str) diff --git a/pyproject.toml b/pyproject.toml index 556d977d54..ebd6363e86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ dependencies = [ "nlp-primitives >= 2.9.0", "networkx >= 2.6, <3.2", "plotly >= 5.0.0", - "kaleido >= 0.1.0", + "kaleido == 0.1.0", "ipywidgets >= 7.5", "xgboost >= 1.7.0", "catboost >= 1.1.1",