From e25275eeba384fbf19de2a4660bdd402b4e041b1 Mon Sep 17 00:00:00 2001 From: Nocchia <133043574+NomakCooper@users.noreply.github.com> Date: Tue, 27 May 2025 19:23:39 +0200 Subject: [PATCH] charts - fix plotly 6.1.1 requirements (#191) * charts - fix plotly 6.1.1 requirements * charts - add new changelog fragments (cherry picked from commit a09d320b740ee829e4fb94a765421be7b46362f7) --- changelogs/fragments/191-charts-remove-plotly-restriction.yml | 2 ++ plugins/modules/charts.py | 2 +- roles/install_dep/files/requirements.txt | 2 +- tests/integration/targets/charts/tasks/tests.yml | 2 +- tests/unit/requirements.txt | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 changelogs/fragments/191-charts-remove-plotly-restriction.yml diff --git a/changelogs/fragments/191-charts-remove-plotly-restriction.yml b/changelogs/fragments/191-charts-remove-plotly-restriction.yml new file mode 100644 index 0000000..70d8614 --- /dev/null +++ b/changelogs/fragments/191-charts-remove-plotly-restriction.yml @@ -0,0 +1,2 @@ +bugfixes: + - charts - remove ``plotly`` version restriction. charts module now works fine with plotly ``6.1.1`` (https://github.com/3A2DEV/ans2dev.general/pull/191). \ No newline at end of file diff --git a/plugins/modules/charts.py b/plugins/modules/charts.py index 452d827..24f1bb6 100644 --- a/plugins/modules/charts.py +++ b/plugins/modules/charts.py @@ -19,7 +19,7 @@ version_added: "0.1.0" requirements: - requests - - plotly < 6.1.0 + - plotly < 6.1.0 >= 6.1.1 - kaleido options: titlechart: diff --git a/roles/install_dep/files/requirements.txt b/roles/install_dep/files/requirements.txt index 8215a50..54450c5 100644 --- a/roles/install_dep/files/requirements.txt +++ b/roles/install_dep/files/requirements.txt @@ -1,4 +1,4 @@ requests kaleido -plotly < 6.1.0 +plotly openpyxl \ No newline at end of file diff --git a/tests/integration/targets/charts/tasks/tests.yml b/tests/integration/targets/charts/tasks/tests.yml index 02b4b41..44ba723 100644 --- a/tests/integration/targets/charts/tasks/tests.yml +++ b/tests/integration/targets/charts/tasks/tests.yml @@ -7,7 +7,7 @@ name: - requests - kaleido - - plotly<6.1.0 + - plotly - name: Generate a line chart ans2dev.general.charts: diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index c43eb02..4329090 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -8,4 +8,4 @@ openpyxl # requirement for the charts module requests kaleido -plotly < 6.1.0 \ No newline at end of file +plotly \ No newline at end of file