From 8f1595fb9cb5378ffcb2484fd7d08144d3833cdc Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Sun, 11 Aug 2019 14:17:22 -0700 Subject: [PATCH 1/2] Move from REQUIRE to Project.toml The future is here --- .gitignore | 1 + Project.toml | 21 +++++++++++++++++++++ REQUIRE | 2 -- test/REQUIRE | 2 -- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 Project.toml delete mode 100644 REQUIRE delete mode 100644 test/REQUIRE diff --git a/.gitignore b/.gitignore index c60598e1..94b9a7a5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.jl.*.cov *.jl.mem perf/benchmarkparams.json +Manifest.toml diff --git a/Project.toml b/Project.toml new file mode 100644 index 00000000..11abf046 --- /dev/null +++ b/Project.toml @@ -0,0 +1,21 @@ +name = "Rotations" +uuid = "6038ab10-8711-5258-84ad-4b1120ba62dc" +version = "0.11.1" + +[deps] +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" +Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" + +[compat] +StaticArrays = ">=0.10.0" +julia = "0.7, 1.0" + +[extras] +BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" +ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["BenchmarkTools", "ForwardDiff", "Random", "Test"] diff --git a/REQUIRE b/REQUIRE deleted file mode 100644 index 53d2d70f..00000000 --- a/REQUIRE +++ /dev/null @@ -1,2 +0,0 @@ -julia 0.7 -StaticArrays 0.10 diff --git a/test/REQUIRE b/test/REQUIRE deleted file mode 100644 index 009b3b09..00000000 --- a/test/REQUIRE +++ /dev/null @@ -1,2 +0,0 @@ -ForwardDiff -BenchmarkTools 0.2.0 From 04a3810aab8527f6934823440c241269adb426c2 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Sun, 11 Aug 2019 15:06:53 -0700 Subject: [PATCH 2/2] Work around printing changes in Julia 1.2 Changes introduced in Julia PR 30867 --- test/rotation_tests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rotation_tests.jl b/test/rotation_tests.jl index 4b90eb32..3e2c7519 100644 --- a/test/rotation_tests.jl +++ b/test/rotation_tests.jl @@ -353,11 +353,11 @@ all_types = (RotMatrix{3}, Quat, SPQuat, AngleAxis, RodriguesVec, r = rand(RotMatrix{2}) show(io, MIME("text/plain"), r) str = String(take!(io)) - @test startswith(str, "2×2 RotMatrix{2,Float64,4}:") + @test startswith(str, "2×2 RotMatrix{2,Float64,4}") rxyz = RotXYZ(1.0, 2.0, 3.0) show(io, MIME("text/plain"), rxyz) str = String(take!(io)) - @test startswith(str, "3×3 RotXYZ{Float64}(1.0, 2.0, 3.0):") + @test startswith(str, "3×3 RotXYZ{Float64}") && occursin("(1.0, 2.0, 3.0):", str) end end