From f3d9b28bd6196c7e1201ee1f554112e203eecdc3 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sat, 23 Dec 2023 22:51:12 +1100 Subject: [PATCH] Minor fixes --- .github/workflows/python.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 395fdb3a..d16e8194 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -40,7 +40,9 @@ jobs: run: | # Maturin uses Cargo.toml name for Python name: https://www.maturin.rs/#usage. # We edit it here instead of just updating our repo code as Cargo workspace names must be different. - sed -i.bak 's%^name = ".*$%name = "minify-html${{ matrix.variant }}"%' ./minify-html${{ matrix.variant }}-python/Cargo.toml + newName=minify-html-${{ matrix.variant }} + newName=${newName//-/_} + sed -i.bak 's%^name = ".*$%name = "'$newName'"%' ./minify-html${{ matrix.variant }}-python/Cargo.toml rm ./minify-html${{ matrix.variant }}-python/Cargo.toml.bak - name: Build wheels