Skip to content

Commit 0f66de4

Browse files
committed
Remove Requires.jl dependency
1 parent 0416098 commit 0f66de4

File tree

6 files changed

+4
-28
lines changed

6 files changed

+4
-28
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.19.0"
66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
9-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
109
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1110

1211
[weakdeps]
@@ -28,7 +27,6 @@ JLD2 = "0.5"
2827
LinearAlgebra = "<0.0.1, 1"
2928
Markdown = "<0.0.1, 1"
3029
RecursiveArrayTools = "2, 3"
31-
Requires = "0.5.2, 1"
3230
SparseArrays = "<0.0.1, 1"
3331
StaticArrays = "1"
3432
Test = "<0.0.1, 1"

ext/TaylorSeriesIAExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Base: ^, sqrt, log, asin, acos, acosh, atanh, iszero, ==
66

77
import TaylorSeries: _pow, pow!, evaluate, _evaluate, normalize_taylor
88

9-
isdefined(Base, :get_extension) ? (using IntervalArithmetic) : (using ..IntervalArithmetic)
9+
using IntervalArithmetic
1010

1111
const NumTypes = IntervalArithmetic.NumTypes
1212

ext/TaylorSeriesJLD2Ext.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ module TaylorSeriesJLD2Ext
33
import Base: convert
44
using TaylorSeries
55

6-
if isdefined(Base, :get_extension)
7-
import JLD2: writeas
8-
else
9-
import ..JLD2: writeas
10-
end
6+
import JLD2: writeas
117

128
@doc raw"""
139
TaylorNSerialization{T}

ext/TaylorSeriesRATExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module TaylorSeriesRATExt
22

33
using TaylorSeries
44

5-
isdefined(Base, :get_extension) ? (import RecursiveArrayTools) : (import ..RecursiveArrayTools)
5+
import RecursiveArrayTools
66

77
function RecursiveArrayTools.recursivecopy(a::AbstractArray{<:AbstractSeries, N}) where N
88
deepcopy(a)

ext/TaylorSeriesSAExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ using TaylorSeries
55
import Base.promote_op
66
import LinearAlgebra: matprod
77

8-
isdefined(Base, :get_extension) ? (using StaticArrays) : (using ..StaticArrays)
8+
using StaticArrays
99

1010
promote_op(::typeof(adjoint), ::Type{T}) where {T<:AbstractSeries} = T
1111
promote_op(::typeof(matprod), ::Type{T}, ::Type{U}) where {T <: AbstractSeries, U <: AbstractFloat} = T

src/TaylorSeries.jl

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ module TaylorSeries
2020
using SparseArrays: SparseMatrixCSC
2121
using Markdown
2222

23-
if !isdefined(Base, :get_extension)
24-
using Requires
25-
end
26-
2723
using LinearAlgebra: norm, mul!,
2824
lu, lu!, LinearAlgebra.lutype, LinearAlgebra.copy_oftype,
2925
LinearAlgebra.issuccess, NoPivot, RowMaximum
@@ -77,18 +73,4 @@ include("dictmutfunct.jl")
7773
include("broadcasting.jl")
7874
include("printing.jl")
7975

80-
function __init__()
81-
@static if !isdefined(Base, :get_extension)
82-
@require IntervalArithmetic = "d1acc4aa-44c8-5952-acd4-ba5d80a2a253" begin
83-
include("../ext/TaylorSeriesIAExt.jl")
84-
end
85-
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" begin
86-
include("../ext/TaylorSeriesSAExt.jl")
87-
end
88-
@require JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" begin
89-
include("../ext/TaylorSeriesJLD2Ext.jl")
90-
end
91-
end
92-
end
93-
9476
end # module

0 commit comments

Comments
 (0)