-
Notifications
You must be signed in to change notification settings - Fork 8
Please provide a source distribution with tests #231
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
Comments
setuptools-scm gives a lot of problems with including the entire ISA-L source in the binary distribution. This is a waste, therefore it is not used. The tests are also not necessary for distributing packages to users. So they are not included. (To save bandwith, cpu time, CO2 etc.) I see how that is problematic for distro maintainers though. They did manage to package it in debian: https://tracker.debian.org/pkg/python-isal. Maybe you could do what they did? |
The vast majority of users use wheels anyway, making source distribution size a minor problem. On top of that, forcing people who need tests to download a dynamically created archive from GitHub has a far more significant environment footprint.
Debian literally patches out At this point, perhaps the best solution would be to remove VCS versioning entirely and use static versioning instead. This would surely save bandwidth, CPU time and CO₂ on not having to download, install and run |
Good to know. That is indeed not ideal.
You are right. In fact, installing from source is non-trivial due to the dependencies, so I try to have as much binary builds as possible. So the source distribution can be a bit more complete.
Python-isal has more than a hundred thousand downloads at this point that are mostly wheels. So I doubt that the packaging effort has a significant impact. Static versioning is what I used before, but I find it inconvenient. Like stated before, I wish to use setuptools_scm, but unfortunately that works suboptimally when a vendored source is present. i believe versioningit also works from a source archive using the metadata that is put there using setuptools. So just updating the source distribution with the tests seems to be a good solution. |
Since
aiohttp
started unconditionally requiringisal
, I need to package it for Gentoo Linux. However, I don't seem to be able to find an usable archive for it:versioningit
Could you please include test files in the source distribution, so that it could be used for packaging?
Additionally/alternatively, could you consider switching to
setuptools-scm
that is far more common and unlikeversioningit
, works with GitHub archives.The text was updated successfully, but these errors were encountered: