What files should be included in source and binary distributions? #3051
-
(eg. source files, configuration files, test files, test data, README.md, pyproject.toml, setup.cfg, LICENSE, requirements.txt, test-requirements.txt, documentation files). Should this information be in setuptools documentation somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @mcarans, I will try to give my personal opinion bellow, but first I will take the opportunity to make a (not so brief) introduction: I like to imagine
In general the stages (A) and (B) are mostly identical (with the exception of metadata files), so for 90% of the cases The classical examples of this With that in mind, I would say that the main purpose of an On the other hand With this introduction out of the way, my personal approach is:
|
Beta Was this translation helpful? Give feedback.
Hi @mcarans, I will try to give my personal opinion bellow, but first I will take the opportunity to make a (not so brief) introduction:
I like to imagine
sdists
andwheel
as different optimisation stages between the code that you write in a VCS repository and the files that ended up installed in the user machine, more or less like the diagram bellow:In general the stages (A) and (B) are mostly identical (with the exception of metadata files), so for 90% of the cases
sdist
s will be only another way of distributing your source code. However in some cases you might want to optimise a little bit…