Skip to content

fix(release): parse pyproject version with awk (macOS sed compat)#36

Merged
hwesterb merged 1 commit intomainfrom
fix/release-script-version-regex
Apr 18, 2026
Merged

fix(release): parse pyproject version with awk (macOS sed compat)#36
hwesterb merged 1 commit intomainfrom
fix/release-script-version-regex

Conversation

@hwesterb
Copy link
Copy Markdown
Member

One-line fix. BSD sed on macOS doesn't treat `\s` as a whitespace class, so the version extraction in `scripts/release.sh` silently returned the whole matched line instead of just the version number. The script then tried to create a tag literally named `vversion = "0.2.3"` and aborted at the CHANGELOG lookup.

Replaced the sed regex with an awk one-liner that splits on `"` and picks field 2 — portable across GNU and BSD.

Found while attempting to cut the 0.2.3 release.

BSD sed on macOS doesn't recognize `\s` as a whitespace class. The
version-extract regex silently fell through and returned the whole
matched line, so the script tried to create tag `vversion = "0.2.3"`
and aborted at the CHANGELOG lookup. Replaced with an awk one-liner
that splits on `"` and picks field 2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hwesterb hwesterb merged commit 6b3bd77 into main Apr 18, 2026
5 checks passed
@hwesterb hwesterb deleted the fix/release-script-version-regex branch April 18, 2026 15:15
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.

1 participant