diff --git a/.gitignore b/.gitignore index 8e398ff..b202201 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,7 @@ pip-delete-this-directory.txt htmlcov/ .tox/ .nox/ +.andebox-tox-test.ini .coverage .coverage.* .cache @@ -117,6 +118,9 @@ ENV/ env.bak/ venv.bak/ +# Ide +.vscode/ + # Spyder project settings .spyderproject .spyproject diff --git a/changelogs/fragments/0.2.2.yml b/changelogs/fragments/0.2.2.yml new file mode 100644 index 0000000..d8f5487 --- /dev/null +++ b/changelogs/fragments/0.2.2.yml @@ -0,0 +1,3 @@ +release_summary: | + New release of the ``ans2dev.general`` collection. + The changelog describes all changes made to the modules and plugins included in this collection. \ No newline at end of file diff --git a/changelogs/fragments/193-charts-apply-new-plotly-restriction.yml b/changelogs/fragments/193-charts-apply-new-plotly-restriction.yml new file mode 100644 index 0000000..debb777 --- /dev/null +++ b/changelogs/fragments/193-charts-apply-new-plotly-restriction.yml @@ -0,0 +1,2 @@ +bugfixes: + - charts - apply new ``plotly`` and ``kaleido`` version restriction. Fix ``plotly_get_chrome`` (https://github.com/3A2DEV/ans2dev.general/pull/193). \ No newline at end of file diff --git a/plugins/modules/charts.py b/plugins/modules/charts.py index 24f1bb6..deb6b3c 100644 --- a/plugins/modules/charts.py +++ b/plugins/modules/charts.py @@ -19,8 +19,8 @@ version_added: "0.1.0" requirements: - requests - - plotly < 6.1.0 >= 6.1.1 - - kaleido + - plotly < 6.2.0 + - kaleido < 1.0.0 options: titlechart: description: diff --git a/roles/install_dep/files/requirements.txt b/roles/install_dep/files/requirements.txt index 54450c5..1288830 100644 --- a/roles/install_dep/files/requirements.txt +++ b/roles/install_dep/files/requirements.txt @@ -1,4 +1,4 @@ requests -kaleido -plotly +kaleido < 1.0.0 +plotly < 6.2.0 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 44ba723..307500d 100644 --- a/tests/integration/targets/charts/tasks/tests.yml +++ b/tests/integration/targets/charts/tasks/tests.yml @@ -6,8 +6,8 @@ ansible.builtin.pip: name: - requests - - kaleido - - plotly + - plotly<6.2.0 + - kaleido<1.0.0 - name: Generate a line chart ans2dev.general.charts: diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt index 4329090..fbbccc9 100644 --- a/tests/unit/requirements.txt +++ b/tests/unit/requirements.txt @@ -7,5 +7,5 @@ openpyxl # requirement for the charts module requests -kaleido -plotly \ No newline at end of file +kaleido < 1.0.0 +plotly < 6.2.0 \ No newline at end of file