-
-
Notifications
You must be signed in to change notification settings - Fork 370
Drop UnitfulLatexify as a dependency for v1 #5174
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
Drop UnitfulLatexify as a dependency for v1 #5174
Conversation
|
Bump |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5174 +/- ##
==========================================
- Coverage 89.77% 88.57% -1.20%
==========================================
Files 40 40
Lines 8780 8884 +104
==========================================
- Hits 7882 7869 -13
- Misses 898 1015 +117 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The test failures occur for 1.6 (where the Latexify extension does not load, so of course latexify tests fail), and downstream in GraphRecipes.jl where the |
|
Is there any functionality lost on Julia 1.6 or are only the tests failing? If the functionality is lost, should it be considered breaking? One way to keep all functionality on Julia 1.6 would be to change UnitfulLatexify v2 to contain a copy of the extension on Julia < 1.9. Only on Julia ≥ 1.9 would the package be empty. Plots would then depend on UnitfulLatexify v2. It’s not particularly nice (especially since one has to continue to maintain UnitfulLatexify parallel to the Unitful extension), but I think it should work. |
The functionality is lost, unfortunately. Making UnitfulLatexify somehow load the extension even on less than 1.6 could resolve this, although my gut says it makes compat more confusing. Or including a similar hack in the Plots |
|
Some local testing on my part suggests that with a potentially fragile hack to load the extension in gustaphe/UnitfulLatexify.jl#22, putting UnitfulLatexify back in as a nearly-empty package works. At least, the tests that are failing here pass when I load this PR and that PR in Julia 1.6, WSL Ubuntu. The most recent test failure here is because UnitfulLatexify v2.0 isn't merged and registered yet. |
|
I think it would also be okay to drop Julia 1.6 support at this point of time |
|
…s on Latexify and Unitful
Co-authored-by: Sebastian Stock <[email protected]>
b72d200 to
035ed3a
Compare
|
Remaining test failures here now that #5184 is merged and this is rebased are just due to the |
Description
This depends on JuliaPhysics/Unitful.jl#795 , which makes UnitfulLatexify into a LatexifyExt for Unitful. Once that is merged and released, Plots can drop UnitfulLatexify as a dependency in both v1 and v2.
Once the Unitful release is out, the compat bound here will have to be set to match. I am not sure yet if it will be 1.25 or 1.26.
Arguably, dropping support for UnitfulLatexify altogether (which this is doing) could be considered a breaking change for some users. But it's not breaking the Plots API, exactly, and we're not breaking API for Unitful or Latexify either, so the breaking change is in UnitfulLatexify, which will have a deprecation notice. (And the fix should be pretty simple for the handful of people who run into it.)
I want this change in v1 and not just v2 because then it can be used in the Unitful docs, which use the Latexify extension and demonstrate how the Latexify extension can be used with Plots.
Attribution