F21.2 — Package metadata for PyPI
| State | Closed |
| Parent | E21 |
| Iteration | Release 7 |
| Start Date | 2026-10-28 |
| Closed Date | 2026-10-28 |
| Predecessors | — |
| Source | Owner request, 2026-10-26 |
Stories: 1 Closed
| Story | State | Depends on |
|---|---|---|
| S21.2.1 — Licence, classifiers and a new version for every package | Closed | — |
Outcome: every package declared the MIT licence, its classifiers and a new version before the first PyPI upload (Release 7). The metadata rules are in the release runbook, and adding a package copies the block.
Design
Each package carries a LICENSE copy, license, license-files and the
classifier block, and the release job's twine check --strict keeps it
complete (F21.3).
S21.2.1 — Licence, classifiers and a new version for every package
State: Closed
Acceptance:
- Every member's wheel and sdist pass
twine check --strictwith twine 6.1 or later, which reads metadata 2.4. - Each wheel's
METADATAhasLicense-Expression: MITandClassifier: Programming Language :: Python :: 3.14. - No member's version equals a version that already has a tag.
Acceptance
set -euo pipefail
rm -rf dist
test -f LICENSE
for d in packages/*/; do
name=$(basename "$d")
cmp -s LICENSE "$d/LICENSE"
uv build -q --package "$name" --out-dir "dist/$name"
version=$(uv version --package "$name" --short)
[ -z "$(git ls-remote --tags origin "refs/tags/$name-v$version")" ]
done
uvx 'twine>=6.1' check --strict dist/*/*
for w in dist/*/*.whl; do
unzip -p "$w" '*.dist-info/METADATA' | grep -qx 'License-Expression: MIT'
unzip -p "$w" '*.dist-info/METADATA' | grep -qx 'Classifier: Programming Language :: Python :: 3.14'
done