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