New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests are not included in release tarballs #201
Comments
In theory, including the tests in realease tarballs is good practice, but - in practice - it is not. https://github.com/marshmallow-code/marshmallow/releases instead of using PyPI. These tarballs include everything, source, tests, docs, etc. If you are building packages in an isolated environment, using something like pbuilder, you can follow these (automatable) steps:
A cool thing you can do is to contribute a Dockerfile for this project that automatically builds distro packages in a clean environment and put them in a volume. |
Out of curiosity, why? |
Because the distributions on PyPI have already been built, even if they are just sdists (tarballs). If you're creating a package for a Linux distro, you should be building the package from the actual source, in your distro's environment. Basically, the op is confusing a source distribution with the source. |
Conventionally source tarballs do include all sources, even tests and docs and examples. I wasn't suggesting to change the existing published tarballs, only to update Anyway if you don't want to do that for some reason that's okay, I can just use the Github generated tarballs as suggested above. Here's the Fedora package review which I just filed, if you're interested: https://bugzilla.redhat.com/show_bug.cgi?id=1219288 |
This is not a big deal, we can easily remove the egg-info. Moreover, it is easier to use pypi to get the soruces (github URLs are known to change from time to time). In fedora (and I guess in many other linux distros), many python packages are built from pypi. So I also think that tests and docs should be included in the tarballs. But, this is not a big issue. |
This is a minimal change, and if it makes anyone's life easier, I'm happy to do it. |
Thanks! |
Please include the tests directory in release tarballs. You can probably just add:
to
MANIFEST.in
. This will make it easy for downstream distro packagers to run the tests as part of the build process.You might also consider adding the docs and examples to the tarballs in the same way.
The text was updated successfully, but these errors were encountered: