Skip to content
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

Remove deprecations, weed out dependencies #765

Closed
wants to merge 2 commits into from

Conversation

martinholters
Copy link
Member

Closes #764, which is the sole motivation for this PR at this point. Although I wouldn't expect anyone to be relying on those deprecations, it's technically breaking, so bumps the major version to 4.

Going forward, we might pick up new dependencies if we add compat code for other stdlibs. If we want to avoid that, we could think about introducing individual compat packages like CompatDates, CompatLinearAlgebra etc., But let's cross that bridge when we get there---if ever; the relatively small number of dependencies we have now should hopefully be ok.

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #765 (5709a75) into master (fa274f7) will increase coverage by 0.23%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #765      +/-   ##
==========================================
+ Coverage   79.00%   79.24%   +0.23%     
==========================================
  Files           4        3       -1     
  Lines         662      660       -2     
==========================================
  Hits          523      523              
+ Misses        139      137       -2     

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa274f7...5709a75. Read the comment docs.

SharedArrays = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
Sockets = "6462fe0b-24de-5631-8697-dd941f90decc"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this move to extras?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately no, due to

Compat.jl/src/Compat.jl

Lines 489 to 496 in a2de107

# https://github.com/JuliaLang/julia/pull/27516
if VERSION < v"1.2.0-DEV.77"
import Test: @inferred
using Core.Compiler: typesubtract
macro inferred(allow, ex)
_inferred(ex, __module__, allow)
end

@martinholters
Copy link
Member Author

Before going ahead here, I'd like to get some feedback; bumping the major version shouldn't be done too easily.

@KristofferC
Copy link
Member

It seems like an accident that these are still here since the binding was removed in 1.0 and AFAIU this package dropped everything before that.

Also, since 1.6 is the LTS and we are doing a breaking version, I would suggest removing everything that has to do with the pre 1.6 era. This would for example allow us to drop the Test dependency as well.

@martinholters
Copy link
Member Author

I would suggest removing everything that has to do with the pre 1.6 era. This would for example allow us to drop the Test dependency as well.

I like that. Packages still supporting pre-1.6 julia could nevertheless use almost everything Compat supports now and at the same time declare compatibility with the new, trimmed down Compat version. Only things that were not exported by Compat and hence accessed with explicit qualification would be problematic. Still, we probably shouldn't rush this. But this PR has been sitting idle for more than a month, so nobody is rushing anything here 😄

I'll add a commit dropping anything pre-1.6 so we can see what it feels like.

@martinholters
Copy link
Member Author

I'll add a commit dropping anything pre-1.6 so we can see what it feels like.

Opened separate PR at #767 instead.

@martinholters
Copy link
Member Author

Superseded by #767.

@martinholters martinholters deleted the mh/drop-deprecations branch May 16, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

too many dependencies
3 participants