diff --git a/tools/pycafe/create_pycafe_links.py b/tools/pycafe/create_pycafe_links.py index cccf939ce..787a9088b 100644 --- a/tools/pycafe/create_pycafe_links.py +++ b/tools/pycafe/create_pycafe_links.py @@ -46,7 +46,6 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None f"""{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl\n""" + extra_requirements_concat ) - print(f"Requirements: {requirements}") # App file app_file_path = os.path.join(directory, "app.py") @@ -62,7 +61,6 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None } for root, _, files in os.walk("./" + directory): for file in files: - # print(root, file) if "app.py" in file: continue file_path = os.path.join(root, file) @@ -70,9 +68,6 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None file_url = f"{base_url}{relative_path.replace(os.sep, '/')}" json_object["files"].append({"name": relative_path, "url": file_url}) - # Final JSON object logging - print(f"Final JSON object: {json.dumps(json_object, indent=2)}") - json_text = json.dumps(json_object) compressed_json_text = gzip.compress(json_text.encode("utf8")) base64_text = base64.b64encode(compressed_json_text).decode("utf8") @@ -133,8 +128,7 @@ def post_comment(urls: list[tuple[str, str]]): # Create the status on the commit commit.create_status(state=state, target_url=url, description=description, context=context) + print(f"Status created for {context} with URL: {url}") # Post the comment with the links post_comment(urls) - - print("All done!")