File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ echo -e "${BGREEN}HEAD${RESET}:"
3838git_show HEAD
3939echo
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.
4143echo " Checking pyproject classifiers..."
4244python3 ./check_classifiers.py ../pyproject.toml
4345echo
Original file line number Diff line number Diff line change 33import urllib .request
44from 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
710if len (sys .argv ) != 2 :
811 print (f"Usage: { sys .argv [0 ]} path/to/pyproject.toml" , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments