From 6543683c0c4284774aad3dfaf9c0a87dd60e7ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Redzy=C5=84ski?= Date: Tue, 26 Jul 2022 12:34:55 +0200 Subject: [PATCH] project: update dvc render and dvclive test dependencies --- dvc/commands/plots.py | 2 ++ setup.cfg | 4 ++-- tests/integration/plots/test_plots.py | 8 +++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dvc/commands/plots.py b/dvc/commands/plots.py index 7a5c1570c6..8e99a7e7cd 100644 --- a/dvc/commands/plots.py +++ b/dvc/commands/plots.py @@ -229,6 +229,8 @@ class CmdPlotsTemplates(CmdBase): "confusion_normalized", "scatter", "smooth", + "bar_horizontal_sorted", + "bar_horizontal", ] def run(self): diff --git a/setup.cfg b/setup.cfg index 249f31d91e..a683332a1f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -66,9 +66,9 @@ install_requires = fsspec[http]>=2021.10.1 aiohttp-retry>=2.4.5 scmrepo==0.0.25 - dvc-render==0.0.6 + dvc-render==0.0.9 dvc-task==0.1.0 - dvclive>=0.7.3 + dvclive>=0.10.0 dvc-data==0.1.5 [options.extras_require] diff --git a/tests/integration/plots/test_plots.py b/tests/integration/plots/test_plots.py index 21d138ab43..262020f522 100644 --- a/tests/integration/plots/test_plots.py +++ b/tests/integration/plots/test_plots.py @@ -48,9 +48,11 @@ def extract_vega_specs(html_path, plots_ids): reader = BeautifulSoup(content, features="html.parser") for plot_id in plots_ids: - clean_id = Renderer.remove_special_chars(plot_id) - div_id = f"plot_{clean_id}" - script = _remove_blanks(reader.find("div", id=div_id).script.text) + script = _remove_blanks( + reader.find( + "div", id=Renderer.remove_special_chars(plot_id) + ).script.text + ) result[plot_id] = json.loads( script.split("; vegaEmbed")[0].replace("var spec = ", "") )