-
Notifications
You must be signed in to change notification settings - Fork 67
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
Fix uses of Val
inside Hecke
#1455
Conversation
4a81cea
to
5ba54ec
Compare
I'll continue to add deprecations for everything that fails in the downstream tests |
Somehow the "fake" doctests in Oscar emit deprecation warnings that make them fail. Do you have an idea why depwarns are enabled there? |
Hm, I don't remember how those fake doctests are run. @benlorenz do you remember from the top of your head? |
These are run in a dummy-module with a dummy function:
|
Maybe add the old method back in @lgoettgens? |
Deprecating exported functionality is considered breaking and should be done with a minor version bump instead of a patch-level bump. |
This is just stated for versions after 1.0.0 (ref https://semver.org/spec/v2.0.0.html#spec-item-7), in the 0.y.z phase everything may change at any time (https://semver.org/spec/v2.0.0.html#spec-item-4). (And in this case here To reduce friction here, let me add the deprecations as "real functions" (i.e. without a |
Julia does not follow SemVer for 0.*: https://pkgdocs.julialang.org/v1/compatibility/#compat-pre-1.0. |
(Almost) everything that is exported by Hecke is also exported by Oscar and thus breaking for Oscar 1.0.x. |
Thanks for reminding me. However, this is no longer an issue due to my last changes. The deprecations will only be introduced in Hecke 0.31.0, which will then only be made compatible on the Oscar master branch, and not the release-1.0. |
Thanks! In this case it seems it is technically a bug in Oscar since it relies on the non-exported But with all the re-exports we should be very careful with such things and moving to a new minor release soon seems like a good idea. We can still create a branch for 0.30 and do bugfixes there if necessary. |
This is similar to Nemocas/AbstractAlgebra.jl#1664.
Val{T}
is a type andVal(T)
its singleton object. This is the way it is described in the julia docs (https://docs.julialang.org/en/v1/manual/types/#%22Value-types%22).I went through all the uses and corrected them.
For all exported functions where the parameter occurred in a docstring, I already added deprecations. If you want more deprecations, please let me know.