Skip to content

Commit 7eb78ff

Browse files
Make Enzyme a conditional test dependency loaded only for nopre group
- Remove Enzyme from regular test dependencies in Project.toml - Add Enzyme as an EXTRA_PKG that's loaded conditionally in runtests.jl - Only load Enzyme for the nopre group when not on prerelease Julia - This ensures Enzyme is only loaded when needed and won't cause issues on prerelease This complements the previous change of moving tests to the nopre group, ensuring Enzyme is truly optional and only loaded when appropriate. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 19c5004 commit 7eb78ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ CommonSolve = "0.2.4"
6969
ConcreteStructs = "0.2.3"
7070
DiffEqBase = "6.158.3"
7171
DifferentiationInterface = "0.6.18, 0.7"
72-
Enzyme = "0.13.11"
7372
ExplicitImports = "1.5"
7473
FastClosures = "0.3.2"
7574
FastLevenbergMarquardt = "0.1"
@@ -123,7 +122,6 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
123122
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
124123
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
125124
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
126-
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
127125
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
128126
FastLevenbergMarquardt = "7a0df574-e128-4d35-8cbd-3d84502bf7ce"
129127
FixedPointAcceleration = "817d07cb-a79a-5c30-9a31-890123675176"
@@ -170,5 +168,5 @@ path = "lib/NonlinearSolveSpectralMethods"
170168
path = "lib/SimpleNonlinearSolve"
171169

172170
[targets]
173-
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "CUDA", "Enzyme", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote"]
171+
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "CUDA", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "LineSearches", "MINPACK", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "PETSc", "Pkg", "PolyesterForwardDiff", "Random", "ReTestItems", "SIAMFANLEquations", "SparseConnectivityTracer", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote"]
174172

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ if GROUP == "all" || GROUP == "downstream"
99
push!(EXTRA_PKGS, Pkg.PackageSpec("ModelingToolkit"))
1010
push!(EXTRA_PKGS, Pkg.PackageSpec("SymbolicIndexingInterface"))
1111
end
12+
if GROUP == "all" || GROUP == "nopre"
13+
# Only add Enzyme for nopre group if not on prerelease Julia
14+
if isempty(VERSION.prerelease)
15+
push!(EXTRA_PKGS, Pkg.PackageSpec("Enzyme"))
16+
end
17+
end
1218
length(EXTRA_PKGS) 1 && Pkg.add(EXTRA_PKGS)
1319

1420
const RETESTITEMS_NWORKERS = parse(

0 commit comments

Comments
 (0)