docs: add comments to classifiers stuff

This commit is contained in:
psychedelicious 2025-05-27 14:59:10 +10:00
parent 6ee5cde4bb
commit 675c990486
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,8 @@ echo -e "${BGREEN}HEAD${RESET}:"
git_show HEAD
echo
# If the classifiers are invalid, publishing to PyPI will fail but the build will succeed.
# It's a fast check, do it early.
echo "Checking pyproject classifiers..."
python3 ./check_classifiers.py ../pyproject.toml
echo

View File

@ -3,6 +3,9 @@ import sys
import urllib.request
from pathlib import Path
# This script checks the classifiers in a pyproject.toml file against the official Trove classifier list.
# If the classifiers are invalid, PyPI will reject the package upload.
# Step 1: Get pyproject.toml path from args
if len(sys.argv) != 2:
print(f"Usage: {sys.argv[0]} path/to/pyproject.toml", file=sys.stderr)