Skip to content

Fix sed in release pipeline. #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged

Fix sed in release pipeline. #890

merged 1 commit into from
Apr 16, 2025

Conversation

ashb
Copy link
Member

@ashb ashb commented Apr 16, 2025

The ; was missing between the two s/// statements; without it it failed
with an error of sed: -e expression #1, char 86: unknown option to s'`

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

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

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
```
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -e may or may have not been required, but this def worked for me in act

Copy link

codspeed-hq bot commented Apr 16, 2025

CodSpeed Performance Report

Merging #890 will not alter performance

Comparing fix-release-pipeline (67db3a3) with master (df18589)

Summary

✅ 1 untouched benchmarks

@ashb ashb requested a review from Secrus April 16, 2025 17:40
@Secrus Secrus merged commit 15d4f1b into master Apr 16, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants