-
-
Notifications
You must be signed in to change notification settings - Fork 116
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 support for Julia < 0.7 #652
Conversation
The time has come, as 0.6 is unmaintained. Fixes #651.
On the phone right now, so cannot review properly, but looks like you are already removing the deprecations from #646 here which haven't been active on any release, yet. That would mean we tag 2.0 now and then 3.0 after this one lands (eventually). Is that your plan? Alternatively, we could keep the deprecations and tag 2.0 after merging this one. |
Yeah I figured we'd do another release with deprecations before this lands. |
Tag The former would be ok with me, although I think I'd prefer to to do the dropping of 0.6 now for 2.0. Then packages (or package versions) which don't support julia later than 0.6 don't have to worry about capping their required Compat version. |
# Bindings that were available at the top level in Compat | ||
using Base: notnothing | ||
using Dates: AbstractDateTime | ||
using LinearAlgebra: dot, norm, opnorm, qr, rmul!, tr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep these? I guess we could safely deprecate them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, we can deprecate these in another PR (if we want to), and can keep this PR strictly to dropping pre-0.7 support.
I wonder what we should do with all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some else
branches seem to be gone for good which we should keep, probably deprecated. Compat
use is so wide-spread I'd really prefer it to behave well even across major version bumps.
Base.invokelatest(inner) | ||
end | ||
else | ||
import Base.invokelatest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a deprecation for this binding.
if VERSION < v"0.7.0-DEV.3216" | ||
const AbstractDateTime = Compat.Dates.TimeType | ||
else | ||
const AbstractDateTime = Compat.Dates.AbstractDateTime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecation.
const IteratorEltype = Base.iteratoreltype | ||
else | ||
const IteratorSize = Base.IteratorSize | ||
const IteratorEltype = Base.IteratorEltype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecations for these two.
Yeah, that is an issue and I'm not sure how best to go about that aside from what we currently do, which is define |
👍 Didn't you plan to also drop 0.7 since it is unmaintained? |
Oh, good call. I should do that as well, thanks @musm. |
Bump? 🙏 |
I don't know when I'll have time to revisit this, so I encourage anyone who's interested to take the reins and use this branch for reference. |
not yet part of the standard library ([#27834]). | ||
`Compat.X` is available for every stdlib package `X` for backwards compatibility with | ||
previous verisons of Compat. | ||
Newer code should use `X` directly. | ||
|
||
## New functions, macros, and methods | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be helpful to state the order here, and organise by what version of Julia supports the feature:
Latest addions are at the top of each list: | |
### New in Julia 1.4 | |
### New in Julia 1.3 | |
### New in Julia 1.2 | |
### New in Julia 1.1 |
Superseded by #665. |
The time has come, as 0.6 is unmaintained.
Fixes #651.