Should sdists include docs and tests?

It really depends on the project. For most of the projects I’m
involved with, we consider sdists to be our real “source tarball”
artifacts because our sdist release process incorporates information
(versions, authors, changes…) extracted from our Git metadata at
build time. If downstream consumers just used tarred-up copies of
the Git worktree, such as those produced by hosting platforms like
Gitlab or GitHub, then that critical information would be absent.

2 Likes