Skip to content

Commit 3c438ef

Browse files
reduce top level dependencies
1 parent d5978d8 commit 3c438ef

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

.ci/develop.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Pkg
2+
3+
const GROUP = get(ENV, "GROUP", "All")
4+
5+
function dev_subpkg(subpkg)
6+
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
7+
Pkg.develop(PackageSpec(path=subpkg_path))
8+
end
9+
10+
function activate_subpkg_env(subpkg)
11+
subpkg_path = joinpath(dirname(@__DIR__), "lib", subpkg)
12+
Pkg.activate(subpkg_path)
13+
Pkg.develop(PackageSpec(path=subpkg_path))
14+
Pkg.instantiate()
15+
end
16+
17+
Pkg.update()
18+
19+
# All packages need the core
20+
dev_subpkg("ArrayInterfaceCore")

Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
33
version = "5.0.8"
44

55
[deps]
6+
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
7+
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
68

79
[compat]
10+
ArrayInterfaceCore = "0.1"
11+
Static = "0.6"
812
julia = "1.6"

src/ArrayInterface.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,8 @@ import ArrayInterfaceCore: size, known_size, known_length, static_length
2929
# managing immutables
3030
import ArrayInterfaceCore: ismutable, can_change_size, can_setindex, deleteat, insert
3131

32-
using ArrayInterfaceBandedMatrices
33-
using ArrayInterfaceBlockBandedMatrices
34-
using ArrayInterfaceCuArrays
35-
using ArrayInterfaceCUDA
36-
using ArrayInterfaceLabelledArrays
37-
using ArrayInterfaceOffsetArrays
38-
using ArrayInterfaceStaticArrays
39-
using ArrayInterfaceTracker
4032
using Static
4133
using Static: Zero, One, nstatic, eq, ne, gt, ge, lt, le, eachop, eachop_tuple,
4234
permute, invariant_permutation, field_type, reduce_tup
4335

44-
4536
end

test/runtests.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ function activate_subpkg_env(subpkg)
1515
end
1616

1717
# Add necessary sub-dependencies
18-
dev_subpkg("ArrayInterfaceCore")
1918
if GROUP == "ArrayInterfaceBlockBandedMatrices"
2019
dev_subpkg("ArrayInterfaceBandedMatrices")
2120
end

0 commit comments

Comments
 (0)