From 5fff51bdfd0b5e4ca9bb0a2fd2788ae154b1b089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 17 Dec 2024 23:27:47 +0100 Subject: [PATCH] create-release: fix updating pyproject.toml --- bin/create-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/create-release.sh b/bin/create-release.sh index 4ca1453..92d3c15 100755 --- a/bin/create-release.sh +++ b/bin/create-release.sh @@ -28,7 +28,8 @@ if [[ $unpushed_commits != "" ]]; then echo -e "\nThere are unpushed changes, exiting:\n$unpushed_commits" >&2 exit 1 fi -sed -i -e "s!version = \".*\"\$!version = \"${version}\"!" pyproject.toml default.nix +sed -i -e "s!^version = \".*\"\$!version = \"${version}\"!" pyproject.toml +sed -i -e "s!version = \".*\"\$!version = \"${version}\"!" default.nix git add pyproject.toml default.nix nix flake check -vL nix develop -c pytest -s .