Re: Should an sdist/MANIFEST.in include docs and tests?

Bert JW Regeer <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
Speaking as a maintainer of various different packages for the Pylons project, we include the following in our sdists:

- source code for the package
- tests for the package
- documentation for the package

and of course the license/history/changelog/everything you'd theoretically need to create a fork (minus .git). Our sdists are pretty big as a result.

In our wheels we ship:

- source code for the package/software

And nothing else, tests are not included in the wheel. Some people do ship tests with their wheel, but we try not to, to keep wheel sizes small.

It comes down to personal preference, we tend to think that source dist means exactly that, a source distribution.

Bert

> On Sep 8, 2018, at 17:08, Segev Finer <[email protected]> wrote:
> 
> What should really be included in an sdist via MANIFEST.in? Besides the obvious files required for a functioning package (Anything not caught by the default rules required for the package to function that is) and obviously LICENSE.txt and similar.
> 
> A package's source tree, more often than not, includes other files such as documentation, tests, examples, a random assortment of other text files, etc. Should docs & tests, in particular, be included in an sdist via MANIFEST.in? Should other files be added too? Or maybe the sdist should be kept to a minimum?
> 
> This is not clearly discussed in the packaging guide: https://packaging.python.org/guides/distributing-packages-using-setuptools/#manifest-in <https://packaging.python.org/guides/distributing-packages-using-setuptools/#manifest-in>. The sampleproject (https://github.com/pypa/sampleproject <https://github.com/pypa/sampleproject>) does seem to include tests (Well a no-op test) and doesn't include them in the sdist.
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
> Message archived at https://mail.python.org/mm3/archives/list/[email protected]/message/BJYGZIMYFA6EQD2OGQ6LCR7YFJL3EE74/

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/mm3/archives/list/[email protected]/message/KLW3SIHL6SXB7BESDS7NRU7RV5AF3BY5/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEZ+lzJOmpW4rB0gJQZSG8SkW/znoFAluVrbMACgkQZSG8SkW/
znpv8A/9G+kMDxs40T8dJccuVMvvVV2ziPs7P19yRHOi5v/JeBFDPj87XWMRdeEH
T72r2KvRSXaRDVxQL6kZ5iP4SsRUPM4c0GV5YvDUNddBb/Fbf7oAQ42LrVOQLkNA
jrtTPlUlLUv1z45lQYjnu93Xq7ULNn4qFfiGGdqtMJPy16/PM0ouzYol/xvU4YNG
abDungxwgQnltS1B5Ecx88zKrNDFMtu3QYn/eL2Au6ULrShif9ux3w0RqfPykJKH
W6IXg3rtsONo11wCNWFjLMTy9DU/GhuG8dZijM7kC2h3xnx2QXrkqwOz9rBHqwBX
SEKOArqVqPmDTmc1KZ2uBeyzM/AbQcpXewhDcLyElYSYqGhPmL4GRQBQc8VujYQO
hFk8cYqmV5G85kZely9B/gGgh1OmWbLLBUFpU3uiGKMtUUFJx0A1AtsWsOIm00la
9EEq9PhMmvez+SOpBb1AAh1BJH8XBt5VN+AsAP6NiZkbrz43NCduSOJrYZPmM354
YqPJtFLfDwFbQ4AD51/BeNO3uOcSTeTOd6ukqibRltfBCu4Q5nrcjfyI9b1Nsrhd
BfodbIKMGQ12hgDgZV/0fWRtWUDS4EmI/UyTSN1JFTBWdWzlbluEN1qrmYMrnqz6
+v3NEYiqSfLsQ316E284+CENRX331nlbbuE1CTG/ndlpg/frpRU=
=Tt/O
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.