-
-
Notifications
You must be signed in to change notification settings - Fork 919
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
Testing depends on alpha sumtypes
#1797
Comments
Thanks for pointing this out - I think this should be possible, but @EliahKagan would certainly know best. |
Yes, the use of While I do not think this is a reason to refrain from applying that change, I am unclear on the exact nature of the problem this currently causes for downstream maintainers. If that could be clarified, then I might be able to use that information to avoid introducing related problems for downstream maintainers in the future. I think that might also clarify whether a new release needs to be done for this change. My thinking on this is detailed below. But to be clear, it is not intended as an argument against fixing this issue by merging #1798 (which I advocate doing), nor against further steps such as publishing a new release if that is needed. I think it is very valuable for downstream maintainers to be able to run the full test suite, and to be able to automate doing so without unnecessary impediments. In general it is often reasonable to use code and techniques in testing that would not be reasonable to use in the code under test. Although the latest version of the For packages that use semantic versioning and have not had a 1.0.0 release, I believe the distinction between a release named in such a way that PyPI presents it as a prerelease (as However, it happens to be that those test dependencies can be omitted and it is still possible to run the tests (just not as they are run on GitPython's own CI, and not with the same experience as the readme documents). Furthermore, while the classifiers represent those packages as being in beta, beta is still typically more stable than alpha. The version numbers have no suffix that causes PyPI to show them as prereleases, but it seems to me that this is the least significant factor; however, I recognize that this judgment is subjective. One reason I can think of that it would be undesirable to require |
Thanks @EliahKagan. You expressed it very well. Our downstream OpenIndiana packaging and testing aims exactly for having all needed packages available natively, i.e. without a need to run The When I looked closely at You mentioned Unfortunately, something like that is not so easily possible with Since we already packaged Thank you. |
@EliahKagan: Hi! 👋 I package this project for Arch Linux. Adding an undead package as new dependency (even if for testing, because we do run tests) is a problem. Either I have to temporarily disable the test or package an undead dependency. :) Since you now removed it, I'll likely just do the former, as I have way too many Python stuff to maintain already. Either way, a new release clearing this up is always appreciated. Many thanks! 🎉 |
I apologize for not replying earlier! Although a specific post-release did not end up being done for this, all releases after this one should not have had the problem, as the dependency was removed in #1798. Specifically, 3.1.42, which came out a while ago, should not have had the problem, and the very recently released 3.1.43 should not either. (3.1.43 causes |
Since commit 7ff3cee
GitPython
's tests started to depend onsumtypes
which does not have any stable release available at PyPI and seems to be dead for more than two years now (see https://github.com/radix/sumtypes/commits/master/).This causes inconvenience for downstream packagers where tests are run to make sure the constructed package is working properly. Could you please make the
sumtypes
test dependency optional (especially on non-Windows OSes)? Or switch off of it completely?Thank you.
The text was updated successfully, but these errors were encountered: