With no sdist target configured, hatchling walked the whole working tree and included whatever it found. The resulting 8.9MB sdist carried 448 files from a virtualenv left in the repository root, plus .claude/ and .gitmodules, while omitting the test dumps -- those are gitignored, so the tests it did ship could not have run. List the sdist contents explicitly. It is now 40KB of source, README and COPYING, and both it and the wheel pass twine check. Tests run from a clone rather than from the sdist, so test/ is deliberately excluded. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> (cherry picked from commit 28406563bcdb7b2f31412e511ea30f66eb3620b5)
1.8 KiB
1.8 KiB