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