From 67db3a347de3304d9effb424d5e86fc1b6cf1249 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Wed, 16 Apr 2025 17:37:08 +0100 Subject: [PATCH] Fix sed in release pipeline. The `;` was missing between the two `s///` statements; without it it failed with an error about "unknown flag". Tested with act to get _some_ sembalance of an idea if it will work, but it's no guarantee ``` act \ --env GITHUB_REPOSITORY=python-pendulum/pendulum \ -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:rust-latest \ --artifact-server-path $PWD/.artifacts \ -W .github/workflows/release.yml \ --matrix container:off,target:aarch64 \ --container-architecture linux/amd64 ``` --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e796ffc..f49762c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -103,7 +103,7 @@ jobs: - name: Hotswap build backend for Poetry # Maturin doesn't support building no-extension wheels, so we swap to Poetry for that run: | - sed -i '/^\[build-system\]/,/^\[/{s/^requires = .*/requires = ["poetry-core>=2.0.0,<3.0.0"]/ s/^build-backend = .*/build-backend = "poetry.core.masonry.api"/}' pyproject.toml + sed -i -e '/^\[build-system\]/,/^\[/{s/^requires = .*/requires = ["poetry-core>=2.0.0,<3.0.0"]/; s/^build-backend = .*/build-backend = "poetry.core.masonry.api"/}' pyproject.toml - name: Install dependencies run: poetry install --only main --only test --only typing --only build - name: Run poetry build