From ab535eef999ec63e82a2c5a2597c434b95c8a847 Mon Sep 17 00:00:00 2001 From: Hofer-Julian Date: Tue, 7 Nov 2023 11:38:01 +0100 Subject: [PATCH] Rename from create to build --- docs/contribute/release.qmd | 2 +- pixi.toml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/contribute/release.qmd b/docs/contribute/release.qmd index 6d4f1ecaa..acd1c6c64 100644 --- a/docs/contribute/release.qmd +++ b/docs/contribute/release.qmd @@ -59,7 +59,7 @@ In order to publish Ribasim Python or Ribasim API follow the following steps: 1) Update `__version__` in `__init__.py` -2) Open a terminal and run `pixi run create-ribasim-python-wheel` or `pixi run create-ribasim-api-wheel` +2) Open a terminal and run `pixi run build-ribasim-python-wheel` or `pixi run build-ribasim-api-wheel` 3) Make a new commit with the updated version number, and push to remote diff --git a/pixi.toml b/pixi.toml index 07ac3b58b..46afcf750 100644 --- a/pixi.toml +++ b/pixi.toml @@ -88,17 +88,17 @@ generate-python = """\ datamodel-codegen --use-title-as-name --use-double-quotes --disable-timestamp --use-default --strict-nullable --input-file-type=jsonschema --input docs/schema/Config.schema.json --output python/ribasim/ribasim/config.py""" codegen = { depends_on = ["generate-schema", "generate-python", "lint"] } # Publish -create-ribasim-python-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim" } -create-ribasim-api-wheel = { cmd = "rm --recursive --force dist && python -m build && twine check dist/*", cwd = "python/ribasim_api" } -create-wheels = { depends_on = [ - "create-ribasim-python-wheel", - "create-ribasim-api-wheel", +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" } +build-wheels = { depends_on = [ + "build-ribasim-python-wheel", + "build-ribasim-api-wheel", ] } publish-ribasim-python = { cmd = "twine upload dist/*", cwd = "python/ribasim", depends_on = [ - "create-ribasim-python-wheel", + "build-ribasim-python-wheel", ] } publish-ribasim-api = { cmd = "twine upload dist/*", cwd = "python/ribasim_api", depends_on = [ - "create-ribasim-api-wheel", + "build-ribasim-api-wheel", ] } [dependencies]