-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
bug: 1.9.0 sdist is missing tests #55
Comments
Oops! Thanks for the heads up. It's probably because I now specify |
By the way @mgorny, I never really paid attention to what I include in my source dists: do you need anything else apart from the tests folder? How can I make your life easier? Do you prefer handling the test dependencies yourself or should I include a requirements file of some kind? If you don't have time to teach me system packaging, feel free to just point me at online resources 😄 |
Pushed a fix as 1.9.1 🙂 Closing, but happy to continue chatting! |
Thanks.
Well, for our purposes, test files (and any test data, should that be required) is enough. In general, we also recommend including documentation sources, since users sometimes wish to be able to use documentation offline, though FWICS we've never used them for As for dependencies, my personal recommendation is to put them in |
Thanks. I'm always conflicted with the idea of listing "development dependencies" in But more than "development" dependencies, they could be called "packaging" dependencies too 🤔 But then if I include test deps, and docs sources, I should include docs deps, and all scripting around it, which might become necessary, and therefore every other dev deps used by these scripts. Quickly I end up with all my dev-deps in optional dependencies and all my custom scripts in the source dist 🤔 Anyway, I'll try to think about it and find resources that talk about it. |
I suppose some projects work around that problem by installing tests within the package, and making it possible to run them after installing it (i.e. to verify that it still works). But that's rather a controversial topic. Actually thinking about it, if you're going to list test dependencies in a file, please include it in sdist. Whenever I'm updating the Gentoo package, I'm looking at the diff, so having the dependencies there would help me know that I need to update the package as well. I generally check |
Sounds good! Including more stuff in the sdist is the least I can do. You might hate me a bit though... my dev-deps requirements file is called |
Description of the bug
The 1.9.0 sdist tarball no longer includes the
tests
directory. As a result, we can no longer run tests when building the Gentoo package from it.To Reproduce
Full traceback
n/a
Expected behavior
Tests included in the archive, as they were in 1.8.2.
Environment information
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: