From dc9f4d67b2b1648b76253f0bd7fca9bf9eccb07a Mon Sep 17 00:00:00 2001 From: Beforerr Date: Wed, 29 Jan 2025 13:28:36 -0800 Subject: [PATCH] chore: improve test env - seperate test env as it is recommend - remove CondaPkg.toml as we do not want to resolve it globally --- .gitignore | 3 +-- CondaPkg.toml | 3 --- Project.toml | 13 ------------- test/Project.toml | 15 +++++++++++++++ test/runtests.jl | 3 +++ 5 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 CondaPkg.toml create mode 100644 test/Project.toml diff --git a/.gitignore b/.gitignore index f2beb6d..cb73fb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/Manifest.toml -/docs/Manifest.toml +Manifest.toml /docs/build/ .CondaPkg/ diff --git a/CondaPkg.toml b/CondaPkg.toml deleted file mode 100644 index 9a2d6cc..0000000 --- a/CondaPkg.toml +++ /dev/null @@ -1,3 +0,0 @@ -[deps] -astropy = "" -plasmapy = "" diff --git a/Project.toml b/Project.toml index 01bc40c..8e08bb3 100644 --- a/Project.toml +++ b/Project.toml @@ -9,20 +9,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" UnitfulEquivalences = "da9c4bc3-91c8-4f02-8a40-6b990d2a7e0c" [compat] -Aqua = "0.8" -LinearAlgebra = "1.10" PermuteArgs = "1.2.1" -PythonCall = "0.9.23" -Test = "1.10" Unitful = "1.0" UnitfulEquivalences = "0.2" julia = "1.10" - -[extras] -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[targets] -test = ["Aqua", "LinearAlgebra", "PythonCall", "Test"] diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..5e9c366 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,15 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" + +[compat] +Aqua = "0.8" +CondaPkg = "0.2.24" +LinearAlgebra = "1.10" +PythonCall = "0.9.23" +Test = "1.10" +Unitful = "1.0" diff --git a/test/runtests.jl b/test/runtests.jl index 94c2f89..d64d8c2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,6 +4,9 @@ using Aqua using Unitful using LinearAlgebra using PythonCall +using CondaPkg + +CondaPkg.add(["astropy", "plasmapy"]) units = pyimport("astropy.units") formulary = pyimport("plasmapy.formulary")