diff --git a/deployer/utils/rendering.py b/deployer/utils/rendering.py index c5ceed6cb6..6e98bfffc4 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,9 +96,9 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table support_staging_md_table = ( - markdownTable(formatted_support_staging_matrix) - .setParams(row_sep="markdown", quote=False) - .getMarkdown() + markdown_table(formatted_support_staging_matrix) + .set_params(row_sep="markdown", quote=False) + .get_markdown() ) else: support_staging_md_table = [] @@ -118,9 +118,9 @@ def create_markdown_comment(support_staging_matrix, prod_matrix): # Generate a Markdown table prod_md_table = ( - markdownTable(formatted_prod_matrix) - .setParams(row_sep="markdown", quote=False) - .getMarkdown() + markdown_table(formatted_prod_matrix) + .set_params(row_sep="markdown", quote=False) + .get_markdown() ) else: prod_md_table = [] 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