Skip to content

**BREAKING**: Migrate from Requires.jl to package extensions#591

Merged
simsurace merged 2 commits intomasterfrom
replace-requires
Mar 5, 2026
Merged

**BREAKING**: Migrate from Requires.jl to package extensions#591
simsurace merged 2 commits intomasterfrom
replace-requires

Conversation

@simsurace
Copy link
Member

Summary
We replace Requires.jl to conditionally load code dependent on PDMats.jl and Kronecker.jl by package extensions. This requires Julia 1.9. We support Julia LTS (currently 1.10) only. This was discussed in #585.

What alternatives have you considered?
None.

Breaking changes
Julia <1.10 is no longer supported.

@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.46%. Comparing base (652f5c9) to head (2902bc9).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #591      +/-   ##
==========================================
- Coverage   94.47%   94.46%   -0.02%     
==========================================
  Files          52       52              
  Lines        1466     1463       -3     
==========================================
- Hits         1385     1382       -3     
  Misses         81       81              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@theogf theogf left a comment

Choose a reason for hiding this comment

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

Project.toml Outdated
Kronecker = "0.4, 0.5"
LogExpFunctions = "0.2.1, 0.3"
Requires = "1.0.1"
PDMats = "0.9, 0.10, 0.11"
Copy link
Member

Choose a reason for hiding this comment

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

I am not certain that all version of PDMats are supported?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm also not. Happy to require 0.11

@simsurace
Copy link
Member Author

Looks good! Could you also update the docs in https://juliagaussianprocesses.github.io/KernelFunctions.jl/dev/api/#Conditional-Utilities ?

What is there to update? The user experience does not change, does it?

@simsurace
Copy link
Member Author

Huh, not sure why Julia 1.6 tests are scheduled at all.

@theogf
Copy link
Member

theogf commented Mar 5, 2026

Looks good! Could you also update the docs in https://juliagaussianprocesses.github.io/KernelFunctions.jl/dev/api/#Conditional-Utilities ?

What is there to update? The user experience does not change, does it?

Just to mention that it is using extensions. So maybe just mention https://pkgdocs.julialang.org/v1/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions) and add that one just needs to have loaded for this to worl

@simsurace simsurace requested a review from theogf March 5, 2026 09:58
@simsurace
Copy link
Member Author

We'll ignore the Zygote failures, I'll address them in a separate PR.

We drop 1.6 support while we are at it. The minimum to support package extensions would be 1.9, but we will support LTS.
@simsurace simsurace merged commit a026cc9 into master Mar 5, 2026
8 of 14 checks passed
@simsurace simsurace deleted the replace-requires branch March 5, 2026 14:29
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.

2 participants