-
Notifications
You must be signed in to change notification settings - Fork 635
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
Add forward compatible support for click 7.0 #1323
Conversation
click changed command names to use dashes instead of underscores, so force the underscore name to be used to maintain backward compatibility. pallets/click#1123 (comment) Handle changed click exit_code pallets/click#533
Thank you for this, but I have no intention of allowing click 7.0 before the next major release of Curator. I will revisit all flags then, as the major release version will allow me to make breaking changes. I will probably standardize on hyphens at that point, instead of underscores. |
I am on my phone right now, but it looks like all CI tests failed. I will take a look at “why” later. |
Curator 5.6.0 pins the click version to disallow 7.0, in case you didn’t see that change. |
This PR makes curator compatible with both click 6.x and 7.x with no breaking changes in curator. I think the failing tests are tests that were skipped when I ran tests (all tests pass for me with both click 6.7 and 7.0, but 4 tests were skipped for some reason). I'll push a change that should fix these failures. It looked to me like curator disallowed 7.0 because 7.0 has breaking changes, so fixing curator to be compatible with both click 6.x and 7.x seemed like an alternative to forcing an older version of click. |
I don't know why travis is failing now. The only error I see is related to downloading jdk:
|
Again, I appreciate the effort, but there is no compelling need to upgrade to click 7.0. There is no new feature in it that Curator requires. Quite the contrary, the default hyphen/underscore behavior is a reason to avoid it, even if a reasonable work-around can be made for it. 6.7 is just fine for what Curator needs. I do plan on making major changes for Curator 6.0, and will pin click at |
Having curator working with click 6/7 would be greatly appreciated on rolling distros like Gentoo. Currently we have a strict restriction on <click-7. This means that even though all other packages on the system can work with click 7, only curator is blocking the upgrade and forcing 6. If it's too much work I understand, but if curator could be compatible with both, it would be really great. |
Any chance adding click 7 support please? In Gentoo Linux, curator is one of the last packages requiring <click-7. |
This is already moot as Click 8.1.2 is supported. |
click changed command names to use dashes instead of underscores, so force the underscore name to be used to maintain backward compatibility.
pallets/click#1123 (comment)
Handle changed click exit_code
pallets/click#533