Skip to content

Commit

Permalink
fix pixi.toml, fix update_version.py version substitution in pixi.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed May 23, 2024
1 parent 35a17dc commit 6e04259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion distribution/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def update_pixi(version: Version):
tag = "version ="
with open(path, "w") as fp:
for line in lines:
if tag in line:
if line.startswith(tag):
line = f'{tag} "{version}"\n'
fp.write(line)

Expand Down
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ build-docs = { cmd = "python build_docs.py", cwd = "distribution" }
build-dist = { cmd = "python build_dist.py", cwd = "distribution" }
build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
version = "6.5.0"
update-version = { cmd = "python update_version.py", cwd = "distribution" }
deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }

0 comments on commit 6e04259

Please sign in to comment.