From f8fb370bda3d3b5b6ef1e7cb1e28eafba95c13c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20K=C3=B6pcke?= Date: Tue, 6 Aug 2024 11:25:31 +0200 Subject: [PATCH] fix windows build --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e766d0a..056b0ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,8 +89,9 @@ jobs: submodules: 'recursive' - name: Rewrite version for dev if not tag if: "!startsWith(github.ref, 'refs/tags/')" + shell: bash run: | - sed -E -i -e "s/version\s*=\s*\"(.*)(\.rc.*|\.a.*|\.post.*)?\"/version = \"\1.dev0+${GITHUB_SHA::8}\"/;" pyproject.toml + perl -i -pe "s/version\s*=\s*\"(.*?)(\.rc.*|\.a.*|\.post.*)?\"/version=\"\1.dev0+${GITHUB_SHA::8}\"/" pyproject.toml - name: Note version if: matrix.os != 'windows-2019' shell: bash