-
Story
-
Resolution: Done
-
Undefined
-
None
-
False
-
-
False
-
-
Twine 6.1.0 switched to "packaging" to parse and validate metadata of sdists and wheels. The parser is more strict. It compares entries in core metadata with core metadata version and refuses fields that are not present in the metadata version. Several packages now fail to upload.
- hatch-fancy-pypi-readme and soupsieve sdists were generated with a buggy hatchling version. The problem will go away when upstream releases a new version with latest hatchling.
- ply sdist was generated years ago.
hatch-fancy-pypi-readme-24.1.0.tar.gz: ERROR InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.1 ply-3.11.tar.gz: ERROR InvalidDistribution: Invalid distribution metadata: description-content-type introduced in metadata version 2.1, not 1.1 soupsieve-2.6.tar.gz: ERROR InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.3
Let's fix the PKG-INFO files with patches, so we can use latest Twine.
Twine also refuses sdists without PKG-INFO. This problem has been addressed in Fromager 0.43.0. It automatically adds a minimal PKG-INFO file to tar balls without a PKG-INFO.