Skip to content

Commit

Permalink
Upgrade dependencies (#672)
Browse files Browse the repository at this point in the history
* upgrade luxor graph plot

* upgrade all dependencies

* fix ci

* fix tests
  • Loading branch information
GiggleLiu authored Jul 31, 2024
1 parent 6c4dcab commit c8fad32
Show file tree
Hide file tree
Showing 18 changed files with 246 additions and 220 deletions.
20 changes: 13 additions & 7 deletions .ci/src/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,21 @@ develop the Bloqade components into environment.
end

function collect_lib_deps(path::String)
libs = readdir(root_dir("lib"))
d = TOML.parsefile(root_dir(path, "Project.toml"))
names = [name for name in keys(d["deps"]) if name in libs || name == "Bloqade"]
paths = map(names) do name
name == "Bloqade" && return "."
return root_dir("lib", name)
end
paths = unique!(collect_lib_deps_recur!(path, String[]))
pkgs = map(paths) do path
return Pkg.PackageSpec(; path = root_dir(path))
end
return pkgs
end

function collect_lib_deps_recur!(path::String, paths::Vector{String})
libs = readdir(root_dir("lib"))
d = TOML.parsefile(root_dir(path, "Project.toml"))
names = [name for name in keys(d["deps"]) if name in libs || name == "Bloqade"]
map(names) do name
subpath = name == "Bloqade" ? "." : root_dir("lib", name)
push!(paths, subpath)
collect_lib_deps_recur!(subpath, paths)
end
return paths
end
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1'
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ForwardDiff = "0.10"
Measurements = "2"
PythonCall = "0.8,0.9"
Reexport = "1"
Yao = "0.8"
Yao = "0.9"
YaoSubspaceArrayReg = "0.2"
julia = "1.6.3"

Expand Down
4 changes: 2 additions & 2 deletions lib/BloqadeCUDA/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
Adapt = "3"
CUDA = "3"
Adapt = "4"
CUDA = "5"
julia = "1.6"

[extras]
Expand Down
4 changes: 2 additions & 2 deletions lib/BloqadeExpr/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ YaoAPI = "0843a435-28de-4971-9e8b-a9641b2983a8"
YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df"

[compat]
Adapt = "3"
BitBasis = "0.8"
Adapt = "4"
BitBasis = "0.9"
BloqadeLattices = "0.2"
ForwardDiff = "0.10"
LaTeXStrings = "1"
Expand Down
2 changes: 1 addition & 1 deletion lib/BloqadeKrylov/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ YaoArrayRegister = "e600142f-9330-5003-8abb-0ebd767abc51"
YaoSubspaceArrayReg = "bd27d05e-4ce1-5e79-84dd-c5d7d508ade2"

[compat]
Adapt = "3"
Adapt = "4"
BloqadeExpr = "0.2.1"
BloqadeLattices = "0.2"
BloqadeWaveforms = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion lib/BloqadeLattices/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"

[compat]
LinearAlgebra = "1.6"
LuxorGraphPlot = "0.2"
LuxorGraphPlot = "0.5"
NearestNeighbors = "0.4"
StatsBase = "0.33, 0.34"
UnicodePlots = "3.6"
Expand Down
1 change: 1 addition & 0 deletions lib/BloqadeLattices/src/BloqadeLattices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using StatsBase
using LuxorGraphPlot
using LuxorGraphPlot: Point
using LuxorGraphPlot.Luxor: Colors
import LuxorGraphPlot.Luxor
using LinearAlgebra
import Base.deleteat!

Expand Down
Loading

0 comments on commit c8fad32

Please sign in to comment.