Closed Ravencentric closed 1 month ago
The size of tests can get pretty big (especially if you have some test data like I did) and the sdist ended up as big as 2MB while the wheel was only 8KB.
[tool.hatch.build.targets.sdist] only-packages = true exclude = [ "tests/", ]
Adding the above got the sdist down to almost the same size as the wheel.
I would also propose defaulting to only-packages = true but it's not a hill I'll die on
only-packages = true
Bit of researching later, other build backends like the pypa/build and flit also include everything, so I guess that's the recommended practice.
The size of tests can get pretty big (especially if you have some test data like I did) and the sdist ended up as big as 2MB while the wheel was only 8KB.
Adding the above got the sdist down to almost the same size as the wheel.
I would also propose defaulting to
only-packages = true
but it's not a hill I'll die on