Skip to content

Commit c8fad32

Browse files
authored
Upgrade dependencies (#672)
* upgrade luxor graph plot * upgrade all dependencies * fix ci * fix tests
1 parent 6c4dcab commit c8fad32

File tree

18 files changed

+246
-220
lines changed

18 files changed

+246
-220
lines changed

.ci/src/main.jl

+13-7
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,21 @@ develop the Bloqade components into environment.
162162
end
163163

164164
function collect_lib_deps(path::String)
165-
libs = readdir(root_dir("lib"))
166-
d = TOML.parsefile(root_dir(path, "Project.toml"))
167-
names = [name for name in keys(d["deps"]) if name in libs || name == "Bloqade"]
168-
paths = map(names) do name
169-
name == "Bloqade" && return "."
170-
return root_dir("lib", name)
171-
end
165+
paths = unique!(collect_lib_deps_recur!(path, String[]))
172166
pkgs = map(paths) do path
173167
return Pkg.PackageSpec(; path = root_dir(path))
174168
end
175169
return pkgs
176170
end
171+
172+
function collect_lib_deps_recur!(path::String, paths::Vector{String})
173+
libs = readdir(root_dir("lib"))
174+
d = TOML.parsefile(root_dir(path, "Project.toml"))
175+
names = [name for name in keys(d["deps"]) if name in libs || name == "Bloqade"]
176+
map(names) do name
177+
subpath = name == "Bloqade" ? "." : root_dir("lib", name)
178+
push!(paths, subpath)
179+
collect_lib_deps_recur!(subpath, paths)
180+
end
181+
return paths
182+
end

.github/workflows/CI.yml

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
version:
38-
- '1.6'
3938
- '1'
4039
os:
4140
- ubuntu-latest

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ForwardDiff = "0.10"
3131
Measurements = "2"
3232
PythonCall = "0.8,0.9"
3333
Reexport = "1"
34-
Yao = "0.8"
34+
Yao = "0.9"
3535
YaoSubspaceArrayReg = "0.2"
3636
julia = "1.6.3"
3737

lib/BloqadeCUDA/Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
99
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1010

1111
[compat]
12-
Adapt = "3"
13-
CUDA = "3"
12+
Adapt = "4"
13+
CUDA = "5"
1414
julia = "1.6"
1515

1616
[extras]

lib/BloqadeExpr/Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ YaoAPI = "0843a435-28de-4971-9e8b-a9641b2983a8"
2121
YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df"
2222

2323
[compat]
24-
Adapt = "3"
25-
BitBasis = "0.8"
24+
Adapt = "4"
25+
BitBasis = "0.9"
2626
BloqadeLattices = "0.2"
2727
ForwardDiff = "0.10"
2828
LaTeXStrings = "1"

lib/BloqadeKrylov/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ YaoArrayRegister = "e600142f-9330-5003-8abb-0ebd767abc51"
1616
YaoSubspaceArrayReg = "bd27d05e-4ce1-5e79-84dd-c5d7d508ade2"
1717

1818
[compat]
19-
Adapt = "3"
19+
Adapt = "4"
2020
BloqadeExpr = "0.2.1"
2121
BloqadeLattices = "0.2"
2222
BloqadeWaveforms = "0.2"

lib/BloqadeLattices/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
1111

1212
[compat]
1313
LinearAlgebra = "1.6"
14-
LuxorGraphPlot = "0.2"
14+
LuxorGraphPlot = "0.5"
1515
NearestNeighbors = "0.4"
1616
StatsBase = "0.33, 0.34"
1717
UnicodePlots = "3.6"

lib/BloqadeLattices/src/BloqadeLattices.jl

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ using StatsBase
88
using LuxorGraphPlot
99
using LuxorGraphPlot: Point
1010
using LuxorGraphPlot.Luxor: Colors
11+
import LuxorGraphPlot.Luxor
1112
using LinearAlgebra
1213
import Base.deleteat!
1314

0 commit comments

Comments
 (0)