From ff4ef17cf35d7c1c69e8bca0d7d7d5268bf1310d Mon Sep 17 00:00:00 2001 From: Michael Overmeyer Date: Thu, 12 Oct 2023 15:42:36 -0400 Subject: [PATCH] Switch to awk for better cross-platform support sed syntax is different between Mac and Linux --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d459a3..6761028 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -122,7 +122,8 @@ jobs: - name: Replace version in pyproject.toml # Required for developmental releases - run: sed -i -e 's/^version = ".*\?"$/version = "${{ env.version_to_use }}"/g' pyproject.toml + run: | + awk '{sub(/^version = ".*?"$/,"version = \"${{ env.version_to_use }}\""); print}' pyproject.toml > temp && mv temp pyproject.toml - name: Build wheels uses: pypa/cibuildwheel@v2.16.2