Skip to content

Commit

Permalink
Rename from create to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Nov 7, 2023
1 parent ff1d8dc commit ab535ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/contribute/release.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 7 additions & 7 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ab535ee

Please sign in to comment.