From cd5b4a9674c4d3ed78c7b2aa5d96ab02c590ee6d Mon Sep 17 00:00:00 2001 From: Hofer-Julian Date: Sun, 21 Apr 2024 09:45:50 +0200 Subject: [PATCH] Adapt to latest pixi --- pixi.toml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/pixi.toml b/pixi.toml index b4676fc2e..837fb5402 100644 --- a/pixi.toml +++ b/pixi.toml @@ -53,8 +53,18 @@ initialize-julia = { depends_on = [ # Docs build-julia-docs = { cmd = "julia --project docs/make.jl", depends_on = [ "initialize-julia", -], inputs = ["core", "docs/make.jl"] , outputs = ["docs/build"]} -quartodoc-build = { cmd = "cd docs && quartodoc build && rm objects.json", inputs = ["docs/_quarto.yml", "python/ribasim"], outputs = ["docs/python/reference"]} +], inputs = [ + "core", + "docs/make.jl", +], outputs = [ + "docs/build", +] } +quartodoc-build = { cmd = "quartodoc build && rm objects.json", cwd="docs", inputs = [ + "docs/_quarto.yml", + "python/ribasim", +], outputs = [ + "docs/python/reference", +] } quarto-preview = { cmd = "quarto preview docs", depends_on = [ "quartodoc-build", "generate-testmodels", @@ -99,12 +109,21 @@ test-ribasim-core = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test()' test-ribasim-core-cov = { cmd = "julia --project=core --eval 'using Pkg; Pkg.test(coverage=true, julia_args=[\"--check-bounds=yes\"])'", depends_on = [ "generate-testmodels", ] } -generate-testmodels = { cmd = "python utils/generate-testmodels.py", inputs = ["python/ribasim", "python/ribasim_testmodels",], outputs = ["generated_testmodels"]} +generate-testmodels = { cmd = "python utils/generate-testmodels.py", inputs = [ + "python/ribasim", + "python/ribasim_testmodels", +], outputs = [ + "generated_testmodels", +] } tests = { depends_on = ["lint", "test-ribasim-python", "test-ribasim-core"] } # Codegen codegen = { cmd = "julia --project utils/gen_python.jl && ruff format python/ribasim/ribasim/schemas.py", depends_on = [ "initialize-julia", -] , inputs = ["core"], outputs = ["python/ribasim/ribasim/schemas.py"]} +], inputs = [ + "core", +], outputs = [ + "python/ribasim/ribasim/schemas.py", +] } # Publish build-ribasim-python-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim" } build-ribasim-api-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim_api" }