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}:"
38
38
git_show HEAD
39
39
echo
40
40
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.
41
43
echo " Checking pyproject classifiers..."
42
44
python3 ./check_classifiers.py ../pyproject.toml
43
45
echo
Original file line number Diff line number Diff line change 3
3
import urllib .request
4
4
from pathlib import Path
5
5
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
+
6
9
# Step 1: Get pyproject.toml path from args
7
10
if len (sys .argv ) != 2 :
8
11
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