Skip to content

Commit

Permalink
Remove ForwardDiff extension (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill authored Oct 2, 2024
1 parent bb7d365 commit 3072d4a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 44 deletions.
4 changes: 0 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[weakdeps]
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"

[extensions]
SparseConnectivityTracerDataInterpolationsExt = "DataInterpolations"
SparseConnectivityTracerForwardDiffExt = "ForwardDiff"
SparseConnectivityTracerLogExpFunctionsExt = "LogExpFunctions"
SparseConnectivityTracerNNlibExt = "NNlib"
SparseConnectivityTracerNaNMathExt = "NaNMath"
Expand All @@ -33,7 +31,6 @@ ADTypes = "1"
DataInterpolations = "6.2"
DocStringExtensions = "0.9"
FillArrays = "1"
ForwardDiff = "0.10"
LinearAlgebra = "<0.0.1, 1"
LogExpFunctions = "0.3.28"
NNlib = "0.8, 0.9"
Expand All @@ -46,7 +43,6 @@ julia = "1.6"

[extras]
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
Expand Down
14 changes: 0 additions & 14 deletions ext/SparseConnectivityTracerForwardDiffExt.jl

This file was deleted.

5 changes: 1 addition & 4 deletions src/SparseConnectivityTracer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ export jacobian_sparsity, hessian_sparsity

function __init__()
@static if !isdefined(Base, :get_extension)
@require ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" include(
"../ext/SparseConnectivityTracerForwardDiffExt.jl"
)
@require LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688" include(
"../ext/SparseConnectivityTracerLogExpFunctionsExt.jl"
)
Expand All @@ -59,7 +56,7 @@ function __init__()
@require SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" include(
"../ext/SparseConnectivityTracerSpecialFunctionsExt.jl"
)
# NOTE: SparseConnectivityTracerDataInterpolationsExt is not loaded on Julia <1.10
# NOTE: DataInterpolations extension is not loaded on Julia <1.10
end
end

Expand Down
20 changes: 0 additions & 20 deletions test/ext/test_ForwardDiff.jl

This file was deleted.

1 change: 0 additions & 1 deletion test/linting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ using JET: JET
using ExplicitImports: ExplicitImports

# Load package extensions so they get tested by ExplicitImports.jl
using ForwardDiff: ForwardDiff
using DataInterpolations: DataInterpolations
using NaNMath: NaNMath
using NNlib: NNlib
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ GROUP = get(ENV, "JULIA_SCT_TEST_GROUP", "Core")
if GROUP in ("Core", "All")
@info "Testing package extensions..."
@testset verbose = true "Package extensions" begin
for ext in (:ForwardDiff, :LogExpFunctions, :NaNMath, :NNlib, :SpecialFunctions)
for ext in (:LogExpFunctions, :NaNMath, :NNlib, :SpecialFunctions)
@testset "$ext" begin
@info "...$ext"
include("ext/test_$ext.jl")
Expand Down

0 comments on commit 3072d4a

Please sign in to comment.