From 6e042590cdb7881d3aed49d915e1ebdf055a5bd6 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 23 May 2024 12:48:47 -0400 Subject: [PATCH] fix pixi.toml, fix update_version.py version substitution in pixi.toml --- distribution/update_version.py | 2 +- pixi.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/update_version.py b/distribution/update_version.py index 8422dfce354..0f567cd2140 100755 --- a/distribution/update_version.py +++ b/distribution/update_version.py @@ -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) diff --git a/pixi.toml b/pixi.toml index 3e86897f9d7..4ed90c155b4 100644 --- a/pixi.toml +++ b/pixi.toml @@ -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" } \ No newline at end of file