Skip to content

Commit

Permalink
Inspect publish option in plugins before adding them to plugins list
Browse files Browse the repository at this point in the history
  • Loading branch information
teekuningas committed Mar 24, 2024
1 parent d4d7dbd commit 166a437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/update_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import json
import tempfile
from io import BytesIO
from pprint import pprint


docs_dir = sys.argv[1]
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 166a437

Please sign in to comment.