From 166a4373b044363c4234657915f68041bd25aa95 Mon Sep 17 00:00:00 2001 From: teekuningas Date: Sun, 24 Mar 2024 16:43:06 +0200 Subject: [PATCH] Inspect publish option in plugins before adding them to plugins list --- scripts/update_docs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/update_docs.py b/scripts/update_docs.py index 3797881c..06afa5be 100644 --- a/scripts/update_docs.py +++ b/scripts/update_docs.py @@ -6,7 +6,6 @@ import json import tempfile from io import BytesIO -from pprint import pprint docs_dir = sys.argv[1] @@ -120,6 +119,11 @@ def search_pypi_packages(prefix): response.raise_for_status() config_data = extract_package(download_url, response.content) + # filter out those that are marked not to be published, i.e. + # that have publish == false. + if not config_data.get("publish", True): + continue + package_info[package_name.replace("-", "_")] = { "version": version, "last_updated": metadata["releases"][version][0]["upload_time"].split(