From 4a2ab321bfc694ad5e90774b7b3f9e859ea792e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 01:58:48 +0000 Subject: [PATCH 1/3] Update py-markdown-table requirement from ==0.4.* to ==1.1.* Updates the requirements on [py-markdown-table](https://github.com/hvalev/py-markdown-table) to permit the latest version. - [Release notes](https://github.com/hvalev/py-markdown-table/releases) - [Commits](https://github.com/hvalev/py-markdown-table/compare/v0.4.0...v1.1.0) --- updated-dependencies: - dependency-name: py-markdown-table dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 45517f0507..7c08fb476b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ jsonschema==4.* # rich, py-markdown-table, tabulate are used for pretty printing outputs that would otherwise # be difficult to parse by a human rich==13.* -py-markdown-table==0.4.* +py-markdown-table==1.1.* tabulate==0.9.* # jhub_client, pytest, and pytest-asyncio are used for our health checks From 042607770b08585c92acd1c00a75e63bcb76deb4 Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Tue, 13 Aug 2024 10:53:08 +0100 Subject: [PATCH 2/3] Update import and function call of markdown_table --- deployer/utils/rendering.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployer/utils/rendering.py b/deployer/utils/rendering.py index c5ceed6cb6..41cf06489e 100644 --- a/deployer/utils/rendering.py +++ b/deployer/utils/rendering.py @@ -1,7 +1,7 @@ import os import subprocess -from markdownTable import markdownTable +from py_markdown_table.markdown_table import markdown_table def print_colour(msg: str, colour="green"): @@ -96,7 +96,7 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table support_staging_md_table = ( - markdownTable(formatted_support_staging_matrix) + markdown_table(formatted_support_staging_matrix) .setParams(row_sep="markdown", quote=False) .getMarkdown() ) @@ -118,7 +118,7 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table prod_md_table = ( - markdownTable(formatted_prod_matrix) + markdown_table(formatted_prod_matrix) .setParams(row_sep="markdown", quote=False) .getMarkdown() ) From ca7eb1b2af5120a93d318063e21a8aedf97b5bbb Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Tue, 13 Aug 2024 10:55:08 +0100 Subject: [PATCH 3/3] Update set_params and get_markdown function calls to new format --- deployer/utils/rendering.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployer/utils/rendering.py b/deployer/utils/rendering.py index 41cf06489e..6e98bfffc4 100644 --- a/deployer/utils/rendering.py +++ b/deployer/utils/rendering.py @@ -97,8 +97,8 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table support_staging_md_table = ( markdown_table(formatted_support_staging_matrix) - .setParams(row_sep="markdown", quote=False) - .getMarkdown() + .set_params(row_sep="markdown", quote=False) + .get_markdown() ) else: support_staging_md_table = [] @@ -119,8 +119,8 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table prod_md_table = ( markdown_table(formatted_prod_matrix) - .setParams(row_sep="markdown", quote=False) - .getMarkdown() + .set_params(row_sep="markdown", quote=False) + .get_markdown() ) else: prod_md_table = []