PyPI upload warning: "your recent upload of '' has file contents that do not match the included RECORD file". Every file hash in the wheel matches RECORD.
The wheel was rewritten after auditwheel repair and the zip carries directory entries (dftracer/, dftracer/bin/, dftracer.libs/). RECORD never lists directories, so the zip name set differs from the RECORD row set. A hash-only check finds nothing.
Drop names ending in / when rewriting the wheel (scripts/wheel/bundle_wheel.py write_wheel). Diagnose with python -m zipfile -l x.whl | grep '/$', or compare the zip names with the RECORD rows.
Ran the fixed write_wheel on the published dftracer-2.1.0.post21-cp310 wheel: 58 files, 58 RECORD rows, set-equal, hashes match, +x mode kept. Full CI wheel build not run.
Also found by searching
PyPI warning: has file contents that do not match the included RECORD file
PyPI says my wheel RECORD does not match even though all sha256 hashes are correct
how do I fix a wheel rewritten after auditwheel repair so PyPI accepts its RECORD
python -m zipfile -l wheel shows directory entries ending in / not listed in RECORD
WARNING: your recent upload of 'pkg.whl' has file contents that do not match the included RECORD file
PyPI email says wheel RECORD mismatch but all hashes in RECORD match after auditwheel repair
how do I find why a rewritten wheel fails PyPI RECORD check even though file hashes are right?
zip directory entries in wheel after repacking cause RECORD file mismatch, python -m zipfile -l shows dir/ names