Keep sdist in sync with git (include all files in source build, including docs, tests and examples)#1561
Conversation
|
With this change, the source dist will also include the following files: I'm not sure that is the desired behavior. It also starts including docs/ide, which tbh probably should have been removed by now? |
|
Right, git-related configuration files do not need to be in the sdist. I agree it makes sense to exclude the ide especially if it's not really supported.
|
|
In that vain, why exclude |
|
Either way, looks good to me, and seems like generally the Python community agrees with the "include everything" approach. @MegaIng Do you have an opinion? |
|
How much larger is the sdist with this change? Also, I assume that none of the new files end up in the resulting wheel? Generally I weakly agree that making the sdist more complete is a good idea. |
|
Good question. Seems like it grows the zip from 260 KB to 365 KB. Unzipped, from 0.96 MB to 1.3 MB. The wheel is 113 KB, so I assume it's not affected. (though for some reason, I can't reproduce it. Now if I try to build the existing master from scratch, it collects all the files, as if I was in the new branch! very odd) edit: confirmed with a fresh build. this PR brings the zip from 256 KB to 364 KB. The wheel remains the same. |
8e7895e to
ad0ea5f
Compare
It wasn't referenced by any other files, but since we have roughly settled on completeness, I have included it again. As such, someone with the sdist should be able to produce the full set of documentation that is on Read the Docs. My measurements of the sdist with the latest changes are: Zipped: 388 KB The wheel is not affected by this PR. |
|
Thanks @chanicpanic ! |
This PR adopts setuptools-scm's file finder functionality to automatically include files tracked by git in the sdist. The version-extraction functionality is not enabled.
Resolves #1559.
Result of check-sdist without nearley submodule before:
After: