Skip to content

Commit 675c990

Browse files
docs: add comments to classifiers stuff
1 parent 6ee5cde commit 675c990

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

scripts/build_wheel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ echo -e "${BGREEN}HEAD${RESET}:"
3838
git_show HEAD
3939
echo
4040

41+
# If the classifiers are invalid, publishing to PyPI will fail but the build will succeed.
42+
# It's a fast check, do it early.
4143
echo "Checking pyproject classifiers..."
4244
python3 ./check_classifiers.py ../pyproject.toml
4345
echo

scripts/check_classifiers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import urllib.request
44
from pathlib import Path
55

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

0 commit comments

Comments
 (0)