Skip to content

Commit

Permalink
updated Version number and Artifacts.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerHeintzmann committed Nov 27, 2024
1 parent 93dbdec commit d66c248
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
19 changes: 8 additions & 11 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# using Tar, Inflate, SHA
# cd("C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D")
# V = 2; VV = 5; VVV = 2;
# V = 2; VV = 5; VVV = 5; Suffix = "-SNAPSHOT";
# include("src\\GetArtifactInfo.jl")

# filename = "View5D_v2.5.2-jar.tar.gz"
# https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz
# replace the code below with the appropriate new entries
# replace the code below with the printout
#
# remember to change the version number in filename and 2x in the url AND in the View5D.jl file!
# for a full release: update the version number in View5D.jl and comment "@JuliaRegistrator register"
# remember to change the version number in the View5D.jl Project.toml file!
# Note that the Julia Version does not agree to the version of the Java View5D.
# for a full release: update the version number in Project.toml and comment "@JuliaRegistrator register"
# For reference the lines to generate the hashes below
# println("git-tree-sha1 = \"", Tar.tree_hash(IOBuffer(inflate_gzip(filename))),"\"")
# println("sha256 = \"", bytes2hex(open(sha256, filename)), "\"")
# https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz

[View5D-jar]
git-tree-sha1 = "dd8217b7552770902d20c54f03b155f114e864b5"
git-tree-sha1 = "35fd709e1382615353426673e395a58c131cb6f0"
lazy = true

[[View5D-jar.download]]
url = "https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v2.5.2/View5D_v2.5.2-jar.tar.gz"
sha256 = "aca6efbb26c63141f7c764bd2e7858421edba5740529684a7e150e0d24de3830"
url = "https://github.com/RainerHeintzmann/View5D/releases/download/View5D_-2.5.5/View5D_v2.5.5.tar.gz"
sha256 = "0c0306a1628f040ff65b3f153c96df86ce998ffdc6ff3dc0852793872bfc5f42"
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "View5D"
uuid = "90d841e0-6953-4e90-9f3a-43681da8e949"
authors = ["rheintzmann <[email protected]>"]
version = "0.5.2"
version = "0.5.3"

[deps]
AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9"
Expand Down
10 changes: 7 additions & 3 deletions src/GetArtifactInfo.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
using Tar, Inflate, SHA
filename="C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D\\View5D_v$V.$VV.$VVV-jar.tar.gz"
filename="C:\\Users\\pi96doc\\Documents\\Programming\\Java\\View5D\\target\\View5D_-$V.$VV.$VVV$Suffix.tar.gz"

println("[View5D-jar]")
println("git-tree-sha1 = \"", Tar.tree_hash(IOBuffer(inflate_gzip(filename))),"\"")
println("url = \"https://github.com/RainerHeintzmann/View5D/releases/download/View5D_v$(V).$VV.$VVV/View5D_v$V.$VV.$VVV-jar.tar.gz\" ")
println("sha256 = \"", bytes2hex(open(sha256, filename)), "\"")
println("lazy = true\n")
println(" [[View5D-jar.download]]")
println(" url = \"https://github.com/RainerHeintzmann/View5D/releases/download/View5D_-$(V).$VV.$VVV/View5D_v$V.$VV.$VVV.tar.gz\" ")
println(" sha256 = \"", bytes2hex(open(sha256, filename)), "\"")

# and then put these values into the Artifacts.toml file and also update the Version number there.
5 changes: 3 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ end
v = view5d(rand(Float32,2,2,2,2,3))
@test 3 == get_num_times(v)
@test 2 == get_num_elements(v)

@test nothing == close_all()
end

@testset "set functions" begin
v = view5d(rand(Float32,2,2,2,2,3))
set_colormap_no(13, v)
@test set_colormap_no(13, nothing, v) == nothing
@test nothing == close_all()
end

0 comments on commit d66c248

Please sign in to comment.