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(